Enable syntax highlight in less!
Install source-highlight
package:
brew install source-highlight
And add following to your shell startup file:
export LESSOPEN="| src-hilite-lesspipe.sh %s"
export LESS=" -R "
Written by Adam Stankiewicz
Related protips
2 Responses
Thanks, very nice tip! but Less should be called with "-R" option to enable the color.
over 1 year ago
·
@0xnan Thank you for noticing this :) I've updated the protip.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Osx
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#