### 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 "\-\-.*$"
Syntax Highlighting with nano – nanorc for lolcode
## Here iz TEH syntax highlight for lolcode ## based on the example for C/C++. ## no can has moar color syntax "lolcode" "\.lol" ## things color brightred "\<[A-Z_][0-9A-Z_]+\>" color brightred "\<[[:alnum:]]*\>" ## ## types color green "\<(YARN|NUMBR|TROOF|BUKKIT|NOOB)\>" ## ## stuff color brightgreen "\<(LINE|WORD|LETTAR)\>" ## ## aritmetric (TIEMZ xould be in TIEM?) anyway, all 3 stay as a keyword ## also the MODZ (not in yr spec 1.1) iz highlighted for modulo color brightgreen "\<(UP|UPZ|NERF|NERFZ|TIEM|TIEMZ|TIEMZD|OVAR|OVARZ|MODZ)\>" ## ## condixonal operatorz. color brightgreen "\<(BIGR THAN|SMALR THAN|LIEK|NOT|AND|OR|XOR|\!|\~|\&\&)|\|\||\||\^)\>" ## ## 4fun color red "\<(PRON)\>" ## ## varabal related color brightyellow "\<(BYES|DIAF|GIMMEH|OUTTA|I HAS A|ITZ|IN MAH|LOL|R|VISIBLE|INVISIBLE)\>" ## ## l00p color brightyellow "\<(IM IN YR|IZ|YARLY|NOWAI|KTHX|WTF|OIC)\>" ## ## added the keywords for dealing with file. ## sorry for the "low lol lolcode" <-- say it again :D color brightyellow "\<(CLOZ|OPEN|REED|RIT)\>" ## ## loops' stuff. added the keywords for try/exepshun color magenta "\<(GTFO|PLZ|AWSUM THX|O NOES)\>" ## ## begin and end lolcode color brightcyan "^[[:space:]]*(HAI|CAN HAS|KTHXBYE|)" ## ## not sure what it does, leave it #color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" ## ## String highlighting. You will in general want your comments and ## strings to come last, because syntax highlighting rules will be ## applied in the order they are read in. <-- said the previous c/c++ s.h. writer color brightwhite "<[^= ]*>" ""(\\.|[^"])*"" ## ## This string is VERY resource intensive! <-- omg! let's use it :D color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*"" ## ## Comment highlighting color brightblue "BTW.*" color cyan start="OBTW" end="TLDR"
Syntax Highlighting with nano – nanorc for log-stuff
## to have logs interpreted for you in just about 1000 ways use log analyzers ## this only helps in viewing them directly syntax "logs" "midentd.log$" "mldonkey.log$" color brightwhite "[0-9]" color brightblue "[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]" color blue "[0-9][0-9][0-9][0-9]" color cyan "\].*$" color brightblack start="\[" end="\]" syntax "emergelog" "emerge.log$" color brightwhite "[0-9]" color yellow ">>>.*$" color cyan "\*\*\*.*$" color magenta "\:\:\:.*$" color green start="\(" end="\)" color brightblue "[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]" color blue "[0-9][0-9][0-9][0-9]" icolor red "^[[:space:]]*[.0-9A-Z_]*:" syntax "ntplog" "ntp.log$" icolor red "^[[:space:]]*[.0-9A-Z_]*:" color brightwhite "[0-9]" color brightblue "[0-9][0-9]\:[0-9][0-9]\:[0-9][0-9]" color cyan "\].*$" color brightblack start="\[" end="\]" syntax "cronlog" "cron.log$" color cyan "/.*$" color brightblue "[0-9][0-9]\-[.A-Z_]*\-[0-9][0-9]" color brightwhite "[0-9][0-9]\:[0-9][0-9]" color magenta "(FILE|USER)" color yellow "(pid|cmd)" syntax "miniserv" "miniserv.log$" "miniserv.error$" color cyan "Bad\ Request.*$" color brightred "Access\ denied.*$" color brightwhite "[0-9]" color green "(POST|GET|HTTP)" color brightred "\"" color yellow "(\:|\+|/|\.|\-)" color green ".*started$"
Syntax Highlighting with nano – nanorc for javascript
syntax "JavaScript" "\.(js)$" # Default color white "^.+$" # Decimal, octal and hexadecimal numbers color yellow "\<[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\>" # Floating point number with at least one digit before decimal point color yellow "\<[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?" color yellow "\<[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?" # Keywords color green "\<(break|case|catch|continue|default|delete|do|else|finally)\>" color green "\<(for|function|if|in|instanceof|new|null|return|switch)\>" color green "\<(switch|this|throw|try|typeof|undefined|var|void|while|with)\>" # Type specifiers color red "\<(Array|Boolean|Date|Enumerator|Error|Function|Math)\>" color red "\<(Number|Object|RegExp|String)\>" color red "\<(true|false)\>" # String color brightyellow "L?\"(\\"|[^"])*\"" color brightyellow "L?'(\'|[^'])*'" # Escapes color red "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]" # Comments color magenta start="/\*" end="\*/" color magenta "//.*$"