[Typo3-debian] nano editor hightlighting

Luite van Zelst luite at aegee.org
Sat May 31 13:30:02 CEST 2003


Hi!

anyone else addicted to the great nano editor? for those unfamiliar with
it, it's a nice tiny "pico" clone, 100% console based. I use it for all my
php-development, because it's the fastest way to work remotely through
ssh.
(still not being 100% accustomed to vim)

anyway - I wrote a few lines to offer hightlighting in nano.
1) maybe it's usefull for you!
2) anybody got a better hightlighting syntax?

cherio,
Luite.

syntax "php" ".*/*.php$"
color brightwhite "\{|\}|\."
color red "('[^']*')"
color red "\"[^\"]*\""
color brightblue "(\$([[:alpha:]_]|->)*)"
color brightgreen "((\$(([[:alpha:]_0-9])+\->)+)[[:alpha:]_0-9]+\()"
color yellow " (if|else if|else|return|case|break)"
color yellow "\|\||\?|!|\||&&|=|;|\(|\)"
color red "false|true"
color brightwhite "[[:space:]]+debug|[[:space:]]+echo|\$this\->debug"
color cyan "//.*"
color cyan start="/\*" end="\*/"



-----------------------------------------------
AEGEE-Utrecht - De Europese Studentenvereniging





More information about the TYPO3-debian mailing list