## Here is an example for nanorc files. ## syntax "nanorc" "\.?nanorc$" ## Possible errors and parameters icolor brightwhite "^[[:space:]]*((un)?set|include|syntax|i?color).*$" ## Keywords icolor brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(autoindent|backup|backupdir|backwards|boldtext|brackets|casesensitive|const|cut|fill|historylog|matchbrackets|morespace|mouse|multibuffer|noconvert|nofollow|nohelp|nonewlines|nowrap|operatingdir|preserve|punct)\>" "^[[:space:]]*(set|unset)[[:space:]]+(quickblank|quotestr|rebinddelete|rebindkeypad|regexp|smarthome|smooth|speller|suspend|tabsize|tabstospaces|tempfile|view|whitespace|wordbounds)\>" icolor green "^[[:space:]]*(set|unset|include|syntax)\>" ## Colors icolor yellow "^[[:space:]]*i?color[[:space:]]*(bright)?(white|black|red|blue|green|yellow|magenta|cyan)?(,(white|black|red|blue|green|yellow|magenta|cyan))?\>" icolor magenta "^[[:space:]]*i?color\>" "\<(start|end)=" ## Strings icolor white ""(\\.|[^"])*"" ## Comments icolor brightblue "^[[:space:]]*#.*$" icolor cyan "^[[:space:]]*##.*$"
Tag: Syntax
Syntax Highlighting with nano – nanorc for named
## named.conf syntax ## syntax "named" "named.conf" color brightcyan "(\{|\}|\;)" color brightwhite "[0-9]" color magenta "(options|zone|IN)" color yellow "(type|file|allow\-update|notify)" color cyan "(directory|statistics\-file|forward\ first|forwarders|listen\-on\-v6|listen\-on|allow\-query)" color cyan "(query\-source\ address|pid\-file)" color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'" ## comments color green "#.*$" color green "//.*$"
Syntax Highlighting with nano – nanorc for mutt
## Here is an example for quoted emails (under e.g. mutt). ## syntax "mutt" color green "^>.*"
Syntax Highlighting with nano – nanorc for rcfiles
### all *rc files ( e.g. .bashrc, inputrc, xtermcontrol .... ) syntax "rcfiles" "\rc$" "(\.|/|)control$" color red "'(\\.|[^'])*'" color blue ""(\\.|[^\"])*"" color magenta "[A-Z0-9\_]+=" color magenta "\<(sudo)\>" color cyan "\<(alias)\>" color brightcyan "\<(export)\>" color yellow "\<(shopt)\>" color brightred "\<(umask)\>.*$" color green "#.*$"
Syntax Highlighting with nano – nanorc for python
## Here is an example for Python. ## syntax "python" "\.py$" icolor brightblue "def [0-9A-Z_]+" color brightcyan "\<(and|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|map|not|or|pass|print|raise|return|try|while)\>" color brightgreen "["'].*[^\\]["']" "["']{3}.*[^\\]["']{3}" color brightgreen start=""""[^"]" end=""""" start="'''[^']" end="'''" color brightred "#.*$"
Syntax Highlighting with nano – nanorc for profile
### all *profile files ( ~/.bash_profile, /etc/profile) syntax "profiles" "(\.|/|)profile$" color red "'(\\.|[^'])*'" color blue ""(\\.|[^\"])*"" color magenta "[a-zA-Z0-9\_]+=" color magenta "\<(sudo)\>" color cyan "\<(export)\>" "\<(alias)\>" color brightred "\<(umask)\>.*$" color green "#.*$"
Syntax Highlighting with nano – nanorc for pov
## Here is an example for POV-Ray. ## syntax "pov" "\.(pov|POV|povray|POVRAY)$" color brightcyan "^[[:space:]]*#[[:space:]]*(declare)" color brightyellow "\<(sphere|cylinder|translate|matrix|rotate|scale)\>" color brightyellow "\<(orthographic|location|up|right|direction|clipped_by)\>" color brightyellow "\<(fog_type|fog_offset|fog_alt|rgb|distance|transform)\>" color brightred "^\<(texture)\>" color brightred "\<(light_source|background)\>" color brightred "\<(fog|object|camera)\>" color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)" color brightmagenta "\<(union|group|subgroup)\>" ## Comment highlighting color brightblue "//.*" color brightblue start="/\*" end="\*/"
Syntax Highlighting with nano – nanorc for mimetype
syntax "mimetype" "mime.types" icolor cyan "[.A-Z_]*/" color brightwhite "/" color green "[[:space:]].*$" ## comments color green "#.*$"
Syntax Highlighting with nano – nanorc for man
## Here is an example for manpages. ## syntax "man" "\.[1-9]x?$" color green "\.(S|T)H.*$" color brightgreen "\.(S|T)H" "\.TP" color brightred "\.(BR?|I[PR]?).*$" color brightblue "\.(BR?|I[PR]?|PP)" color brightwhite "\\f[BIPR]" color yellow "\.(br|DS|RS|RE|PD)"
Syntax Highlighting with nano – nanorc for Makefile
syntax "makefile" "^Makefile\.?" color red "[:=]" color magenta "\<(if|ifeq|else|endif)\>" color blue "\$\{.*}" color brightblue "\w+:" color green "#.*$"