Jump to content

Highlight your code stored in clipboard

Recommended Posts

Hey, guys.


I implemented a alfred workflow.

You can do syntax highlighting code in clipboard using alfred-hl.





1. Copy code snippet to clipboard (Cmd + C)

2. Highlight code

  - Type hl, space, find the language you want

  - Enter

  - Cmd + V to the rich text editor like Pages, Keynote




- NodeJS 4+

  - Install: brew install node



Please read this document for detail and download  :)

Link to comment
  • 1 year later...
  • 1 year later...
On 8/16/2019 at 8:13 PM, steinhaus said:

I just ran `npm i -g alfred-hl` but the commands aren't available in Alfred. Is there an additional step to try? I've also quit & re-opened Alfred.

Try updating your npm.
After brew update the above command worked for me.
But I don't think it's compatible with Alfred 4 😞 (after "install" it is nowhere to be found in the list of Alfred's workflows)
In the meantim I'm using OneHighlighter - https://apps.apple.com/us/app/onehighlighter/id1131580917

Edited by Petru
Added OneHighlighter
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...