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 "
Thanks, very nice tip! but Less should be called with "-R" option to enable the color.
@0xnan Thank you for noticing this :) I've updated the protip.