3 ms·
There is nice tool called `aha` that converts ANSI color codes to HTML colors. See https://github.com/theZiz/aha https://github.com/theZiz/aha Example usage: pi
by ivansavz 3y ago
There is nice tool called `aha` that converts ANSI color codes to HTML colors. See https://github.com/theZiz/aha https://github.com/theZiz/aha
Example usage: pipe to it any command with color output then send result to an .html file:
git diff --color | aha > ~/Deskop/changes.html
Very useful in combination with the `--color-words` option for git diff, which highlits only specific words that were changed, which is great when reviewing changes to text files (e.g. blog post written as .md).
- nbbaier 3y agoMight integrate this into my git workflow