Monday, May 14, 2012

Syntax highlighting in nano text editor

Presumption

Linux system with nano text editor


open your favorite terminal emulator 

go to your home directory

$ cd ~

create a file named ".nanorc"

$ nano .nanorc

add the following lines

include "/usr/share/nano/c.nanorc"
include "/usr/share/nano/java.nanorc"
include "/usr/share/nano/sh.nanorc"
include "/usr/share/nano/perl.nanorc"

save

CTRL+X

have a nice coding!

No comments:

Post a Comment