Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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

Project description


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

` git clone cd wdiffhtml python 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


Project details

Download files

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

Files for wdiffhtml, version 0.6.1
Filename, size File type Python version Upload date Hashes
Filename, size wdiffhtml-0.6.1-py2.py3-none-any.whl (22.4 kB) File type Wheel Python version 3.4 Upload date Hashes View
Filename, size wdiffhtml-0.6.1-py3-none-any.whl (22.4 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size wdiffhtml-0.6.1.tar.gz (18.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page