Created
June 17, 2026 09:45
-
-
Save meyerweb/4951fcba97c159d655694291618d23f6 to your computer and use it in GitHub Desktop.
Syntax Highlight CSS
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
| 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