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]
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:

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