Syntax Highlighting in less

less than 1 minute read

Even though this article is for Linux, the same works with OS X after installing source-highligh from homebrew:

brew install source-highlight
export LESSOPEN="| /usr/local/bin/src-hilite-lesspipe.sh %s"
export LESS=' -R '

Tags:

Categories:

Updated: