Skip to content

Instantly share code, notes, and snippets.

@bernardeli
Created October 20, 2011 17:03
Show Gist options
  • Save bernardeli/1301665 to your computer and use it in GitHub Desktop.
Save bernardeli/1301665 to your computer and use it in GitHub Desktop.
highlighting code for keynote with highlight
first: brew install highlight
second: add to your .zshrc (or .bashrc)
function hlr {
filename=`echo $1 | cut -d . -f 1`
highlight --syntax ruby -k Menlo -K 20 -O rtf -s edit-xcode $1 > $filename.rtf
}
third: it will generate a .rtf file. just open and copy the highlighted code and add to your Keynote talk.
fourth: enjoy :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment