Highlight is a rich-featured syntax highlighter for Keynote slides that allows you to get syntax-highlighted code in RTF with one click. Its main feature is based on highlight.js, which means a lot of languages and styles are available. Check out the demo to see what you get with the application.
This repository is a fork of taggon/highlight, which is the original app. I made some changes to modernize the app, update highlight.js and distribute it as a Homebrew Cask.
From highlight.js:
- 192 languages and 238 styles
- Automatic language detection
- Multi-language code highlighting
Original features:
- Line numbers
- Custom font
- Global hotkey - you don't even need to click.
- Automatic updates
- Supports multi-language UI
Want to add support for your language? Send me translations! :)
You can install the app using Homebrew:
brew install --cask tdimeco/apps/highlight
This is the recommended way to install the app. The app auto updates with Homebrew.
The Homebrew tap is maintained by @tdimeco.
You can download the app from the Releases page. The app does not auto update in this case.
- When you execute the application, you will see a highlighter icon on the menubar as shown in the screenshot.
- Copy any code you want to colorize.
- Click on the icon to open the popup menu. Select Highlight Code and then pick your programming language or just choose the auto-detect one. Now the code is syntax-highligted.
- Paste the code wherever you want (e.g. Keynote).
Do you like to customize the results? Just open the Preferences dialog. You will see how.
You need to setup NodeJS, then run:
$ npm install
Open the project by double-clicking Highlight.xcodeproj
then build it. It should just work.
Highlight supports multi-language UI, currently only for few languages including English and Korean. If you're interested in translating the application, start by copying the Korean translation folder into your respective language folder (e.g. pr.lproj for Portuguese, ru.lproj for Russian, etc).
You need to translate all files in the folder.