Highlight
Highlight code for pleasent viewing.
Install
go install github.com/campbel/highlight@main
Examples
Other languages
highlight my_file.rb
From stdin
cat main.go | highlight
Rich text
Useful if the intention is to copy output into document software like Google docs or word.
# Output rich text to copy into a doc
highlight -f rtf ruby.rb | pbcopy