Can less (or similar) do syntax highlighting
Owen Townend
owen.townend at gmail.com
Fri Mar 20 00:28:21 UTC 2009
2009/3/20 John Hubbard <ender8282 at yahoo.com>:
> It looks like a version might have been released Dec '08 that does.
> Using the -r or -R options doesn't get me syntax highlighting. So it
> looks like i don't have the newest version. Is there another similar
> program that would give me syntax highlighting similar to what I see
> with vi?
Sure, have a look into using vim, it has a wrapper script to
emulate less but still use highlighting etc:
$ dpkg -L vim-runtime|grep less
/usr/share/vim/vim71/macros/less.sh
/usr/share/vim/vim71/macros/less.vim
cheers,
Owen.
More information about the ubuntu-users
mailing list