Share colorized diffs
June 6, 2025
-
Install difftastic:
cargo install difftastic -
Install ansifilter:
sudo apt install ansifilter -
diff two files and turn the output into html:
difft --color always a.txt b.txt | ansifilter --html > colorized_diff.html. -
Share the file.