Tuesday, June 5, 2012

Syntax highlighting in less

I've been looking for this way to long not to make a note on my blog.

Syntax highlighting in less - Big thanks for the author of this blog post for making the contribution!

So what you do is:

a) you install the highlighter
apt-get install source-highlight
b) you enable less to use it by adding the following lines to your ~/.profile
export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s"
export LESS=' -R '
And believe me: life is really good again :)

No comments: