Skip to content

Instantly share code, notes, and snippets.

@emattson
Created February 10, 2016 19:20
Show Gist options
  • Save emattson/0a567cf32ebf6f934905 to your computer and use it in GitHub Desktop.
Save emattson/0a567cf32ebf6f934905 to your computer and use it in GitHub Desktop.
Terminal command to syntax highlight javascript text copied to clipboard (uses highlight)
pbpaste | highlight --syntax=js -O rtf -K 40 -k monokai -s seashell | pbcopy
@emattson
Copy link
Author

If you don't have highlight installed first run brew install highlight

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment