| 1 | # Save output with colors to HTML/PDF etc |
| 2 | |
| 3 | Install [ansifilter](https://formulae.brew.sh/formula/ansifilter). |
| 4 | |
| 5 | ```sh |
| 6 | git show \ |
| 7 | | delta --no-gitconfig --file-decoration-style blue --hunk-header-decoration-style blue \ |
| 8 | | ansifilter --html \ |
| 9 | > /tmp/diff.html |
| 10 | ``` |
| 11 | |
| 12 | Now open `/tmp/diff.html` in a web browser, print to PDF, etc. |
| 13 | |
| 14 | Remove the `--no-gitconfig` above to use your own delta style, but note that `ansifilter` does not handle hyperlinks or decoration boxes etc. |