A simple CLI tool for generating nice HTML diffs between two files.
- Generates pretty colour-coded HTML diffs.
- Supports both unified view and side-by-side view.
Use pip to install diffa from PyPI:
pip install diffa
Run diffa from the command line to create a shiny HTML diff.
diffa file1.txt file2.txt output.html
--side-by-side: Adds a side-by-side comparison to the output.
Open the generated HTML file in your browser to see:
- Lines added in green
- Lines removed in red
- Matching lines in white
- Code Reviews: Quickly generate diffs for commits or branches.
- Document Comparison: Spot the differences between document revisions.
- Configuration Changes: Compare config files across environments.