Skip to content

Instantly share code, notes, and snippets.

@bernardeli
bernardeli / .zshrc
Created Oct 20, 2011
highlighting code for keynote with highlight
View .zshrc
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.
You can’t perform that action at this time.