Skip to main content

Uses `wdiff`_ to generate a word based *diff* from plain text files.

Project description

# WDIFF HTML

Uses [GNU wdiff][wdiff] to generate a word based diff from plain text files.

The results are modified to use HTML <ins> and <del> tags and can be wrapped in a full HTML document.

# Installation

Use pip:

` pip install [--user] wdiffhtml `

Or clone the source and use setup.py:

` git clone https://github.com/brutus/wdiffhtml.git cd wdiffhtml python setup.py install [--user] `

# Usage

wdiffhtml writes to _STDOUT_. To get a plain diff wich uses <ins> and <del> tags to mark changes use:

` wdiffhtml text_org.txt text_new.txt `

To create a HTML file for viewing, use the –wrap-with-html option:

` wdiffhtml --wrap-with-html text_org.txt text_new.txt > mydiff.html `

See wdiffhtml –help for more informations.

# Contact

__wdiffhtml__ is at home at https://github.com/brutus/wdiffhtml

[wdiff]: https://www.gnu.org/software/wdiff/wdiff.html

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wdiffhtml-0.5.3.tar.gz (18.0 kB view hashes)

Uploaded Source

Built Distribution

wdiffhtml-0.5.3-py2.py3-none-any.whl (21.5 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page