Install highlight with homebrew.
brew install highlight
See this and select a theme.
Copy your source code to clipboard.
pbpaste | highlight --syntax=js -s andes -O rtf | pbcopy
Install highlight with homebrew.
brew install highlight
See this and select a theme.
Copy your source code to clipboard.
pbpaste | highlight --syntax=js -s andes -O rtf | pbcopy