cygri / htmldiff

A command-line script that shows text changes between two HTML files
MIT License
61 stars 27 forks source link

htmldiff

HTML Diffing utility.

License: MIT

Installation

To build a source package::

$ python setup.py sdist

To install into your current environment::

$ python setup.py install

Or via pip::

$ pip install .

Pip may also be used to install a built package::

$ pip install htmldiff-1.0.0.dev6.tar.gz

Usage

To produce a diff of two html files::

$ htmldiff file1.html file2.html > diff_file.html

With custom output file::

$ htmldiff file1.html file2.html -o myfile.html
INFO: Selected inline diff
INFO: Diffing files...
INFO: Wrote file diff to /absolute/path/to/myfile.html

Produce a side-by-side diff instead of an inline diff::

$ htmldiff file1.html file2.html -s > diff_file.html
INFO: Selected inline diff
INFO: Diffing files...

All options: