# nanorc - Resource file for GNU nano # # hand scan, config, grub.conf, menu.lst, # sources.list and zone file by dual ######################################### # Enable bold text instead of reverse video text set boldtext # Display cursor position set const # Disable word wrap set nowrap # Fix numeric keypad key confusion set rebindkeypad # Enable extended regular expression searches by default set regexp # Use smooth scrolling set smooth # Allow suspend set suspend # C syntax highlighting syntax "c" "\.(c|cpp|h)$" color red "\<[A-Z_]{2,}\>" color green "\<(char|const|float|int|static|struct|void)\>" color brightyellow "\<(case|do|if|else|switch|while)\>" color brightcyan "^#( )*(define|include|ifn?def|endif|elif|else|if)" color brightyellow "<[^= ]*>" ""(\\.|[^\"])*"" color brightyellow start=""(\\.|[^\"])*\\( | )*$" end="^(\\.|[^\"])*"" color brightblue "//.*" color brightblue start="/\*" end="\*/" # Hand scan syntax highlighting syntax "hand scan" "\.scan\.txt$" color red "^[0-9]{3}" color yellow "-[0-9]{3}-" color cyan "[0-9]{4}\s-\s" color green "(ACB|CBCA(D|E)|DISCO|(CBR|NA)FYCA|NIS|SIT|TTY|VM)" color magenta "(busy|fax|HELO|reorder|(R|r)ing(out| out)|talkline)$" color brightyellow "(ANAC|carrier|DATU|DTMF|extender|tones)" # HTML syntax highlighting syntax "html" "(\.cfm|\.htm|\.html)$" color cyan start="<" end=">" color red "&[^; ]*;" # Java syntax highlighting syntax "java" "\.java$" color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>" color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>" color cyan "\<(abstract|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|synchronized|throws|volatile)\>" color red ""[^\"]*"" color yellow "\<(true|false|null)\>" color blue "//.*" color blue start="/\*" end="\*/" color brightblue start="/\*\*" end="\*/" color brightgreen "[ ]+$" # Generic config file syntax highlighting syntax "config" "(\.cfg|\.cnf|\.conf|config|\.ini|profile|rc|\.sh)$" color white ".+" color green "^(#|;|\/\*| \*).*" # grub.conf syntax highlighting syntax "grub.conf" "grub\.conf" color cyan "(^default.+|^timeout.+)" color red "^title.+" color yellow "(initrd.+|kernel.+|root.+)" color green "^#.*" # menu.lst syntax highlighting syntax "menu.lst" "menu\.lst" color white "^.+" color cyan "(boot|quiet|savedefault)" color red "^title.+" color yellow "(^initrd.+|^kernel.+|^root.+)" color green "^#.*" # nanorc syntax highlighting syntax "nanorc" "[\.]*nanorc$" color white "^ *(set|unset).*$" color cyan "^ *(set|unset) (autoindent|backup|const|cut|fill|keypad|multibuffer|noconvert|nofollow|nohelp|nowrap|operatingdir|preserve|quotestr|regexp|smooth|speller|suspend|tabsize|tempfile|historylog|view)" color brightwhite "^ *syntax [^ ]*" color brightblue "^ *set\>" "^ *unset\>" "^ *syntax\>" color white "^ *color\>.*" color yellow "^ *color (bright)?(black|blue|cyan|green|magenta|red|white|yellow)\>" color magenta "^ *color\>" color green "^#.*$" # Perl syntax highlighting syntax "perl" "\.p[lm]$" color red "\<(accept|alarm|atan2|bin(d|mode)|c(aller|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork)|get(c|login|peername|pgrp|ppid|priority|pwnam|(host|net|proto|serv)byname|pwuid|grgid|(host|net)byaddr|protobynumber|servbyport)|([gs]et|end)(pw|gr|host|net|proto|serv)ent|getsock(name|opt)|gmtime|goto|grep|hex|index|int|ioctl|join|keys|kill|last|length|link|listen|local(time)?|log|lstat|m|mkdir|msg(ctl|get|snd|rcv)|next|oct|open(dir)?|ord|pack|pipe|pop|printf?|push|q|qq|qx|rand|re(ad(dir|link)?|cv|do|name|quire|set|turn|verse|winddir)|rindex|rmdir|s|scalar|seek|seekdir|se(lect|mctl|mget|mop|nd|tpgrp|tpriority|tsockopt)|shift|shm(ctl|get|read|write)|shutdown|sin|sleep|socket(pair)?|sort|spli(ce|t)|sprintf|sqrt|srand|stat|study|substr|symlink|sys(call|read|tem|write)|tell(dir)?|time|tr|y|truncate|umask|un(def|link|pack|shift)|utime|values|vec|wait(pid)?|wantarray|warn|write)\>" color magenta "\<(continue|else|elsif|do|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>" color cyan start="[$@%]" end="( |\\W|-)" color yellow "".*"|qq\|.*\|" color white "[sm]/.*/" color white start="(^use| = new)" end=";" color green "^#.*" color yellow start="<< 'EOF'" end="EOF" # PHP syntax highlighting syntax "php" "\.php$" color brightblue start="<\?(php)?" end="\?>" color blue "<.+>" color cyan "\$[a-zA-Z_0-9]*" color cyan "(\[)|(\])" color red "(@|break|case|class|default|echo|else|elseif|exit|for|function|if|switch|var|while)\s" color red "((\.|!)=|=| < | > )" color green "[,{}()]" color green "==" color white "('[^']*')|(\"[^"]*\")" color yellow start="" color yellow start="/\*" end="\*/" color yellow start="#" end="$" # sources.list syntax highlighting syntax "sources.list" "sources\.list" color yellow "^(deb|deb-src)" color red " http.+ " color white "(gutsy|gutsy(-backports|-security|-updates)|hardy|hardy(-backports|-security|-updates))" color cyan "(free|main|multiverse|non-free|partner|restricted|universe)" color green "^#.*" # Zone file syntax highlighting syntax "zone file" "\.zone\.txt$" color white "^.+" color red "\s+.+$" color blue "\s+(0|60|100|300|600|900|1200|1800|3600|7200|14400|21600|28800|43200|86400|432000)\s+" color cyan "\s+IN\s+" color yellow "\s+(A|AFSDB|CNAME|HINFO|MX|NS|SOA|SRV|TXT|WKS)\s+" color green "^;.*$"