Skip to main content
Help us improve Python packaging – donate today!

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 which 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 `

You can use your own HTML template, CSS and / or Javascript to wrap the output. There are command line options to set the files on fly, or you can create them in your data directory (~/.local/share/wdiffhtml/) so they get used automatically.

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

Release history Release notifications

This version
History Node

0.6.1

History Node

0.6.0

History Node

0.5.5

History Node

0.5.4

History Node

0.5.3

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
wdiffhtml-0.6.1-py2.py3-none-any.whl (22.4 kB) Copy SHA256 hash SHA256 Wheel 3.4 Apr 7, 2016
wdiffhtml-0.6.1-py3-none-any.whl (22.4 kB) Copy SHA256 hash SHA256 Wheel py3 Feb 5, 2017
wdiffhtml-0.6.1.tar.gz (18.6 kB) Copy SHA256 hash SHA256 Source None Apr 7, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page