Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - 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


Release History

This version
History Node


History Node


History Node


History Node


History Node


Download Files

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

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(22.4 kB) Copy SHA256 Hash SHA256
3.4 Wheel Apr 7, 2016
(22.4 kB) Copy SHA256 Hash SHA256
py3 Wheel Feb 5, 2017
(18.6 kB) Copy SHA256 Hash SHA256
Source Apr 7, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting