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:

Mike Miller wrote:

So it would be nice if less could be expanded to include syntax highlighting, or maybe a popular editor like vim could be given a pager mode where it would do paging with syntax highlighting (and maybe an option to load the file and edit it on the fly).

Let me know if you hear of any such developments.

Vim has a pager mode

$VIMRUNTIME/macros/less.sh

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


That is very cool. I was not familiar with highlight. I'll definitely want to use that with less in a little script to make it easier.

Thanks!

Mike

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