Python based file text comparison tool using diff-match-patch that renders differences in an html file
usage: visual-diff.py [-h] -c COMPARED -o ORIGINAL
Renders differences between two text files in an HTML window.
options:
-h, --help show this help message and exit
-c COMPARED, --compared COMPARED
The relative file path of the file to be compare to the original.
-o ORIGINAL, --original ORIGINAL
The relative file path of the original
- Python3
- Web browser to open html file with
- Install python3 and a web browser that will open html files
- Use git clone to copy this repository to your own device
git clone https://github.com/jessicaengel451/visual-diff.git
- run
python3 visual-diff.py -c test_files/test2.txt -o test_files/test1.txt
to see if the script works correctly. Your output should open in a web browser tab and should look similar to the following (this tool will allow color syntax):
Tthe brown cow, named Bob,dog jumped over Saturn.the moon