## Here is an example for quoted emails (under e.g. mutt). ## syntax "mutt" color green "^>.*"
Category: Software
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 "#.*$"
Syntax Highlighting with nano – nanorc for maincf
### all *cf files (e.g. main.cf, Postfix ) syntax "maincf" "(\.|/|)cf$" color magenta "\=.*$" color green "#.*$" color cyan "[A-Z0-9\_]+=" color blue ""(\\.|[^\"])*"" color red "\@"
Syntax Highlighting with nano – nanorc for lua
syntax "lua" "\.lua$" color black "def [a-zA-Z_0-9]+" color brightblue "\<(break|do|else|elseif|end|for|function|if|repeat|return|then|until|while)\>" color blue "\<(and|or|in|true|false|not|nil|local)\>" color yellow "\<(module|assert|require|package|error|true|false)\>" color blue "\+|\-|\*|\/|\%|\^|\#|\=\=|\~\=|\<\=|\>\=|\<|\>|\=|\;|\:|\,|\.|\.\.|\.\.\." color yellow "\[|\]|\(|\)|\{|\}" color green "([\"'])[^\"]*?[^\\]\1" color green start="\[\[" end="\]\]\"" color cyan "\-\-.*$"