Syntax highlighting in less
If you want syntax highlighting in less, you can use source highlight software: http://www.gnu.org/software/src-highlite
In Debian bases systems, package name is source-highlight and you can start using just setting two environment values as below:
export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s"
export LESS=' -R '
- 1 Comment
- Murat Demirten
- 12 Oct 2008, 02:17
-
sign-up for an account to post comments.
Maybe you should look at these also:
USERBOX
CATEGORIES
MOST READ TODAY
- Disabling reverse dns lookups in ssh
- Passwordless sudo setup
- Syntax highlighting in less
- Deleting A File By It's Inode Value
- Using lsof utility
- XFS Filesystem has duplicate UUID problem
- Rewriting destination ip address
- Enabling remote desktop on a VirtualBox Machine
- Redirecting tcp / udp ports with socat
- Routing packets back from incoming interface
LAST ADDED
- Using iPhone internet sharing over bluetooth under Linux
- Using USB sound card with amarok
- Multi-conditional search and replace (clearing a ftp trojan script example)
- Disabling ipv6 functionality
- How to convert a mp3 file
- How to choose the fastest Debian mirror
- Disabling reverse dns lookups in ssh
- Rewriting destination ip address
- Deleting A File By It's Inode Value
- Learning which libraries are used for a binary

I've been wanting this for years. Who knew it would be so easy? Thanks a million!