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
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
Built Distributions
Hashes for wdiffhtml-0.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ca4a0390cba7155df8cf6126724069b5fd0524785b929eda190be85ef7614a2b |
|
MD5 | a27651a2812702f3d4b7405a124e9d7e |
|
BLAKE2b-256 | 9a666ef5ca6d7ae4ad133e8d1608e82c39da8ea9d6610042c176a55e0ca3865d |
Hashes for wdiffhtml-0.6.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b92a23f4b5c2d660fcdc311dd0373dff4f6eb2d6c5a653d679c504864f43a606 |
|
MD5 | b1589a0494118b8ff67fce9ffa412e45 |
|
BLAKE2b-256 | af425445a2cb9b2e8e7bfa8fc52843717e1f83337ec2294b2ef9e346f8910264 |