Skip to content

Instantly share code, notes, and snippets.

@jonathansick
Created June 7, 2012 05:10
Show Gist options
  • Save jonathansick/2886714 to your computer and use it in GitHub Desktop.
Save jonathansick/2886714 to your computer and use it in GitHub Desktop.
Pygmentize to RTF and Copy
#!/bin/bash
# From http://emptysquare.net/blog/syntax-highlighting-with-pycharm-pygments-and-keynote/
/usr/local/bin/pygmentize -f rtf -O "style=friendly,fontface=Courier Bold" "$1" | pbcopy
@dfm
Copy link

dfm commented Jun 7, 2012

Haha... awesome! I'm working on a talk where I need this right now. Sweet!

@mcrisc
Copy link

mcrisc commented Sep 17, 2014

Amazing! Linux users, take a look at pbcopy in Ubuntu.

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