Skip to content

Instantly share code, notes, and snippets.

@fnurl
Last active April 6, 2017 21:56
Show Gist options
  • Save fnurl/d3e7042cf0878e6648b5 to your computer and use it in GitHub Desktop.
Save fnurl/d3e7042cf0878e6648b5 to your computer and use it in GitHub Desktop.
Highlight code in clipboard using pygmentize (Mac)
#!/bin/bash
pbpaste | pygmentize -O"style=tango, fontface=Menlo" -f rtf -l $1 | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment