campbel / highlight

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Highlight

Highlight code for pleasent viewing.

Demo of Highlight

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

About


Languages

Language:Go 91.3%Language:Ruby 8.7%