PyDocs

Nav

Text Processing Services

HtmlDiff

difflib

class (source)
  • HtmlDiff(tabsize=8, wrapcolumn=None, linejunk=None, charjunk=<function IS_CHARACTER_JUNK>)
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 Doc/includes/diff.py for an example usage of this class.
Members of HtmlDiff

_

__init__
HtmlDiff instance initializer

m

make_file
Returns HTML file of side by side comparison with change highlights
make_table
Returns HTML table of side by side comparison with change highlights
0 Examples
No examples for difflib/HtmlDiff.
See Also
No see-alsos for difflib/HtmlDiff
0 Notes
No notes for HtmlDiff