๐Ÿ“ฆ wagoodman / diff2HtmlCompare

Side-by-side diff shown in HTML

โ˜… 149 stars โ‘‚ 56 forks ๐Ÿ‘ 149 watching โš–๏ธ MIT License
compare-filesdiffhtmlpython
๐Ÿ“ฅ Clone https://github.com/wagoodman/diff2HtmlCompare.git
HTTPS git clone https://github.com/wagoodman/diff2HtmlCompare.git
SSH git clone git@github.com:wagoodman/diff2HtmlCompare.git
CLI gh repo clone wagoodman/diff2HtmlCompare
Alex Goodman Alex Goodman Merge pull request #8 from nnako/master 5350359 7 years ago ๐Ÿ“ History
๐Ÿ“‚ master View all commits โ†’
๐Ÿ“ deps
๐Ÿ“ screenshots
๐Ÿ“„ .gitignore
๐Ÿ“„ LICENSE.md
๐Ÿ“„ README.md
๐Ÿ“„ requirements.txt
๐Ÿ“„ README.md

diff2HtmlCompare

A python script that takes two files and compares the differences between them (side-by-side) in an HTML format. Supports both python2 and python3.

Installation

pip install -r requirements.txt

Usage

diff2HtmlCompare.py [-h] [-s] [-v] file1 file2

positional arguments:
  file1       file to compare ("before" file).
  file2       file to compare ("after" file).

optional arguments:
  -h, --help  show this help message and exit
  -s, --show  show html in a browser.
  -v          show verbose output.

Example Output

ScreenShot