title: Python difflib: highlighting differences inline?
body: <p>When comparing similar lines, I want to highlight the differences on the same line:</p>
  
  <pre><code>a) lorem ipsum dolor sit amet
  b) lorem foo ipsum dolor amet
  
  lorem &lt;ins&gt;foo&lt;/ins&gt; ipsum dolor &lt;del&gt;sit&lt;/del&gt; amet
  </code></pre>
  
  <p>While difflib.HtmlDiff appears to do this sort of inline highlighting, it produces very verbose markup.</p>
  
  <p>Unfortunately, I have not been able to find another class/method which does not operate on a line-by-line basis.</p>
  
  <p>Am I missing anything?
  Any pointers would be appreciated!</p>