A practical macOS workflow for syntax-highlighting code blocks directly inside Keynote presentations. The approach uses the `highlight` CLI tool (installed via Homebrew), a custom bash script that reads RTF from the clipboard and outputs highlighted RTF, and an Automator Quick Action with AppleScript that pastes the result back in place. The workflow preserves the original font face and size, supports nearly 250 languages, and surfaces as a right-click Services menu item. Limitations include line-spacing being reset to 1.0 and no cross-language validation. Each language requires its own Quick Action, but duplicating and changing one variable is all that's needed.

7m read timeFrom meyerweb.com
Post cover image
96 Impressions