Syntax highlight in Keynote presentations

When preparing slides with a lot of code inside having a proper syntax highlighter is mandatory, and hacks like taking screenshots don’t work both for the useless amount of bytes wasted and for the inability to correct mistakes later on.

You can install highlight via Brew:

brew install highlight

then simply:

highlight -O rtf input_file.php | pbcopy

pbcopy is a supercool utility that grab the standard input and copies it into the clipboard (yes, there’s pbpaste too).


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s