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 `
You can use your own HTML template, CSS and / or Javascript to wrap the output. There are commandline 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 Distribution
Hashes for wdiffhtml-0.5.5-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1566af8a387f262616a9520b5819dd127634a7586b3988d8316ca76c03197083 |
|
MD5 | ceb052b4f85d099cd0c544df4df3c085 |
|
BLAKE2b-256 | 070ff078148701f7d9d2b26445fc8c0b2da64174b6ebaaf91c63ffd03cd26b7e |