Skip to content

Instantly share code, notes, and snippets.

@relaxnow
Created March 11, 2015 13:00
Show Gist options
  • Save relaxnow/3cb61b198234be3ba419 to your computer and use it in GitHub Desktop.
Save relaxnow/3cb61b198234be3ba419 to your computer and use it in GitHub Desktop.
How to add syntax highlighting to Pages and Keynote
export LC_CTYPE=UTF-8; pbpaste | (echo '<?php ' && cat) | /usr/local/bin/pygmentize -l php -f rtf -O style=monokai,fontface=Monaco | sed 's/\\\\f0/\\\\f0\\\\fs72/g' | pbcopy -Prefer rtf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment