# diff2htmlcompare **Repository Path**: mirrors/diff2htmlcompare ## Basic Information - **Project Name**: diff2htmlcompare - **Description**: diff2HtmlCompare 是一个用来对比两个不同文件差异的 Python 脚本,使用 HTML 格式来显示差异结果,支持 Python 2 和 Python 3 - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/diff2htmlcompare - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 2 - **Created**: 2020-09-28 - **Last Updated**: 2025-12-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 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](/screenshots/latest.png)