Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

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