Created
October 20, 2011 17:03
-
-
Save bernardeli/1301665 to your computer and use it in GitHub Desktop.
highlighting code for keynote with highlight
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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