Skip to content
forked from taggon/highlight

Rich featured syntax highlighter for Keynote slides.

License

Notifications You must be signed in to change notification settings

tdimeco/highlight

 
 

Repository files navigation

[English] [한국어]

Highlight

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.

Features

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
    • English
    • Korean
    • Turkish - Thanks to @tosbaha
    • Chinese Simplified - Thanks to @xnth97

Want to add support for your language? Send me translations! :)

Installation

Homebrew

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.

Manual

You can download the app from the Releases page. The app does not auto update in this case.

Usage

  • 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.

How to build

You need to setup NodeJS, then run:

$ npm install

Open the project by double-clicking Highlight.xcodeproj then build it. It should just work.

Contribution

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.

About

Rich featured syntax highlighter for Keynote slides.

Topics

Resources

License

Stars

Watchers

Forks

Languages

  • Swift 84.3%
  • JavaScript 6.8%
  • C++ 3.4%
  • CSS 2.8%
  • Java 2.1%
  • PHP 0.6%