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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wdiffhtml-0.6.1.tar.gz.
File metadata
- Download URL: wdiffhtml-0.6.1.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dde20ea7e10f0bd26edcb79be678b0ac147684eb8e8c3ae71e269835debad9c6
|
|
| MD5 |
b8e4e9c31b5c0af24861399411527147
|
|
| BLAKE2b-256 |
b2991ac806224b2d5c437957ac923ea13594cdc396d51f1b3921c665c691885a
|
File details
Details for the file wdiffhtml-0.6.1-py3-none-any.whl.
File metadata
- Download URL: wdiffhtml-0.6.1-py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ca4a0390cba7155df8cf6126724069b5fd0524785b929eda190be85ef7614a2b
|
|
| MD5 |
a27651a2812702f3d4b7405a124e9d7e
|
|
| BLAKE2b-256 |
9a666ef5ca6d7ae4ad133e8d1608e82c39da8ea9d6610042c176a55e0ca3865d
|
File details
Details for the file wdiffhtml-0.6.1-py2.py3-none-any.whl.
File metadata
- Download URL: wdiffhtml-0.6.1-py2.py3-none-any.whl
- Upload date:
- Size: 22.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b92a23f4b5c2d660fcdc311dd0373dff4f6eb2d6c5a653d679c504864f43a606
|
|
| MD5 |
b1589a0494118b8ff67fce9ffa412e45
|
|
| BLAKE2b-256 |
af425445a2cb9b2e8e7bfa8fc52843717e1f83337ec2294b2ef9e346f8910264
|