You are not logged in.

#1 2007-10-15 20:30:12

kanpio
Member
From: Poland/Wrocław
Registered: 2006-01-25
Posts: 49

rc.conf file syntax highlighting for nano

Hey, here is rc.conf file syntax highlighting for nano. It may be useful for those who edit their rc.conf regularly.

# syntax highlithing in rc.conf
syntax "rc.conf" "rc\.conf$"
color brightwhite ""(\\.|[^\"])*""
color brightwhite "\((\\.|[^\"])*\)"
color brightred "![^> ]+"
color brightcyan "@[^> ]+"
color brightyellow ".*="
color white "="
color brightblue ""|\(|\)"
color green "#.*"

Put this lines into /etc/nanorc or ~/.nanorc

Offline

#2 2007-10-18 03:48:29

stingray
Member
From: Lima, Peru SA
Registered: 2006-03-24
Posts: 188

Re: rc.conf file syntax highlighting for nano

Thank you, I like it!

Offline

#3 2007-10-18 16:59:43

Weeks
Member
Registered: 2006-01-26
Posts: 91

Re: rc.conf file syntax highlighting for nano

thank you! i always accidentally open up nano, find out text is practically unreadable with its default colours, close it and then wait the horrific 4 seconds it takes for emacs to spring to life.

Offline

#4 2007-10-18 17:05:35

_alexmyself
Member
From: france
Registered: 2005-09-18
Posts: 90

Re: rc.conf file syntax highlighting for nano

thanks smile

Offline

Board footer

Powered by FluxBB