Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/importre/alfred-hl
:high_brightness: Syntax highlight code in the clipboard
https://github.com/importre/alfred-hl
alfred alfred-workflow highlight syntax-highlighting
Last synced: 3 days ago
JSON representation
:high_brightness: Syntax highlight code in the clipboard
- Host: GitHub
- URL: https://github.com/importre/alfred-hl
- Owner: importre
- License: mit
- Created: 2016-07-16T20:57:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-02-11T10:39:34.000Z (over 1 year ago)
- Last Synced: 2024-10-30T00:27:31.250Z (6 days ago)
- Topics: alfred, alfred-workflow, highlight, syntax-highlighting
- Language: JavaScript
- Homepage:
- Size: 161 KB
- Stars: 96
- Watchers: 3
- Forks: 3
- Open Issues: 6
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
- alfred-workflows - Syntax highlight code - Highlight code in the clipboard using [highlight.js](https://highlightjs.org/). (Utility)
README
#
alfred-hl[![dependencies Status](https://david-dm.org/importre/alfred-hl/status.svg)](https://david-dm.org/importre/alfred-hl)
> [Alfred 3](https://www.alfredapp.com) workflow to syntax highlight code in the clipboard using [highlight.js](https://highlightjs.org/)
| plain text | colorized text |
|:----------:|:--------------:|
| ![][plain] | ![][colorized] |> unicode support :tada:
## Prerequisites
You need [Node.js 4+](https://nodejs.org) and [Alfred 3](https://www.alfredapp.com) with the paid [Powerpack](https://www.alfredapp.com/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](http://www.apple.com/mac/pages/), [Keynote](http://www.apple.com/kr/mac/keynote/)## Install
```
$ npm i -g alfred-hl
```## Reference
- [importre/alfred-workflows: 🔧my alfred workflows](https://goo.gl/GOFxDC)
## License
MIT © Jaewe Heo
[colorized]: https://cloud.githubusercontent.com/assets/1744446/16908802/3da56100-4d09-11e6-9a4a-ef73a06014bf.png
[plain]: https://cloud.githubusercontent.com/assets/1744446/16908803/3dae39e2-4d09-11e6-8d7e-f7cc25119fa7.png