hl

🔆 Syntax highlight code in the clipboard

From this project's GitHub repository:


alfred-hl

dependencies Status

Alfred 3 workflow to syntax highlight code in the clipboard using highlight.js

plain text colorized text

unicode support 🎉

Prerequisites

You need Node.js 4+ and Alfred 3 with the paid Powerpack upgrade.

Usage

Copy code snippet to clipboard

  • cmd + C

Set Theme (Optional)

Default theme: github

  • Type hl-theme, Space, find the theme you want
  • Set the theme as default by pressing Enter

Highlight code

  • Type hl, Space, find the language you want
  • Enter
    • Enter + Cmd if you want to prevent indentation
  • Cmd + V to the rich text editor like Pages, Keynote

Install

$ npm i -g alfred-hl

Reference

License

MIT © Jaewe Heo