Jaewe Heo Posted July 19, 2016 Share Posted July 19, 2016 Hey, guys. I implemented a alfred workflow. You can do syntax highlighting code in clipboard using alfred-hl. Usage 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 Dependency - NodeJS 4+ - Install: brew install node Please read this document for detail and download Link to comment
xilopaint Posted July 20, 2016 Share Posted July 20, 2016 Thank you for sharing! Could you suggest some good themes for white backgrounds? It seems most of them have poor contrast. Link to comment
Jaewe Heo Posted July 20, 2016 Author Share Posted July 20, 2016 In alfred, type `hl-demo` end Enter. You can see many examples Link to comment
Jaewe Heo Posted July 20, 2016 Author Share Posted July 20, 2016 or check `github`, `vs` or `xcode` Link to comment
xilopaint Posted July 20, 2016 Share Posted July 20, 2016 Atelier Dune Light seems to be the best available light theme for my taste. However I would like to see anything like the IDLE color scheme. Link to comment
tbnv Posted September 21, 2017 Share Posted September 21, 2017 Unfortunately, I can't manage to install this workflow... Link to comment
deanishe Posted September 21, 2017 Share Posted September 21, 2017 42 minutes ago, tbnv said: Unfortunately, I can't manage to install this workflow... Could you describe your issue more precisely? Link to comment
steinhaus Posted August 16, 2019 Share Posted August 16, 2019 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. I'm using: macOS 10.14.6 node 10.3.0 Alfred 4.0.3 + PowerPack Link to comment
Petru Posted August 22, 2019 Share Posted August 22, 2019 (edited) 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 August 22, 2019 by Petru Added OneHighlighter Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now