/highlight

A command-line utility to colorize text based on regular expression matches.

Primary LanguageGoMIT LicenseMIT

highlight

highlight is a small command-line utility to colorize stdin via regex matches.

asciicast

Install

go get -u github.com/augustoroman/highlight

Example usage

echo -e "The quick \nbrown fox \njumped over\nthe lazy dog" | highlight -c 'white+d' -l red fox -w 'yellow+b' lazy

Output example