class_docstr: For producing HTML side by side comparison with change highlights.
  
  This class can be used to create an HTML table (or a complete HTML file
  containing the table) showing a side by side, line by line comparison
  of text with inter-line and intra-line change highlights.  The table can
  be generated in either full or contextual difference mode.
  
  The following methods are provided for HTML generation:
  
  make_table -- generates HTML for a single side by side table
  make_file -- generates complete HTML file with a single side by side table
  
  See tools/scripts/diff.py for an example usage of this class.
docstr: HtmlDiff instance initializer
  
  Arguments:
  tabsize -- tab stop spacing, defaults to 8.
  wrapcolumn -- column number where lines are broken and wrapped,
      defaults to None where lines are not wrapped.
  linejunk,charjunk -- keyword arguments passed into ndiff() (used by
      HtmlDiff() to generate the side by side HTML differences).  See
      ndiff() documentation for argument default values and descriptions.
docstr_tok: ["HtmlDiff","instance","initializer","Arguments",":","tabsize","--","tab","stop","spacing",",","defaults","to","8.","wrapcolumn","--","column","number","where","lines","are","broken","and","wrapped",",","defaults","to","None","where","lines","are","not","wrapped",".","linejunk",",","charjunk","--","keyword","arguments","passed","into","ndiff","(",")","(","used","by","HtmlDiff","(",")","to","generate","the","side","by","side","HTML","differences",")",".","See","ndiff","(",")","documentation","for","argument","default","values","and","descriptions","."]
code: def __init__(
      self,
      tabsize=8,
      wrapcolumn=None,
      linejunk=None,
      charjunk=IS_CHARACTER_JUNK,
  ):
      """HtmlDiff instance initializer
  
      Arguments:
      tabsize -- tab stop spacing, defaults to 8.
      wrapcolumn -- column number where lines are broken and wrapped,
          defaults to None where lines are not wrapped.
      linejunk,charjunk -- keyword arguments passed into ndiff() (used by
          HtmlDiff() to generate the side by side HTML differences).  See
          ndiff() documentation for argument default values and descriptions.
      """
      self._tabsize = tabsize
      self._wrapcolumn = wrapcolumn
      self._linejunk = linejunk
      self._charjunk = charjunk
  
imports: from heapq import nlargest
  from collections import namedtuple
  from types import GenericAlias
  import re
label_desc: Use image node_id 1 to create a new HtmlDiff object from inherited base classes: object with example: obj = HtmlDiff(tabsize, wrapcolumn, linejunk, charjunk)