MLUG: Re: [MLUG] pager with syntax highlighting
Re: [MLUG] pager with syntax highlighting
Email address obfuscation in effect -- please click here to turn it off.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Mon, 4 Feb 2008, Russell Horn wrote:

You can also install highlight and then set up an alias to do something like:

highlight --ansi myfile.php | less -r

Highlight is available here:

http://www.andre-simon.de/zip/download.html

I've been messing around with highlight and I'm liking it. Two cool things about it: (1) the syntax color definition files are easy to edit and (2) it uses stylesheets for highlighting html, so you can easily edit page colors by editing the stylesheet. Example:


default:
http://epirh1.epi.umn.edu/~mbmiller/bw.html
http://epirh1.epi.umn.edu/~mbmiller/highlight.css

with edited stylesheet:
http://epirh1.epi.umn.edu/~mbmiller/bw_black.html
http://epirh1.epi.umn.edu/~mbmiller/highlight_black.css

So one good way to use the program is to use default colors, but edit stylesheets, then rename and save stylesheets for later uses.

Mike

_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members