Class
difflib.HtmlDiff

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.

Base classes

Implemented Interfaces

There are no implemented interfaces.

Attributes/Properties

There are no attributes in this class.

Methods

Known Subclasses

There are no known subclasses.