Awesome
<div align="center"><img src="./icon.png" width=256><br>alfred-hl</div>
Alfred 3 workflow to syntax highlight code in the clipboard using highlight.js
plain text | colorized text |
---|---|
unicode support :tada:
Prerequisites
You need Node.js 4+ and Alfred 3 with the paid Powerpack upgrade.
Usage
Copy code snippet to clipboard
- <kbd>cmd</kbd> + <kbd>C</kbd>
Set Theme (Optional)
Default theme:
github
- Type
hl-theme
, <kbd>Space</kbd>, find the theme you want - Set the theme as default by pressing <kbd>Enter</kbd>
Highlight code
- Type
hl
, <kbd>Space</kbd>, find the language you want - <kbd>Enter</kbd>
- <kbd>Enter</kbd> + <kbd>Cmd</kbd> if you want to prevent indentation
- <kbd>Cmd</kbd> + <kbd>V</kbd> to the rich text editor like Pages, Keynote
Install
$ npm i -g alfred-hl
Reference
License
MIT © Jaewe Heo