A command-line script that shows text changes between two HTML files
Python Makefile
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc Update entrypoing name Jan 12, 2017
src/htmldiff
tests Some cleanup of accidentally added stuff Sep 10, 2012
.gitignore Reduce memory usage and fix accurate mode Jul 21, 2017
LICENSE.txt Updated licence file and readme Sep 13, 2012
Makefile Reduce memory usage and fix accurate mode Jul 21, 2017
README.md
setup.py

README.md

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:

  • -a --accurate-mode Use accurate mode instead of risky mode
  • -s --side-by-side Generate a side-by-side comparison instead of inline
  • -o --output_file OUTPUT_FILE [Optional] Specify a custom output file
  • -l --log-level (DEBUG,INFO,WARNING,ERROR,CRITICAL)
  • -L --log-file Location to place logging output
  • -V --version Print the application version and exit
  • -h --help - Prints command line help