Metadata-Version: 2.0
Name: wdiffhtml
Version: 0.5.5
Summary: Uses `wdiff`_ to generate a word based *diff* from plain text files.
Home-page: https://github.com/brutus/wdiffhtml
Author: Brutus [DMC]
Author-email: brutus.dmc@googlemail.com
License: GNU GPLv3
Platform: UNKNOWN
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Topic :: Text Processing
Classifier: Topic :: Utilities
Requires-Dist: setuptools
Requires-Dist: jinja2
Requires-Dist: appdirs

# 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


[wdiff]: https://www.gnu.org/software/wdiff/wdiff.html


