z9dgpg
Last Updated: May 15, 2019
·
4.075K
· stevo

Syntax-Highlight your code for Keynote

First install highlight

brew install highlight

Then just copy to clipboard code you are interested in, and execute

pbpaste | highlight --syntax=rb -O rtf | pbcopy

to save its syntax-highlighted version in clipboard, ready to be pasted into Keynote :)

Inspired by https://gist.github.com/jimbojsb/1630790