Created
November 30, 2016 18:09
-
-
Save c0diq/ab126675518fdf9add84146c953cbc86 to your computer and use it in GitHub Desktop.
Highlight code in Keynote
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
function light() { | |
if [ -z "$2" ] | |
then src="pbpaste" | |
else | |
src="cat $2" | |
fi | |
$src | highlight -O rtf --syntax $1 --font Menlo --style solarized-dark --font-size 24 | pbcopy | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment