Syntax highlighting in less

@demirten Murat Demirten
Mon, 06 Oct 2008 10:27:24 +0000

@demirten wrote:

If you want syntax highlighting in less, you can use source highlight software: http://www.gnu.org/software/src-highlite

In Debian based systems, package name is source-highlight and you can start using just setting two environment values as below:

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

Read full topic