Skip to content

Instantly share code, notes, and snippets.

@meyerweb
Created June 17, 2026 09:45
Show Gist options
  • Select an option

  • Save meyerweb/4951fcba97c159d655694291618d23f6 to your computer and use it in GitHub Desktop.

Select an option

Save meyerweb/4951fcba97c159d655694291618d23f6 to your computer and use it in GitHub Desktop.
Syntax Highlight CSS
on run {input, parameters}
set highlightHome to "/opt/homebrew/bin/highlight"
set syntaxType to "css"
set themeName to "navy"
set command to "PATH_TO_SCRIPT/keynote-highlight -h " & highlightHome & " -s " & syntaxType & " -t " & themeName
do shell script "/bin/bash -c 'pbpaste | " & command & " | pbcopy'"
delay 0.1
tell application "System Events" to keystroke "v" using command down
end run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment