nano Archive

  • ## *.po file syntax ## syntax "po" "\.po$" "\.pot$" color brightblue "\<(msgid|msgstr)\>" color brightred "\/" color green "#.*$" color red "\<fuzzy\>" color yellow "\<c-format\>" color yellow "\"" color red "\"\""...

    Syntax Highlighting with nano – nanorc for po

    ## *.po file syntax ## syntax "po" "\.po$" "\.pot$" color brightblue "\<(msgid|msgstr)\>" color brightred "\/" color green "#.*$" color red "\<fuzzy\>" color yellow "\<c-format\>" color yellow "\"" color red "\"\""...

    Continue Reading...

  • # PHP Syntax Highlighting syntax "php2" "\.php[2345s~]?$" color brightblue "(.*)\(" color blue "\$[a-zA-Z_0-9$]*|[=!<>]" color green "(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|@|while)\s" color green "[.,{}();]" color red "('.*')|(\".*\")" color brightyellow "(#.*|//.*)$" color brightyellow start="/\*" end="\*/" color...

    Syntax Highlighting with nano – nanorc for php2

    # PHP Syntax Highlighting syntax "php2" "\.php[2345s~]?$" color brightblue "(.*)\(" color blue "\$[a-zA-Z_0-9$]*|[=!<>]" color green "(var|class|function|echo|case|break|default|exit|switch|if|else|elseif|@|while)\s" color green "[.,{}();]" color red "('.*')|(\".*\")" color brightyellow "(#.*|//.*)$" color brightyellow start="/\*" end="\*/" color...

    Continue Reading...

  • #################### #php syntax   ## PHP syntax highlighting ## syntax "php" "\.php$" "\.php[2345s]$" "\.phtml$" #functions color brightmagenta "([A-Za-z0-9])" #numbers color brightblue "[0-9]" #special color brightwhite "(^|[^A-Za-z0-9])(<\?php|\?>|var|and|or|default|class|extends|true|false|global|function|new|switch|case|b$ #types color brightred "([^A-Za-z0-9])|[^A-Za-z](null|int|string|float|bool|object|resource)[^A-Za-z0-9_]+[^A-Za-z]"...

    Syntax Highlighting with nano – nanorc for php

    #################### #php syntax   ## PHP syntax highlighting ## syntax "php" "\.php$" "\.php[2345s]$" "\.phtml$" #functions color brightmagenta "([A-Za-z0-9])" #numbers color brightblue "[0-9]" #special color brightwhite "(^|[^A-Za-z0-9])(<\?php|\?>|var|and|or|default|class|extends|true|false|global|function|new|switch|case|b$ #types color brightred "([^A-Za-z0-9])|[^A-Za-z](null|int|string|float|bool|object|resource)[^A-Za-z0-9_]+[^A-Za-z]"...

    Continue Reading...

  • ## Here is an example for Perl. ## 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(dir)?)\>" "\<(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|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>" icolor cyan start="[$@%]" end="( |[^0-9A-Z_]|-)" color yellow "".*"|qq\|.*\|" color...

    Syntax Highlighting with nano – nanorc for perl

    ## Here is an example for Perl. ## 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(dir)?)\>" "\<(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|for|foreach|if|unless|until|while|eq|ne|lt|gt|le|ge|cmp|x|my|sub|use|package|can|isa)\>" icolor cyan start="[$@%]" end="( |[^0-9A-Z_]|-)" color yellow "".*"|qq\|.*\|" color...

    Continue Reading...

  • syntax "makefile" "(m|M)akefile$" "\.mak$" icolor yellow start="^[[:space:]]*[.0-9A-Z_]" end="\=[[:space:]]|\:|\:\:|\/" color brightgreen "((C|CXX|LD)FLAGS)|LIBADD|LIBS|include" icolor cyan start="\{" end="\}" icolor cyan start="\(" end="\)" color brightyellow "\$" color green "#.*$"   syntax "infile" ".in$" ".am$"...

    Syntax Highlighting with nano – nanorc for others

    syntax "makefile" "(m|M)akefile$" "\.mak$" icolor yellow start="^[[:space:]]*[.0-9A-Z_]" end="\=[[:space:]]|\:|\:\:|\/" color brightgreen "((C|CXX|LD)FLAGS)|LIBADD|LIBS|include" icolor cyan start="\{" end="\}" icolor cyan start="\(" end="\)" color brightyellow "\$" color green "#.*$"   syntax "infile" ".in$" ".am$"...

    Continue Reading...

  • ## Here is an example for patch files. ## syntax "patch" "\.(patch|diff)$" color brightgreen "^\+.*" color green "^\+\+\+.*" color brightblue "^ .*" color brightred "^-.*" color red "^---.*" color brightyellow...

    Syntax Highlighting with nano – nanorc for patch

    ## Here is an example for patch files. ## syntax "patch" "\.(patch|diff)$" color brightgreen "^\+.*" color green "^\+\+\+.*" color brightblue "^ .*" color brightred "^-.*" color red "^---.*" color brightyellow...

    Continue Reading...

  • ### etc/passwd syntax "passwd" "(\.|/|)passwd$" "(\.|/|)shadow$" color white ".*$" color blue "\:.*$" color yellow "\:*\:" color cyan "/.*$" color red "/bin/false" color brightred "root" color brightgreen "/bin/.*sh" color white "[0-9]"...

    Syntax Highlighting with nano – nanorc for passwd

    ### etc/passwd syntax "passwd" "(\.|/|)passwd$" "(\.|/|)shadow$" color white ".*$" color blue "\:.*$" color yellow "\:*\:" color cyan "/.*$" color red "/bin/false" color brightred "root" color brightgreen "/bin/.*sh" color white "[0-9]"...

    Continue Reading...

  • # OCaml sample nanorc # syntax "ocaml" "\.mli?$" #uid color red "\<[A-Z][0-9a-z_]{2,}\>" #declarations color green "\<(let|val|method|in|and|rec|private|virtual|constraint)\>" #structure items color red "\<(type|open|class|module|exception|external)\>" #patterns color blue "\<(fun|function|functor|match|try|with)\>" #patterns-modifiers color yellow "\<(as|when|of)\>" #conditions...

    Syntax Highlighting with nano – nanorc for ocaml

    # OCaml sample nanorc # syntax "ocaml" "\.mli?$" #uid color red "\<[A-Z][0-9a-z_]{2,}\>" #declarations color green "\<(let|val|method|in|and|rec|private|virtual|constraint)\>" #structure items color red "\<(type|open|class|module|exception|external)\>" #patterns color blue "\<(fun|function|functor|match|try|with)\>" #patterns-modifiers color yellow "\<(as|when|of)\>" #conditions...

    Continue Reading...

  • ## Here is an example for C/C++/Obj-C. ## syntax "m" "\.m$"     ## Stuffs color brightwhite "\<[A-Z_][0-9A-Z_]+\>" color green "\<(float|double|BOOL|bool|char|int|short|long|id|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" color green "\<[[:alpha:]_][[:alnum:]_]*_t\>" color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" color brightgreen "\<(for|if|while|do|else|case|default|switch)\>"...

    Syntax Highlighting with nano – nanorc for objc

    ## Here is an example for C/C++/Obj-C. ## syntax "m" "\.m$"     ## Stuffs color brightwhite "\<[A-Z_][0-9A-Z_]+\>" color green "\<(float|double|BOOL|bool|char|int|short|long|id|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>" color green "\<[[:alpha:]_][[:alnum:]_]*_t\>" color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>" color brightgreen "\<(for|if|while|do|else|case|default|switch)\>"...

    Continue Reading...

  • syntax "nscd" "nscd.conf$" color cyan "(passwd|group|hosts)" color yellow "([0-9]|yes)" color green "#.*$"

    Syntax Highlighting with nano – nanorc for nscd

    syntax "nscd" "nscd.conf$" color cyan "(passwd|group|hosts)" color yellow "([0-9]|yes)" color green "#.*$"

    Continue Reading...