Hello All.

So I have come up with some simple source-highlight definitions to pretty up
xensource.log/SMlog.(see http://dmarkey.com/~dmarkey/syn.png )

How to get started:

Install source-highlight (on Ubuntu/Debian, apt-get install
source-highlight)

Copy xen-highlight.tar[1] to your home directory, untar. This will create
$HOME/bin/src-hilite-lesspipe.sh and some definition files in
$HOME/.source-highlight/*

Then set the following environment variables:

export LESSOPEN="| $HOME/bin/src-hilite-lesspipe.sh %s"
export LESS=" -R "

When you less an SMlog or xensource.log file, the syntax highlighting should
be effective.

It tries to point out obvious problems, like exceptions, and commands that
failed.

If you have any suggestions on how to improve this, they are welcome.

David.

[1] http://dmarkey.com/~dmarkey/xen-highlight.tar
_______________________________________________
xen-api mailing list
[email protected]
http://lists.xensource.com/mailman/listinfo/xen-api

Reply via email to