hl

  • Created by importre
  • πŸ—“ Last Updated: 11/02/23 10:39:34
  • 🌟 Stars on GitHub: 94
  • Love this? Consider supporting the creator by Starring or Sponsoring this on GitHub!
  • Get Source Code

From their README


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