Commits

Derek Payton  committed 07824c8

nano config, added .bash_profile, and tweaks to .bashrc

  • Participants
  • Parent commits ef801c4

Comments (0)

Files changed (73)

File .bash_profile

+#!/bin/bash
+
+. $HOME/.bashrc
 export CLICOLOR=1
 export LSCOLORS="ExGxcxdxbxegedabagacad"
 
-# Hooray Nano!
+# Hooray Nano! *ducks*
 export EDITOR=nano
 
 # Prompt is not as complicated as the format string would
 # with user/host in green and working directory blue.
 # The first one sets the terminal title, the second is the prompt.
 export PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]"
-export PS1="$PS1(\[\e[0;37m\]\A\[\e[0;37m\]) \[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \$ "
+export PS1="$PS1(\[\e[0;37m\]\A\[\e[0;37m\]) \[\033[01;32m\]\u@\h\[\033[01;34m\] \[\e[0;36m\]\w\[\e[0;37m\] \$ "
 
 # Env variables and functions for virtualenvwrapper.
 export WORKON_HOME=$HOME/dev/virtualenvs
 ignore = ~/.hgignore
 ssh = ssh -q -C
 username = Derek Payton <derek.payton@gmail.com>
+
+[extensions]
+hgext.bookmarks =
+hggit =
+

File .nano/apache2.nanorc

+## Apache httpd.conf highlighting
+##
+#how to add sites-enabled files?  "default" is too generic to keep in here I think
+syntax "Apache2" "httpd.conf$"
+color brightwhite "(ServerRoot|LoadModule|(Lock|Pid)File|Timeout|(Max)?KeepAlive(Requests|Timeout)?)"
+color brightwhite "(User|Group|LogFormat|ErrorLog|Include|(Script)?Alias)"
+color brightwhite "(ErrorDocument|AccessFileName|UseCanonicalName|TypesConfig|DefaultType)"
+color brightwhite "(HostnameLookups|IndexOptions|(Readme|Header)Name|LanguagePriority)"
+color brightwhite "(AddIcon(ByEncoding|ByType)?|DefaultIcon|IndexIgnore|BrowserMatch)"
+color brightwhite "(Add(Encoding|Language|(Default)?Charset|Type|Handler)|DirectoryIndex)"
+color brightwhite "(DocumentRoot|Server(Admin|Signature)|LogLevel|CustomLog)"
+color brightwhite "((Force)?LanguagePriority|NameVirtualHost)"
+color brightyellow "(SetHandler|Order|Deny|Allow|SetOutputFilter)"
+color yellow "(AllowOverride|FileInfo|AuthConfig|Limit)"
+color yellow "([^A-Z0-9a-z]Options|Indexes|(\+|\-)?SymLinksIfOwnerMatch)"
+color yellow "(Includes(NoExec)?|(\+|\-)?MultiViews)"
+color yellow "(None|allow,deny|deny,allow|(allow)? from (all)?|Prefer|Fallback)"
+color yellow "(Add(Handler|OutputFilter)|NumServers|AcceptMutex)"
+color yellow "((Min|Max)Spare(Threads|Servers|Processors)|Start(Threads|Servers))"
+color yellow "(MaxClients|(Min|Max)?ThreadsPerChild|MaxRequestsPerChild)"
+color yellow "(FancyIndexing|VersionSort|ExecCGI|FollowSymLinks|(Min|Max)Processors)"
+color yellow "hostmaster@[A-Za-z0-9\.]*"
+color brightred "(On|Off)[[:space:]]*$"
+color brightred "[[:space:]]+(debug|info|notice|warn|error|crit|alert|emerg)[[:space:]]*$"
+color brightred "[[:space:]]+(combined|common|referer|agent)[[:space:]]*$"
+color brightred "[[:space:]]+(redirect\-carefully|nokeepalive)[[:space:]]*"
+color brightred "[[:space:]]+(force\-response\-1\.0)[[:space:]]*"
+color brightred "[[:space:]]+(downgrade\-1\.0)[[:space:]]*"
+color brightred "[[:space:]]+application/[a-zA-Z\-]+[[:space:]]*"
+color brightred "[[:space:]]+type-map[[:space:]]*"
+color magenta "[[:space:]]+[0-9]+[[:space:]]*"
+color magenta "(/)?(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[1-9])(\.(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[0-9])){3}([[:space:]]+::(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[0-9])/(2[0-5]{2}|1[0-9]{2}|[1-9][0-9]|[0-9]))?"
+color brightcyan start="<" end=">"
+color white ""(\\.|[^\"])*""
+# Unix-based paths
+# can't use \] in the regex for some reason?!? Maybe a bug?
+# this is preventing a 100% "to the end of the line" match for a few
+# lines (the trailing characters from ] to the EOL are not highlighted.
+# if anyone knows how to make it work, let me know.. ;)
+color white "[[:space:]]+(/[/\[\^#A-Za-z0-9\.\*\_\-]+)+"
+color green "^[[:space:]]*#.*" 
+color cyan "\<(ServerName|Serveralias|DocumentRoot|DirectoryIndex|ErrorLog|CustomLog)\>"
+

File .nano/asm.nanorc

+## Here is an example for assembler.
+##
+syntax "asm" "\.(S|s|asm)$"
+color red "\<[A-Z_]{2,}\>"
+color brightgreen "\.(data|subsection|text)"
+color green "\.(align|file|globl|global|hidden|section|size|type|weak)"
+color brightyellow "\.(ascii|asciz|byte|double|float|hword|int|long|short|single|struct|word)"
+icolor brightred "^[[:space:]]*[.0-9A-Z_]*:"
+color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)"
+## Highlight strings (note: VERY resource intensive)
+color brightyellow "<[^= 	]*>" ""(\\.|[^"])*""
+color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
+## Highlight comments
+color brightblue "//.*"
+color brightblue start="/\*" end="\*/"
+## Highlight trailing whitespace
+color ,green "[[:space:]]+$"

File .nano/c-file.nanorc

+syntax "c-file" "\.(c|h)$"
+color red "\<[A-Z_]{2,}\>" 
+color green "\<(float|double|char|int|short|long|enum|void|static|const|struct|union|typedef|extern|signed|unsigned|inline)\>"
+color brightyellow "\<(for|if|while|do|else|case|switch|goto|continue|break|return)\>"
+color brightcyan "^ *# *(define|undef|include|ifn?def|endif|elif|else|if)"
+color brightmagenta "'([^\]|(\\['abfnrtv\\]))'" "'\\(([0-7][0-7]?)|([0-3][0-7][0-7]))'" "'\\x[0-9A-Fa-f][0-9A-Fa-f]?'"
+color brightyellow "<[^= ]*>" ""(\\.|[^\"])*""
+color brightyellow start=""(\\.|[^\"])*\\ *$" end="^(\\.|[^\"])*""
+color brightblue "//.*"
+color brightblue start="/\*" end="\*/"

File .nano/c.nanorc

+## Here is an example for C/C++.
+##
+syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$"
+color brightred "\<[A-Z_][0-9A-Z_]+\>" 
+color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
+color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>"
+color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>"
+color brightyellow "\<(for|if|while|do|else|case|default|switch)\>"
+color brightyellow "\<(try|throw|catch|operator|new|delete)\>"
+color magenta "\<(goto|continue|break|return)\>"
+color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)"
+color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'"
+##
+## GCC builtins
+color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__"
+##
+## 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.
+color brightyellow "<[^= 	]*>" ""(\\.|[^"])*""
+##
+## This string is VERY resource intensive!
+color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
+
+## Comment highlighting
+color brightblue "//.*"
+color brightblue start="/\*" end="\*/"
+
+## Trailing whitespace
+color ,green "[[:space:]]+$"

File .nano/changelog.nanorc

+syntax "changelog" "ChangeLog$"
+color brightgreen "^\+.*"
+color green "^\+\+\+.*"
+color brightblue "^ .*"
+color brightred "^-.*"
+color red "^---.*"
+color red "(\d\d\s\w\+\s\d\{4\})"
+color brightyellow "^@@.*"
+color magenta "^diff.*"
+
+#syn region GentooChangeLogRelease start=/^\*/ end=/$/ contains=GentooChangeLogReleaseDate
+#syn match GentooChangeLogReleaseDate contained /(\d\d\s\w\+\s\d\{4\})/
+#syn region GentooChangeLogEntry start=/^\s\+/ end=/\n\n/
+#           \ contains=GentooChangeLogEntryDate,GentooBug
+#syn region GentooChangeLogEntryDate contained start=/\d\?\d\s\w\+\s\d\{4\}/ end=/;/
+#           \ nextgroup=GentooChangeLogEntryAuthor,GentooChangeLogEntryEmail skipwhite skipnl
+#syn region GentooChangeLogEntryAuthor contained start=/\S/ end=/\( <\)\@=/
+#           \ nextgroup=GentooChangeLogEntryEmail skipwhite skipnl
+#syn match  GentooChangeLogEntryEmail contained /<\?[a-zA-Z0-9\.\-\_]\+@[a-zA-Z0-9\.\-\_]\+>\?/
+#           \ nextgroup=GentooChangeLogFiles skipwhite skipnl
+#syn region GentooChangeLogFiles contained start=/\(\S\)\@=/ end=/:/
+#           \ contains=GentooChangeLogAddFile,GentooChangeLogDelFile,GentooChangeLogModFile
+#" Add / delete / changed files
+#syn region GentooChangeLogAddFile contained start=/+/ end=/\([,:]\)\@=/
+#syn region GentooChangeLogDelFile contained start=/-/ end=/\([,:]\)\@=/
+#syn region GentooChangeLogModFile contained start=/[a-zA-Z0-9]/ end=/\([,:]\)\@=/
+

File .nano/changelogs.nanorc

+## Changelog file syntax
+##
+syntax "changelogs" "ChangeLog*$" "HISTORY$" "NEWS$"
+
+color green "\+"
+color red "\-"
+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]\-[0-9][0-9]\-[0-9][0-9]"
+color blue "[0-9][0-9][0-9][0-9]\/[0-9][0-9]\/[0-9][0-9]"
+color blue "\<(CEST|CET|CST||CDT|EDT)\>"
+color yellow "[0-9]\..*$"
+color cyan "\*.*$"
+color brightblue "\<(pre.*$|beta.*$|rc.*$|release.*$)\>"
+color green "#.*$"
+icolor brightred "^[[:space:]]*[.0-9A-Z_]*:"
+color magenta "[.0-9A-Za-z_]*[[:space:]]*[.0-9A-Za-z_]*[[:space:]]<"
+color brightyellow  "<(\\.|[^\"])*>"
+color brightwhite "commit[[:space:]]*[.0-9A-Z_]*$"

File .nano/clike.nanorc

+## Here is an example for C/C++.
+##
+syntax "clike" "\.(m|pch)$"
+color brightred "\<[A-Z_][0-9A-Z_]+\>" 
+color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
+color green "\<((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\>"
+color green "\<(class|namespace|template|public|protected|private|typename|this|friend|virtual|using|mutable|volatile|register|explicit)\>"
+color brightyellow "\<(for|if|while|do|else|case|default|switch)\>"
+color brightyellow "\<(try|throw|catch|operator|new|delete)\>"
+color magenta "\<(goto|continue|break|return)\>"
+color brightcyan "^[[:space:]]*#[[:space:]]*(define|include|(un|ifn?)def|endif|el(if|se)|if|warning|error)"
+color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'"
+##
+## GCC builtins
+color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__"
+##
+## 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.
+color brightyellow "<[^= 	]*>" ""(\\.|[^"])*""
+##
+## This string is VERY resource intensive!
+color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
+
+## Comment highlighting
+color brightblue "//.*"
+color brightblue start="/\*" end="\*/"

File .nano/config.nanorc

+### several config files
+syntax "config" "(\.|/|)config$" "(\.|/|)logout$" "(\.|/|)COLORS$" "(\.|/|)colors$"
+color red "/.*$" "TERM" "\..*$" "=.*$" "\*.*$"
+color white ":unscaled" "[0-9]"
+color blue "setenv|export" "\;"
+color green "#.*$"
+

File .nano/config2.nanorc

+### more config files
+syntax "config2" "(\.|/|)env$" "(\.|/|)server.$" "hosts" "gpm" "local.*$" "bootsplash" "crypto-loop"
+color red "/.*$" "http\:\/\/.*$"
+color white ":unscaled"
+color blue "setenv|export"
+color brightwhite "[0-9]"
+color green "#.*$"
+color white "http\:\/\/" "ftp\:\/\/" "rsync\:\/\/" 
+

File .nano/config3.nanorc

+### even more config files ;-)
+syntax "config3" "iptables" "ntp.*$" "rsyncd" "xfs" "saslauthd" "timidity" "net.*$" "hdparm" "esound" "login.*$"
+color red "/.*$" "http\:\/\/.*$" ""(\\.|[^\"])*"" "\<(server)\>" "\<(logfile)\>""\<(driftfile)\>"
+color white ":unscaled" "http\:\/\/" "ftp\:\/\/" "rsync\:\/\/"
+color blue "setenv|export"
+color brightwhite "[0-9]"
+color green "#.*$"
+

File .nano/configfiles.nanorc

+### all *conf files  (e.g. make.conf, xorg.conf, grub.conf, make.globals, Xfce files...)
+syntax "configfiles" "(\.|/|)conf$" "(\.|/|)ample$" "(\.|/|)globals$" "xfce.*$" "syslog-ng" "sudoers"
+color brightwhite "\<(alias)\>"
+color blue "<(\\.|[^'])*>"
+color magenta "[a-zA-Z0-9\_]+="
+color white ">(\\.|[^'><])*</"
+color green "//.*$"
+color red ""(\\.|[^\"])*""
+color red "title.*$" "\<(server)\>" "\<(logfile)\>" "\<(driftfile)\>" "\<(restrict)\>"
+color white ":unscaled" "http\:\/\/" "ftp\:\/\/" "rsync\:\/\/"
+color magenta "'(\\.|[^'])*'"
+color brightwhite "[0-9]"
+color brightwhite "[<>]"
+color magenta "Section" "EndSection" "SubSection" "EndSubSection"
+color red "\<(root)\>"
+color brightred,blue "^.*-->" start="<!--.*" end="$"
+color green "#.*$" start="<!--" end="-->"
+

File .nano/conky.nanorc

+## Conky config highlighting
+##
+syntax "Conky" ".conkyrc$"
+color brightblue "(use_spacer|background|use_xft|xftfont|xftalpha)"
+color brightblue "(mail_spool|update_interval|own_window)"
+color brightblue "(double_buffer|minimum_size)"
+color brightblue "(draw_(outline|borders|shades)|stippled_borders)"
+color brightblue "border_(margin|width)"
+color brightblue "default_((shade_|outline_)?color)"
+color brightblue "(alignment|gap_x|gap_y|no_buffers|uppercase)"
+color brightblue "^TEXT[[:space:]]*$"
+color brightred "[[:space:]]+(yes|no)[[:space:]]*"
+color brightred "(top_left|top_right|bottom_left|bottom_right)[[:space:]]*$"
+color magenta "[[:space:]]+([[:space:]]*([0-9]\.?))+[[:space:]]*"
+color brightred "\$\{?[a-zA-Z_0-9\# ]+\}?"
+color green "^[[:space:]]*#.*"
+color white "[[:space:]]+\#[0-9A-Fa-f]{6}" 

File .nano/css.nanorc

+##############################################################################
+#
+# Syntax highlighting for CSS files
+#  
+# Author:  Simon Rupf, simon.rupf(a)int-ag.ch
+# License: GPL 2  or later
+#
+# Version: 2005-02-14
+#
+##############################################################################
+
+syntax "css" "\.css$"
+color brightred     "."
+color brightyellow  start="\{" end="\}"
+color brightwhite           start=":" end="[;^\{]"
+color brightblue    ":active|:focus|:hover|:link|:visited|:link|:after|:before|$"
+color brightblue    start="\/\*" end="\\*/"
+color green         ";|:|\{|\}"
+

File .nano/debian.nanorc

+## Here is an exmaple for apt's sources.list
+## Adapted from http://milianw.de/blog/Syntax-Highlighting-in-Nano
+## (mail@milianw.de).
+##
+syntax "apt/sources.list" "sources\.list(\.old|~)?$"
+# component
+color brightmagenta "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/) [^ ]+ .+$"
+# distribution
+color brightred "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/) [^ ]+"
+# URI
+color brightgreen "(http|file|ftp):/[^ ]+"
+# cdroms
+# [^\]] does not work...
+color brightgreen "cdrom:\[[-a-zA-Z0-9\._\(\) ]+\]/"
+# deb / deb-src
+color yellow "^deb"
+color yellow "^deb-src"
+# comments
+color brightblue "#.*"
+

File .nano/default.nanorc

+syntax "default"
+color green "^#.*" 
+color brightgreen "^##.*"
+color yellow "^###.*"
+#color green "^[ \t]*#.*

File .nano/delphi.nanorc

+syntax "Delphi Source" "\.pas$"
+color brightcyan "\<(boolean|byte|char|double|float|integer|long|new|short|this|transient|void)\>"
+color brightred "\<(break|case|catch|continue|default|do|else|finally|for|if|then|return|switch|throw|try|while|function)\>"
+#color cyan "\<(abstract|unit|class|extends|final|implements|import|instanceof|interface|native|package|private|protected|public|static|strictfp|super|$color brightyellow "\<(until|repeat|var|uses|type|begin|end|const)\>"
+color magenta "\<(true|false|null|procedure)\>"
+color brightblue "//.*"
+color brightblue start="\{" end="\}"

File .nano/desc.nanorc

+### all *desc files ( e.g. use.desc, use.local.desc )
+syntax "use" "(\.|/|)desc$"
+color green ".*\-"
+color white "\:.*$"
+color white "\-.*$"
+color magenta "\:(\\.|[^'])*\-"
+color blue "\-(\\.|[^'])*\:"
+color yellow "\/(\\.|[^'])*\:"
+color red "x86" "http\:\/\/.*$"
+color brightred "\!\!(\\.|[^'])*\!\!" "DO NOT SET THIS FLAG YOURSELF!"
+color green "#.*$" 

File .nano/dotemacs.nanorc

+syntax "dotemacs" "^.emacs$"
+color green  "^;.*"

File .nano/dummy.nanorc

+##########################################################################
+##########################################################################
+#
+#
+# D U M M Y Ruleset
+#
+#
+# If you want to create your own rules you can use this simple example:
+#
+# syntax "Dummy" "(\.|/|)foo$"  -> this creates the ruleset "Dummy" and it
+#               matches all filenames ending with foo
+#      "foo"         -> this matches foo exactly
+#      "foo.*$"   -> this matches files beginning with foo
+#
+#
+#
+# After you selected the files you can define rulesets for this file:
+#
+#
+# color blue "#.*$"      -> colors all after "#" blue on this line
+# color red "\@"      -> colors all "@" red, \ means to handle it _not_
+#               as a special sign
+# color yellow "\<(profi)\>"   -> colors only the word profi yellow
+# color yellow "profi"      -> colors all strings "profi" yellow, also in
+#               profile
+# color black "[0-9]"      -> colors all numbers black
+# color magenta "'(\\.|[^'])*'" -> colors all between ' and ' magenta,
+#               but only on the same line
+# color red "[A-Z0-9\_]+="      -> matches everything folowed  by =
+# color green "setenv|export"   -> matches the string setenv OR export
+# color cyan "^.*(foobar).*$"   -> colors the whole line cyan, by matching foobar
+#                                  on that line
+#
+# color brightred,blue start="<!--" end="-->"
+#
+#                               -> colors all between <!-- and --> brightred on blue
+#                                  even if there are more lines between
+#
+#
+########################################################################### 

File .nano/ekghistory.nanorc

+syntax "ekghistory" "(\.|/|).gg/history"
+icolor cyan start="<" end=">"
+icolor green ",(\\.|[^\"])*,"
+color yellow "chatrecv"
+color cyan "chatsend"
+color brightwhite "[0-9]"
+

File .nano/etc-stuff.nanorc

+## /etc/ stuff syntax
+##
+#syntax "etcconf.d" "conf.d/(\.|/|)"
+#color magenta "\".*$"
+#color blue "#.*$"
+
+syntax "group" "group$"
+color green "[0-9]\:.*$"
+color brightwhite "[0-9]"
+icolor brightred "^[[:space:]]*[.0-9A-Z_]*:"
+
+syntax "modules" "modules.conf$" "modules.d/(\.|/|)"
+color brightwhite "[0-9]"
+color red "alias"
+color brightred "(probeall|options)"
+color green "#.*$"
+
+syntax "modprobe" "modprobe.conf$"
+color brightwhite "[0-9]"
+color red "alias"
+color brightred "options"
+color magenta "[a-zA-Z0-9\_]+="
+color green "#.*$"
+
+syntax "hosts" "hosts$"
+#color brightwhite "[0-9]"
+color yellow "^[[:space:]]*[.0-9A-Z_]*.*$"
+color brightblue "^[[:space:]]*[.0-9A-Z_]*"
+color red "127.0.0.1"
+color cyan "\:\:"
+color green "#.*$"
+
+syntax "mplayer" "mplayer.conf$"
+color brightgreen "\=.*$"
+color brightred "no"
+color cyan "\="
+color green "#.*$"
+
+syntax "mplayerplugin" "mplayerplug\-in.conf$"
+color brightgreen "\=.*$"
+color brightred "0"
+color cyan "\="
+color green "#.*$"
+
+syntax "sensors" "sensors.conf$"
+color brightyellow "\".*$"
+color yellow "\<(label|compute|set|chip)\>"
+color green "#.*$"
+
+syntax "sysctl" "sysctl.conf$"
+color brightwhite "[0-9]"
+color cyan "\="
+color green "#.*$"
+
+syntax "dircolors" "DIR_COLORS$"
+color yellow "\<(TERM|NORMAL|FILE|DIR|LINK|FIFO|SOCK|DOOR|BLK|CHR|ORPHAN|MISSING|SETUID|SETGID)\>"
+color yellow "\<(STICKY|EXEC|STICKY_OTHER_WRITABLE|OTHER_WRITABLE)\>"
+color brightblack "[0-9][0-9]\;.*$"
+color cyan "\.[.0-9A-Z_]*[[:space:]]"
+color green "#.*$"
+
+syntax "modes" "fb.modes$"
+color yellow "\<(mode|endmode)\>"
+color cyan "\<(geometry|timings|hsync|vsync|double)\>"
+color green "#.*$"
+
+syntax "serial" "serial.conf$"
+color brightwhite "[0-9]"
+color cyan "\<(uart|port|irq|fourport)\>"
+color green "#.*$"
+
+syntax "services" "services$"
+color cyan "/tcp"
+color magenta "udp"
+color brightblack "/"
+color brightwhite "[0-9]"
+color green "#.*$"
+
+syntax "crontab" "crontab$"
+color brightwhite "[0-9]"
+color cyan "\*"
+color yellow "[[:space:]]/.*$"
+color brightblack "(&|>)"
+color green "#.*$"
+
+syntax "nscd" "nscd.conf$"
+color cyan "(passwd|group|hosts)"
+color yellow "([0-9]|yes)"
+color green "#.*$"
+
+syntax "rsync" "rsyncd.conf$"
+color cyan "(hosts|(u|g)id|pid\ file|use\ chroot|read\ only|address|max\ connections|motd\ file)"
+color cyan "(log\ format|syslog\ facility|timeout)"
+color yellow "(path|comment|exclude)"
+color brightyellow  start="\[" end="\]"
+color green "#.*$"
+
+syntax "lilo" "lilo.conf$"
+color cyan "(boot|map|install|menu\-scheme|timeout|delay|prompt|vga|default)"
+color brightwhite "[0-9]"
+color magenta "(lba32|linear|compact|image)"
+color brightyellow  "(root|label|read\-only)"
+color yellow "\/.*$"
+color green "#.*$"
+
+syntax "hdparm" "hdparm$"
+color cyan "(pata|sata)_all_args"
+color cyan "[A-Za-z0-9]*_args"
+color magenta "\".*$"
+color green "#.*$"
+
+syntax "ini" "\.ini$"
+color yellow "\[.*]"
+color green "\;.*$"
+
+syntax "smbconf" "smb.conf$"
+color brightcyan "\=.*$"
+color cyan "\/.*$"
+color brightred "(no|No)"
+color brightgreen "(yes|Yes)"
+color brightyellow "(workgroup.*$|hosts\ allow.*$|interfaces.*$|netbios\ name.*$)"
+color yellow "\[.*]|\="
+icolor magenta "^[[:space:]]*[.A-Z]*"
+icolor magenta "^[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z]*"
+icolor magenta "^[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z]*"
+color green "\;.*$"
+color green "#.*$"
+
+syntax "mke2fs" "mke2fs.conf$"
+color cyan "(base_features|blocksize|inode_ratio)"
+color yellow "(small|floppy|news|largefile|largefile4)"
+color brightwhite "[0-9]"
+color brightyellow  start="\[" end="\]"
+color blue "\{|\}"
+color brightblack "\="
+color green "#.*$"
+
+#this on may need fewer colors ;)
+syntax "squidconf" "squid.conf$"
+color brightyellow "(http_port|hierarchy_stoplist|maximum_object_size|cache_dir|dns_testnames)"
+color brightyellow "(coredump_dir|pipeline_prefetch|cache_mgr|visible_hostname|ftp_user|client_netmask)"
+color cyan "(acl|refresh_pattern|quick_abort_(min|max)|(cache|memory)_replacement_policy|(access|cache|cache_store)_log|cache_host)"
+color yellow "((http|icp|snmp)_access|snmp_port|parent|sibling|anonymize_headers|fake_user_agent)"
+color brightgreen "(allow|transparent|[[:space:]]on)"
+color brightred "(deny|reload\-into\-ims|override\-expire|override\-lastmod|[[:space:]]off)"
+color magenta "(src|dst|method)"
+color brightcyan "(seconds|minutes|hours|(G|M|K)B)"
+color brightblack "[0-9]"
+color green "#.*$"
+
+syntax "distcchosts" "/etc/distcc/hosts$"
+color brightblue "[0-9]"
+color yellow "localhost"
+color magenta "(/|@|:)"
+color green "#.*$"
+
+syntax "logrotate" "logrotate.conf$"
+color brightwhite "[0-9]"
+color magenta start="/" end="[[:space:]]"
+color cyan "(create|compress|include|notifempty|nomail|noolddir|\{|\})"
+color yellow "(weekly|daily|rotate|postrotate|sharedscripts)"
+color magenta "logrotate"
+color green "#.*$"
+
+syntax "ppppears" "/etc/ppp/peers/(\.|/|)"
+color brightwhite "user.*$"
+color brightyellow "user"
+color brightyellow start="\"" end="\""
+color yellow "lcp\-(echo\-(interval|failure)|max\-configure|restart)"
+color yellow "(debug|sync|no(ccp|pcomp|accomp)|deflate|bsdcomp|usepeerdns|pty)"
+color cyan "(lock|defaultroute|noipdefault|noauth|holdoff|maxfail|persist|asyncmap|detach|updetach|cdtrcts)"
+color brightwhite "[0-9]"
+color magenta "(\@|\,|\.)"
+color green "#.*$"
+
+syntax "dhcpconf" "dhcpd.conf$"
+icolor brightgreen "^[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z]*|ad\-hoc|interim"
+color cyan "(authoritative|ddns\-update\-style|subnet|host|log\-facility)"
+color brightblue "(netmask|routers|option|(netbios|domain)-nam(e|e-servers)|(default|max)-lease-time)|range|broadcast\-address|subnet-mask"
+color brightyellow  start="\"" end="\""
+color yellow  "(hardware|ethernet|fixed\-address)"
+color brightblack "\:|\;|\{|\})""
+color green "#.*$"
+
+syntax "hibernateconf" "/etc/hibernate/common.conf$"
+color magenta "^[[:space:]]*[.A-Z]*"
+color brightwhite start="'" end="'"
+color brightgreen "yes"
+color brightred "no"
+color brightcyan "auto"
+color green "#.*$"
+color brightcyan "##.*$"
+color yellow "###.*$"
+color cyan "####.*$"
+
+syntax "nsswitch" "nsswitch.conf$"
+icolor cyan "^[[:space:]]*[.0-9A-Z_]*:"
+color magenta "\:"
+color green "#.*$"
+
+syntax "sane" "sane.d/(\.|/|)"
+color brightgreen "(scsi|usb|parport|auto)"
+color brightred "option"
+color yellow "(override|vendor|model)"
+color cyan "/.*$"
+color green "#.*$"
+
+syntax "syslogconf" "syslog.conf$"
+icolor cyan "(\*|\;|\.|\,|\\)"
+color magenta "/.*$"
+color brightblue "-.*$"
+color brightwhite "\="
+color green "#.*$"
+
+## these colors need to change...
+syntax "udevrules" "\.rules$"
+color brightwhite "[0-9]"
+color brightblack "(ACTION|SUBSYSTEM|DEVPATH|OPTIONS|WAIT_FOR_SYSFS|ENV|KERNEL|NAME|MODE|GROUP|SYMLINK|DRIVERS|PROGRAM|RUN)"
+color brightblack "(GOTO|IMPORT|ATTRS|SUBSYSTEMS|DVB|IR|BUS|SYSFS|ATTR|LABEL)"
+color yellow "(add|net|scsi|drivers|module|address|bus|devices|ioerr_cnt|ignore_device|svga|video|tt(y(S|USB)|y|s)|last_rule)"
+color yellow "(pnp|(au|ra)dio|tape|disk|snd|microcode|f(b|d|loppy|irmware)|usb|lp|kbd|parport|block|ide|misc|netlink|input)"
+color yellow "(mouse|event|joystick|psmouse|atkbd|spkr|pcspkr|ir|dvb|persistent|storage|end|scanner|sound|dialout|console)"
+color yellow "(cdrom|cdrw|dvd|dvdrw|isdn|pty|vcs|vcsa|ippp|dcbri|ircomm|capi|card|nvidia|rtc|agpgart|psaux|ptmx|sd|dasd|)"
+color yellow "(ataraid|cciss|ida|rd|3dfx|control|hw|pcm|midi|timer|seq|cpu|msr|dm|i2c|mice|js|ts|loop|md|uinput|inotify|aoe)"
+color brightyellow "(ID_(SERIAL|PATH|CLASS|EDD|CDROM|CDROM_(DVD|DVD_R|CD_RW))|program|parent|removable|GENERATED|COMMENT)"
+color brightyellow "(id(Vendor|Product)|PHYSDEVBUS|(UDEV|UDEVD)_EVENT|INTERFACE_NEW|MODALIAS|modalias|alias|name)"
+color brightred "(\%(k|r|c|n))"
+color blue "(\;|\.|\"|\,)"
+color brightblue "(\=|\*|\?)"
+color green "#.*$"
+
+syntax "mailalias" "/etc/mail/aliases$"
+icolor brightblue "^[[:space:]]*[.0-9A-Z_]*:"
+icolor brightblue "^[[:space:]]*[.0-9A-Z_]*\-[.0-9A-Z_]*:"
+color yellow "(\/.*$|root)"
+color green "#.*$"
+
+syntax "wifiradar" "wifi-radar.conf$"
+color brightwhite "[0-9]"
+color yellow "((f|F)alse|eth[.0-9])|yes|no|[[:space:]]auto|ssid"
+color brightgreen start="\[" end="\]"
+color green "#.*$"
+
+syntax "irssi" "irssi.conf$"
+icolor brightwhite "(^[[:space:]]*[.0-9A-Z_]*[[:space:]]=|address|name|chatnet|port|autojoin)"
+color brightblue ""(\\.|[^\"])*""
+color yellow "(\{|\}|\;)"
+color brightblack "\="
+color brightgreen "(Y|y)es|[0-9]"
+color brightred "No"
+color blue "\""
+color cyan "(servers|chatnets|channels|aliases|statusbar)"
+color green "#.*$"
+
+syntax "proftpd" "proftpd.conf$"
+icolor yellow "^[[:space:]]*[.0-9A-Z_]*[[:space:]]"
+color brightyellow "ServerType|DefaultServer|ServerIdent|Port[[:space:]]|Umask|MaxInstances|User|Group"
+color yellow "(UserAlias|UseFtpUsers)"
+color brightgreen "([[:space:]]on|[0-9]|AllowAll)"
+color brightred "(off|DenyAll)"
+icolor cyan start="<" end=">"
+icolor cyan start=""" end="""
+color cyan "xinetd|inetd|standalone"
+color green "#.*$"
+
+syntax "xinetd" "xinetd.conf$"
+icolor yellow "^[[:space:]]*[.0-9A-Z_]*[[:space:]]"
+color brightgreen "([0-9]|yes)"
+color brightred "(off|no)"
+color magenta "defaults"
+color brightblack "="
+color brightyellow "(\{|\})"
+color cyan "/.*$"
+color green "#.*$"
+
+syntax "xinetd.d" "xinetd.d/(\.|/|)"
+icolor yellow "^[[:space:]]*[.0-9A-Z_]*[[:space:]]"
+color brightgreen "([0-9]|yes)"
+color brightred "(off|[[:space:]]no)"
+color brightblack "="
+color brightyellow "(\{|\})"
+color cyan "/.*$"
+color green "#.*$"
+
+syntax "localegen" "locale(.gen|s.build)"
+color cyan "ISO.*$"
+color yellow "UTF.*$"
+color green "#.*$"
+
+syntax "clamd" "clamd.conf$"
+color brightblack "[0-9]M"
+color brightwhite "[0-9]"
+color yellow "^[[:space:]]*[.0-9A-Z_]*"
+color cyan "^[[:space:]]*[.0-9A-Z_]*[[:space:]]"
+color green "#.*$"
+
+syntax "grcconf" "grc.conf$"
+color cyan "conf\..*$"
+color yellow "\(.*$|\\.*$"
+color green "#.*$"
+
+syntax "freshclamconf" "freshclam.conf$"
+icolor brightcyan "^[[:space:]]*[.A-Z]*[[:space:]]*[.A-Z_]*"
+color cyan "\/.*$|[0-9]"
+icolor yellow "^[[:space:]]*[.A-Z]*"
+color green "#.*$"
+
+syntax "colorlightbg" "colordiffrc-lightbg$"
+color brightblue "=.*$"
+icolor yellow "^[[:space:]]*[.A-Z_]*"
+color brightblack "="
+color green "#.*$"
+
+syntax "etc-limits" "limits$"
+icolor yellow "^[[:space:]]*[.A-Z_]*"
+color green "#.*$"
+
+syntax "screenrc" "screenrc$"
+icolor yellow "^[[:space:]]*[.A-Z_]*"
+color blue ""(\\.|[^\"])*""
+color brightwhite "[0-9]"
+color red "[[:space:]]off"
+color brightgreen "[[:space:]]on"
+color magenta "'.*$"
+color magenta "[A-Z0-9\_]+="
+color green "#.*$"
+
+syntax "fdparm" "fdprm$"
+icolor brightgreen "^[[:space:]]*[0-9\/a-z]*"
+color green "#.*$"
+
+syntax "securetty" "securetty$"
+color cyan "console"
+color brightwhite "[0-9]"
+color red "vc"
+color brightgreen "tt(y|yS|s)"
+color green "#.*$"
+
+syntax "logindefs" "login.defs"
+
+icolor yellow "^[[:space:]]*[0-9\/a-z_]*"
+color brightwhite "[0-9]"
+color brightred "no"
+color brightgreen "yes"
+color green "#.*$"
+
+syntax "mysql" "my.cnf"
+icolor yellow "^[[:space:]]*[0-9\/a-z_-]*"
+color cyan start="\[" end="\]"
+color green "#.*$"
+
+syntax "manconf" "man.conf$"
+icolor yellow "^[[:space:]]*[.A-Z_0-9]*"
+color brightgreen "/.*$"
+color green "#.*$"
+
+syntax "sshdconf" "sshd_config$"
+icolor yellow "^[[:space:]]*[.A-Z_0-9]*"
+color brightwhite "[0-9]"
+color brightblue "/.*$"
+color brightred "no"
+color brightgreen "yes"
+color green "#.*$"
+
+#these look stupid if you ask me, but hey do better :P
+syntax "protocols" "protocols$"
+icolor brightgreen "[0-9][[:space:]][[:space:]]*[.A-Z0-9-]*"
+icolor brightblue "[.a-z0-9][[:space:]][[:space:]]*[.0-9]"
+icolor brightblue "[.a-z0-9][[:space:]][[:space:]]*[.0-9][.0-9]"
+icolor brightblue "[.a-z0-9][[:space:]][[:space:]]*[.0-9][.0-9][.0-9]"
+icolor yellow "^[[:space:]]*[.A-Z0-9-]*"
+color green "#.*$"

File .nano/etcxml.nanorc

+##############################################################################
+#
+# Syntax highlighting for XML files (/etc/fonts/*)
+#
+# Author:  Josef 'Jupp' Schugt, jupp(a)rubyforge.org
+# License: GPL 2  or later
+#
+# Version: 2004-02-25
+#
+##############################################################################
+
+syntax "etcxml" "/etc/fonts/(\.|/|)" "/etc/xdg/(\.|/|)"
+color white "^.+$"
+color green  start="<" end=">"
+color cyan   "<[^> ]+"
+color cyan   ">"
+color yellow start="<!DOCTYPE" end="[/]?>"
+color yellow start="<!--" end="-->"
+color red    "&[^;]*;"
+
+syntax "etcxml2" "gentoorc$"
+color white "^.+$"
+color green  start="<" end=">"
+color cyan   "<[^> ]+"
+color cyan   ">"
+color yellow start="<!DOCTYPE" end="[/]?>"
+color yellow start="<!--" end="-->"
+color red    "&[^;]*;"
+

File .nano/gentoo.nanorc

+## Here is an example for Gentoo ebuilds/eclasses
+##
+syntax "ebuild" "\.e(build|class)$"
+## All the standard portage functions
+color brightgreen "^src_(unpack|compile|install|test)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))"
+## Highlight bash related syntax
+color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while|continue|break)\>"
+color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
+color green "-(e|d|f|r|g|u|w|x|L)\>"
+color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
+## Highlight variables ... official portage ones in red, all others in bright red
+color brightred "\$\{?[a-zA-Z_0-9]+\}?"
+color red "\<(ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|FILESDIR|WORKDIR|(P|R)?DEPEND|PROVIDE|DISTDIR|RESTRICT|USERLAND)\>"
+color red "\<(S|D|T|PV|PF|P|PN|A)\>" "\<C(XX)?FLAGS\>" "\<LDFLAGS\>" "\<C(HOST|TARGET|BUILD)\>"
+## Highlight portage commands
+color magenta "\<use(_(with|enable))?\> [!a-zA-Z0-9_+ -]*" "inherit.*"
+color brightblue "\<e(begin|end|conf|install|make|warn|infon?|error|log|patch|new(group|user))\>"
+color brightblue "\<die\>" "\<use(_(with|enable))?\>" "\<inherit\>" "\<has\>" "\<(has|best)_version\>" "\<unpack\>"
+color brightblue "\<(do|new)(ins|s?bin|doc|lib(|\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)\>"
+color brightblue "\<do(python|sed|dir|hard|sym|html|jar|mo)\>" "\<keepdir\>"
+color brightblue "prepall(|docs|info|man|strip)" "prep(info|lib|lib\.(so|a)|man|strip)"
+color brightblue "\<(|doc|ins|exe)into\>" "\<f(owners|perms)\>" "\<(exe|ins|dir)opts\>"
+## Highlight common commands used in ebuilds
+color blue "\<make\>" "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|let|ln|mkdir|mv|rm|sed|set|tar|touch|unset)\>"
+## Highlight comments (doesnt work that well)
+color yellow "#.*$"
+## Highlight strings (doesnt work that well)
+color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'"
+## Trailing space is bad!
+color ,green "[[:space:]]+$"
+
+## Here is an example for Portage control files
+##
+syntax "/etc/portage" "\.(keywords|mask|unmask|use)$"
+## Base text:
+color green "^.+$"
+## Use flags:
+color brightred "[[:space:]]+\+?[a-zA-Z0-9_-]+"
+color brightblue "[[:space:]]+-[a-zA-Z0-9_-]+"
+## Likely version numbers:
+color magenta "-[[:digit:]].*([[:space:]]|$)"
+## Accepted arches:
+color white "[~-]?\<(alpha|amd64|arm|hppa|ia64|mips|ppc|ppc64|s390|sh|sparc|x86|x86-fbsd)\>"
+color white "[[:space:]][~-]?\*"
+## Categories:
+color cyan "^[[:space:]]*.*/"
+## Masking regulators:
+color brightmagenta "^[[:space:]]*(=|~|<|<=|=<|>|>=|=>)"
+## Comments:
+color yellow "#.*$"

File .nano/groff.nanorc

+## Here is an example for groff.
+##
+syntax "groff" "\.m[ems]$" "\.rof" "\.tmac$" "^tmac."
+## The argument of .ds or .nr
+color cyan "^\.(ds|nr) [^[[:space:]]]*"
+## Single character escapes
+color brightmagenta "\\."
+## Highlight the argument of \f or \s in the same color
+color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]"
+## Newlines
+color cyan "(\\|\\\\)n(.|\(..)"
+color cyan start="(\\|\\\\)n\[" end="]"
+## Requests
+color brightgreen "^\.[[:space:]]*[^[[:space:]]]*"
+## Comments
+color yellow "^\.\\".*$"
+## Strings
+color green "(\\|\\\\)\*(.|\(..)"
+color green start="(\\|\\\\)\*\[" end="]"
+## Characters
+color brightred "\\\(.."
+color brightred start="\\\[" end="]"
+## Macro arguments
+color brightcyan "\\\\\$[1-9]"

File .nano/havp.nanorc

+
+syntax "havp" "havp.config$"
+color brightred "REMOVETHISLINE" 
+color red "(deleteme|false)"
+color brightgreen "true"
+color brightwhite "[0-9]"
+color yellow "\ \/.*$"
+color brightyellow "--[a-z]*"
+color cyan "^[[:space:]]*[.A-Z_0-9]*"
+color green "#.*$"

File .nano/html.nanorc

+## Here is a short example for HTML.
+##
+syntax "html" "\.html$"
+color blue start="<" end=">"
+color red "&[^;[[:space:]]]*;"

File .nano/info.nanorc

+## *.Info file syntax
+##
+syntax "info" "Info.txt$"
+color green "[0-9]"
+color brightblue "\<(video|codec|bitrate|width|height|General|FileSize|Format|OveralBitRate|PlayTime)\>"
+color brightblue "\<(Video|Codec|Bitrate|BitRate|Width|Height|AspectRatio|FrameRate|Bits|SamplingRate)\>"
+color brightblue "\<(audio|channel|V(i|I)DEO|CODEC|FORMAT|B(I|i)TRATE|METHOD|R(I|i)P|AUD(I|i)O|RESOLUT(I|i)ON|GENRE)\>"
+color brightblue "\<(Audio|Channel|Sound|ASPECT|RAT(i|I)O|MOV(I|i)E|S(i|I)ZE|RUNT(I|i)ME)\>"
+color magenta "Movie.*$"
+color blue "\<(KHz|kHz|Kbps|fps|MB|KB|channels|MiB|min|kbit\/s|Min)\>"
+color brightyellow "\<(DivX|XviD|MPEG\-4|AAC\ LC|H\.264|LAME|NTSC|MPEG1|AVI)\>"
+color brightblack "\="
+icolor brightcyan "[.0-9A-Z_]*:"
+icolor brightyellow "http:.*$"
+
+
+
+

File .nano/initng.nanorc

+## InitNG syntax
+##
+syntax "initngscripts"  "\.i$"
+icolor brightgreen "^[0-9A-Z_]+\(\)"
+color magenta "(daemon|virtual)"
+color brightwhite "virtual/.*$"
+color brightblack "daemon/.*$"
+color yellow "(need|use|respawn|exec\ daemon|also_stop)"
+color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
+color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
+color green "-[Ldefgruwx]\>"
+color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
+color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
+icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
+color cyan "(^|[[:space:]])#.*$"
+color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
+
+syntax "initng-settings" "system.virtual$" "\.runlevel$"
+color magenta "daemon"
+color cyan "system"
+color blue "net"
+color red "debug"

File .nano/initscript.nanorc

+## initscripts syntax (stolen from gentoo.nanorc) ;)
+##
+syntax "initscript" "/etc/init.d/(\.|/|)"
+## All the standard portage functions
+#color brightgreen "^src_(unpack|compile|install|test)" "^pkg_(config|nofetch|setup|(pre|post)(inst|rm))"
+## Highlight bash related syntax
+color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
+color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
+color green "-(e|d|f|r|g|u|w|x|L)\>"
+color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
+## Highlight variables ... official portage ones in red, all others in bright red
+color brightred "\$\{?[a-zA-Z_0-9]+\}?"
+color red "\<(ARCH|HOMEPAGE|DESCRIPTION|IUSE|SRC_URI|LICENSE|SLOT|KEYWORDS|FILESDIR|WORKDIR|(P|R)?DEPEND|PROVIDE|DISTDIR|RESTRICT|USERLAND)\>"
+color red "\<(S|D|T|PV|PF|P|PN|A)\>" "\<C(XX)?FLAGS\>" "\<LDFLAGS\>" "\<C(HOST|TARGET|BUILD)\>"
+## Highlight portage commands
+color magenta "\<use(_(with|enable))?\> [!a-zA-Z0-9_+ -]*" "inherit.*"
+color brightblue "\<e(begin|end|conf|install|make|warn|infon?|error|patch)\>"
+color brightblue "\<die\>" "\<use(_(with|enable))?\>" "\<inherit\>" "\<has\>" "\<(has|best)_version\>" "\<unpack\>"
+color brightblue "\<(do|new)(ins|s?bin|doc|lib(|\.so|\.a)|man|info|exe|initd|confd|envd|pam|menu|icon)\>"
+color brightblue "\<do(python|sed|dir|hard|sym|html|jar|mo)\>" "\<keepdir\>"
+color brightblue "prepall(|docs|info|man|strip)" "prep(info|lib|lib\.(so|a)|man|strip)"
+color brightblue "\<(|doc|ins|exe)into\>" "\<f(owners|perms)\>" "\<(exe|ins|dir)opts\>"
+## Highlight common commands used in ebuilds
+color blue "\<make\>" "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|let|ln|mkdir|mv|rm|sed|set|tar|touch|unset)\>"
+## Highlight comments (doesnt work that well)
+color yellow "#.*$"
+## Highlight strings (doesnt work that well)
+color brightyellow ""(\\.|[^\"])*"" "'(\\.|[^'])*'"

File .nano/java.nanorc

+## Here is an example for Java.
+##
+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 ,green "[[:space:]]+$"

File .nano/js.nanorc

+### all *js files  ( e.g. Firefox user.js, prefs.js )
+
+## Old version
+
+#syntax "jsfiles" "(\.|/|)js$"
+#color green "//.*$" start="\/\*" end="\*\/"
+#color blue "'(\\.|[^'])*'"
+#color red ""(\\.|[^\"])*""
+#color brightgreen "\<(true)\>"
+#color brightred "\<(false)\>" "http\:\/\/.*$"
+#color brightmagenta "[0-9](\\.|[^\"])*)"
+
+## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting
+
+syntax "JavaScript" "\.(js)$"
+## Default
+color white "^.+$"
+## Decimal, cotal 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 "//.*$"

File .nano/log-stuff.nanorc

+## to have logs interpreted for you in just about 1000 ways use log analyzers
+## this only helps in viewing them directly
+
+## TODO
+# getdelta, others...
+
+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$"

File .nano/maincf.nanorc

+### all *cf files (e.g. main.cf, Postfix )
+syntax "maincf" "(\.|/|)cf$"
+color magenta "\=.*$"
+color green "#.*$"
+color cyan "[A-Z0-9\_]+="
+color blue ""(\\.|[^\"])*""
+color red "\@"
+

File .nano/makefile.nanorc

+## my own
+
+#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 "#.*$"
+
+## taken form http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting
+
+#syntax "makefile" "^Makefile\.?"
+#color red "[:=]"
+#color magenta "\<(if|ifeq|else|endif)\>"
+#color blue "\$\{.*}"
+#color brightblue "\w+:"
+#color green "#.*$"
+
+## two of the above compiled
+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 "#.*$"
+
+color red "[:=]"
+color magenta "\<(if|ifeq|else|endif)\>"
+color blue "\$\{.*}"
+color brightblue "\w+:"
+color green "#.*$"

File .nano/man.nanorc

+## 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)"

File .nano/mimetype.nanorc

+syntax "mimetype" "mime.types"
+icolor cyan "[.A-Z_]*/"
+color brightwhite "/"
+color green "[[:space:]].*$"
+## comments
+color green "#.*$"

File .nano/mutt.nanorc

+## Here is an example for quoted emails (under e.g. mutt).
+##
+syntax "mutt"
+color green "^>.*"

File .nano/named.nanorc

+## 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 "//.*$"

File .nano/nanorc.nanorc

+## 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:]]*##.*$"

File .nano/nscd.nanorc

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

File .nano/others.nanorc

+syntax "infile" ".in$" ".am$"
+icolor brightgreen start="\{" end="\}"
+color magenta "(if[[:space:]]|endif|else)"
+color yellow "^[[:space:]]*[.0-9A-Z_](\\.|[^\"])*(\=|\:)"
+color cyan "\((\\.|[^\"])*\)"
+color cyan "@(\\.|[^\"])*@"
+color brightblack "(\-[.a-z]*|\HAVE[.a-zA-Z_]*)"
+color yellow "\/"
+color brightblue ""(\\.|[^\"])*""
+color brightyellow "(\$|dnl.*$)"
+color green "#.*$"
+
+
+syntax "spec" ".spec$"
+color brightwhite "[0-9]"
+color cyan "stub"
+color yellow "pascal|stdcall|varargs|cdecl"
+color brightyellow "\((\\.|[^\"])*\)"
+color brightgreen "\@"
+color green "#.*$"
+
+syntax "configurelog" "config.log$"
+color cyan "(\:.*$|\=.*$)"
+color yellow ""(\\.|[^\"])*""
+color magenta "[.0-9A-Z_a-z]*:"
+color yellow "[.A-Z_a-z]*:[0-9]*:"
+color cyan start="\/\*" end="\*\/"
+color brightgreen "[[:space:]]yes"
+color brightred "[[:space:]]no"
+color green "#.*$"
+color brightgreen "\|.*$"
+
+syntax "texi" ".texi$"
+color brightcyan "\((\\.|[^\"])*\)"
+color yellow "(\{|\})"
+color brightblue "\$"
+color brightblack "\[(\\.|[^\"])*\]"
+color brightyellow "@[.a-zA-Z_]*"
+color cyan "^[[:space:]]*[.a-zA-Z_]*\:"
+color brightred "@c[.a-zA-Z_]*"
+color green "#.*$"
+
+
+syntax "desktop" "\.desktop$"
+color brightblue "\[(\\.|[^\"])*\]"
+color yellow "=.*$"
+color brightgreen "\="
+
+syntax "lua" "\.lua$"
+color brightwhite "[0-9]"
+color cyan "local.*$"
+color brightblack "\{|\}"
+color brightgreen "\="
+color red "\[|\]"
+color yellow "\"(\\.|[^\"])*\""
+color green "\-\-.*$"
+
+syntax "m3u" "\.m3u$"
+color green "#.*$"
+color brightgreen "http.*$"
+color yellow "\/"
+color cyan "[.0-9a-zA-Z_-]*\.mp3"
+
+syntax "bat" "\.bat$"
+color yellow "%(\\.|[^\"])*%"
+color brightyellow "set[[:space:]]"
+color brightgreen "\="
+color green "REM.*$"
+
+syntax "authors" "AUTHORS$"
+color brightgreen "((T|t)ranslators|(D|d)ocumenters|(A|a)uthors|(C|c)ontributors)"
+color brightyellow "<(\\.|[^\"])*>"
+color yellow "\@"
+color cyan "\*.*$"
+color brightcyan "\:"
+color brightblue "\((\\.|[^\"])*\)"
+color green "#.*$"
+
+syntax "kconfig" "Kconfig$" "Kconfig.(cpu|debug)$"
+color brightyellow "(<(\\.|[^\"])*>|\!)"
+color brightyellow "\((\\.|[^\"])*\)"
+color blue "source.*$"
+color brightgreen "(ult[[:space:]]y|\"(\\.|[^\"])*\")"
+color brightblue "ult[[:space:]]m"
+color brightred "ult[[:space:]]n"
+color magenta "default"
+color cyan "config.*$"
+color yellow "config|menu|(main|end)menu|choice|endchoice"
+color brightcyan "(^[[:space:]](bool|def_bool|tristate|depends[[:space:]]on|select|prompt|range|help|string|int|hex))"
+color brightmagenta "(\||\&)"
+color brightred "\"off\""
+color green "#.*$"
+
+syntax "la_file" "\.la$"
+icolor yellow "^[[:space:]]*[.0-9A-Z_]*="
+color white "\="
+color brightgreen "yes"
+color brightred "no"
+color brightwhite "[0-9]"
+color brightyellow  "'(\\.|[^\"])*'"
+color green "#.*$"
+
+syntax "contents" "CONTENTS$"
+color brightwhite "[[:space:]][a-z0-9].*$"
+color green "dir[[:space:]].*$"
+icolor cyan "^[[:space:]]*[.0-9A-Z_]*"
+color brightgreen "/usr/shar(e|e/(doc|e/man))/|/include/|/lib/|/usr/"
+color yellow "/etc/"
+color brightblue "/usr/bin(/|)|/usr/sbin|/bin|/sbin|/etc/init.d/"
+color brightyellow "/etc/conf.d/"
+color red "/va(r/|r/cache|r/lib/)"
+color brightred "/var/cache/"

File .nano/paludis.nanorc

+## Here is an example for Paludis control files
+##
+
+syntax "bashrc" "bashrc$"
+## Base text:
+color brightblack "^.+$"
+## sh syntax:
+color brightwhite "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
+icolor magenta "(.+\)|\[.+\])"
+color brightwhite "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|==|&|\|)"
+color brightwhite "-[Ldefgruwx]\>"
+color brightwhite "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
+color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
+icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
+color ,green "[[:space:]]+$"
+color green "\".*\""
+color brightwhite "case[[:space:]]\".+\""
+color brightgreen "\$\{.+\}"
+## Package name:
+color brightmagenta "\$\{PN\}"
+## Keywords:
+color brightwhite "(CHOST|CFLAGS|CXXFLAGS|MAKEOPTS)="
+color white "(SKIP_FUNCTIONS|PATH|CCACHE_SIZE|CCACHE_DIR|PALUDIS_USE_SAFE_RESUME)="
+## Comments:
+color brightred "#.*$"
+color yellow "^#.*$"
+color brightyellow "^##[[:space:]].*$"
+
+syntax "license-use" "(licenses|use)\.conf$"
+## Base text:
+color brightblack "^.+$"
+## Package name:
+color brightblue "/.*[[:space:]]"
+## Categories:
+color cyan "^.*/"
+## Version number:
+color white "-[[:digit:]]+(\.|[[:digit:]]|-.)*([[:space:]]|::)"
+## Repository name:
+color magenta "::.*[[:space:]]"
+## licenses and use:
+color green "[[:space:]][^[:space:]]*"
+color red "[[:space:]]-[^[:space:]]*"
+## Masking regulators:
+color brightred "^(<|<=|=|>=|>)*"
+color brightwhite "^(<|<=|=|>=|>)"
+## Additional variables:
+color brightgreen "(ALSA_CARDS|INPUT_DEVICES|LANGUAGE|LINGUAS|VIDEO_CARDS|PALUDIS_HOOKS):?"
+## Mark lines with spaces at end of it:
+color brightred ".*[[:space:]]$"
+## Comments:
+color brightred "#.*$"
+color yellow "^#.*$"
+color brightyellow "^##[[:space:]].*$"
+
+syntax "keywords" "keywords\.conf$"
+## Base text:
+color brightblack "^.+$"
+## Package name:
+color brightblue "/.*[[:space:]]"
+## Categories:
+color cyan "^.*/"
+## Version number:
+color white "-[[:digit:]]+(\.|[[:digit:]]|-.)*([[:space:]]|::)"
+## Repository name:
+color magenta "::.*[[:space:]]"
+## Accepted arches:
+color green "[[:space:]][~]?(alpha|amd64|arm|hppa|ia64|mips|ppc|ppc64|s390|sh|sparc|x86|x86-fbsd|\*)"
+color red "-\*"
+## Masking regulators:
+color brightred "^(<|<=|=|>=|>)*"
+color brightwhite "^(<|<=|=|>=|>)"
+## Mark lines with spaces at end of it:
+color brightred ".*[[:space:]]$"
+## Comments:
+color brightred "#.*$"
+color yellow "^#.*$"
+color brightyellow "^##[[:space:]].*$"
+
+syntax "mask-unmask" "package_(mask|unmask)\.conf$"
+## Base text:
+color brightblack "^.+$"
+## Package name:
+color brightblue "/.*"
+## Categories:
+color cyan "^.*/"
+## Version number:
+color white "-[[:digit:]]+(\.|[[:digit:]]|-.)*($|::)"
+## Repository name:
+color magenta "::.*$"
+## Masking regulators:
+color brightred "^(<|<=|=|>=|>)*"
+color brightwhite "^(<|<=|=|>=|>)"
+## Mark lines with spaces at end of it:
+color brightred ".*[[:space:]]$"
+## Comments:
+color brightred "#.*$"
+color yellow "^#.*$"
+color brightyellow "^##[[:space:]].*$"
+
+syntax "mirrors" "mirrors\.conf$"
+## Base text:
+color red "^.+$"
+## Serwer name:
+color brightwhite "^.*[[:space:]]"
+## Adress
+color brightblue "[[:space:]](ftp://|http://).*$"
+## Mark lines with spaces at end of it:
+color brightred ".*[[:space:]]$"
+## Comments:
+color brightred "#.*$"
+color yellow "^#.*$"
+color brightyellow "^##[[:space:]].*$"
+
+syntax "repositories" "repo"
+## Base text:
+color brightblack "^.+$"
+## Parameters:
+color magenta "=[[:space:]].+$"
+color brightwhite "^.*[[:space:]]=[[:space:]]"
+## Path:
+color green "/.+"
+color brightgreen "\$\{.*\}"
+## Adress:
+color brightblue "(svn\+https|svn\+http|http|rsync)://.*$"
+## Mark lines with spaces at end of it:
+color brightred ".*[[:space:]]$"
+## Comments:
+color brightred "#.*$"
+color yellow "^#.*$"
+color brightyellow "^##[[:space:]].*$"

File .nano/passwd.nanorc

+###  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]"
+color magenta "\:\/.*\:"
+

File .nano/patch.nanorc

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

File .nano/perl.nanorc

+## 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 white "[sm]/.*/"
+color white start="(^use| = new)" end=";"
+color green "#.*"
+color yellow start="<< 'STOP'" end="STOP"

File .nano/php.nanorc

+## Here is an example for PHP
+##
+syntax "php" "\.php[2345s~]?$"
+
+## php markings
+color brightgreen "(<\?(php)?|\?>)"
+
+## functions
+color white "\<[a-z_]*\("
+
+## types
+color green "\<(var|float|global|double|bool|char|int|enum|const)\>"
+
+## structure
+color brightyellow "\<(class|new|private|public|function|for|foreach|if|while|do|else|elseif|case|default|switch)\>"
+
+## control flow
+color magenta "\<(goto|continue|break|return)\>"
+
+## strings
+color brightyellow "<[^=       ]*>" ""(\.|[^"])*""
+
+## comments
+color brightblue "//.*"
+color brightblue start="/\*" end="\*/"
+#color blue start="<" end=">"
+#color red "&[^;[[:space:]]]*;"
+
+## Trailing whitespace
+color ,green "[[:space:]]+$"

File .nano/php2.nanorc

+
+# 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 brightblue "(<\?(php)?|\?>)"
+color white start="\?>" end="<\?(php)?" 

File .nano/po.nanorc

+## *.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  "\"\""
+color brightyellow  "\"\\n\""
+color brightmagenta "\<(Project\-Id\-Version|Report\-Msgid\-Bugs\-To|Last\-Translator|Language\-Team|charset)\>"
+color cyan "\<(POT\-Creation\-Date|PO\-Revision\-Date|MIME\-Version|Content\-Type|Content\-Transfer\-Encoding)\>"
+color yellow "\<(Copyright|(C))\>"
+color yellow "[0-9]"
+color brightyellow "\<(UTF|ISO|Windows|Mac|IBM)\>\-[0-9]"
+color red "#~.*$"
+
+

File .nano/postgresql.nanorc

+syntax "postgreSQL" "\.sql$"
+icolor red "\<(A(LL|NALY(S|Z)E|ND|NY|RRAY|S|SC|SYMMETRIC|UTHORIZATION)|B(ETWEEN|INARY|OTH|Y)|C(ASE|AST|HECK|OLLATE|OLUMN|ONSTRAINT|REATE|ROSS|URRENT_(DATE|ROLE|TIME|TIMESTAMP|USER))|D(EFAULT|EFERRABLE|ESC|ISTINCT|O|ROP)|E(LSE|ND|XCEPT)|F(ALSE|OR(EIGN)?|REEZE|ROM|ULL)|GRANT|GROUP|HAVING|I(LIKE|N(ITIALLY|NER|TERSECT|TO)?|S|SNULL)|JOIN|L(EADING|EFT|IKE|IMIT|OCALTIME(STAMP)?)|N(ATURAL|EW|OT(NULL)?|ULL)|O(FF(SET)?|LD|N|NLY|R|RDER|UTER|VERLAPS)|PLACING|PRIMARY|REFERENCES|RIGHT|S(ELECT|ESSION_USER|IMILAR|OME|YMMETRIC)|T(ABLE|HEN|O|RAILING|RUE)|UNION|UNIQUE|USER|USING|VE(IW|RBOSE)|WHEN|WHERE|)\>"
+color magenta "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
+color yellow "'[^']*'"
+color green "--.*$"

File .nano/pov.nanorc

+## 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="\*/"

File .nano/privoxy.nanorc

+syntax "privoxycfg" "(\.|/|)privoxy/config$"
+color brightwhite "[0-9]"
+color cyan "^[[:space:]]*[.a-z0-9-]*"
+color brightgreen "\ 1"
+color brightwhite "1[0-9]"
+color brightblue "\ \/.*$"
+color brightred "\ 0"
+color magenta "http:.*$"
+
+# important config settings without which it may not work the way You want it to :)
+color yellow "(listen-address|forward|accept-intercepted-requests)"
+
+# comments 
+color green "#.*$"
+
+#######################################
+syntax "privoxyaction" "(\.|/|).action$"
+
+color brightyellow start="\{" end="\}"
+color cyan "(\+|\-)(add-header|block|client-header-(filter|tagger)|content-type-overwrite|crunch-(client-header|if-none-match|server-header))"
+color cyan "(\+|\-)(deanimate-gifs|downgrade-http-version|fast-redirects|filter|force-text-mode|forward-override|handle-as-empty-document)"
+color cyan "(\+|\-)(hide-(accept-language|content-disposition|forwarded-for-headers|from-header|if-modified-since|refe(r|rr)er|user-agent))"
+color cyan "(\+|\-)(handle-as-image|inspect-jpegs|limit-connect|overwrite-last-modified|prevent-compression|server-header-(filter|tagger))"
+color cyan "(\+|\-)(session-cookies-only|set-image-blocker|crunch-(outgoing|incoming)-cookies|kill-popups|redirect|send(-|-vanilla-)wafer)"
+
+color yellow "\{\{(settings|alias)\}\}"
+# comments 
+color green "#.*$"
+color brightwhite "##.*$"
+color brightgreen "#-.*$"
+
+#######################################
+#syntax "privoxytemplate" "/etc/privoxy/templates/(\.|/|)"
+#color white "^.+$"
+#color green  start="<" end=">"
+#color cyan   "<[^> ]+"
+#color cyan   ">"
+#color yellow start="<!DOCTYPE" end="[/]?>"
+#color yellow start="<!--" end="-->"
+#color red    "&[^;]*;"
+

File .nano/profile.nanorc

+### 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 "#.*$"
+

File .nano/python.nanorc

+## 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 "["][^"]*[^\\]["]" "["]{3}.*[^\\]["]{3}"
+color brightgreen start=""""[^"]" end=""""" start="'''[^']" end="'''"
+color brightred "#.*$"

File .nano/rcfiles-new.nanorc

+## this .rc is not meant for rcs in etc but those used in apps like wine
+syntax "rc" "\.rc$" 
+color cyan start="\{" end="\}"
+color brightgreen start="<" end=">"
+color brightyellow "(\"(\\.|[^\"])*\"|[0-9])"
+color green start="\/\*" end="\*\/"
+color yellow "(#(define|include)|LANGUAGE|FONT)"
+
+### all *rc files  ( e.g. .bashrc, inputrc, xtermcontrol .... )
+#syntax "rcfiles" "(\.|/|)rc$" "(\.|/|)control$"
+syntax "rcfiles" "((.ba|ba|c|.c)sh|input|xinit|eix|(.w|w)minet)|gtk|rc$"
+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 "#.*$"
+
+## rc...
+syntax "rc2" "(wop|wget)rc$"
+color cyan "\=.*$"
+color brightgreen start="<" end=">"
+color brightyellow "[0-9]"
+icolor yellow "^[[:space:]]*[.0-9A-Z_]*[[:space:]]\="
+color brightred "[[:space:]]off"
+color brightgreen "[[:space:]]on"
+color green "#.*$"
+

File .nano/rcfiles.nanorc

+### 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 "#.*$"

File .nano/rsync.nanorc

+syntax "rsync" "rsyncd.conf$"
+color cyan "(hosts|(u|g)id|pid\ file|use\ chroot|read\ only|address|max\ connections|motd\ file)"
+color cyan "(log\ format|syslog\ facility|timeout)"
+color yellow "(path|comment|exclude)"
+color brightyellow  start="\[" end="\]"
+color green "#.*$"
+

File .nano/ruby.nanorc

+## Here is an example for Ruby.
+##
+syntax "ruby" "\.rb$"
+## Asciibetical list of reserved words
+color yellow "\<(BEGIN|END|alias|and|begin|break|case|class|def|defined\?|do|else|elsif|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\>"
+## Constants
+color brightblue "(\$|@|@@)?\<[A-Z]+[0-9A-Z_a-z]*"
+## Ruby "symbols"
+icolor magenta "([ 	]|^):[0-9A-Z_]+\>"
+## Some unique things we want to stand out
+color brightyellow "\<(__FILE__|__LINE__)\>"
+## Regular expressions
+color brightmagenta "/([^/]|(\\/))*/[iomx]*" "%r\{([^}]|(\\}))*\}[iomx]*"
+## Shell command expansion is in `backticks` or like %x{this}.  These are
+## "double-quotish" (to use a perlism).
+color brightblue "`[^`]*`" "%x\{[^}]*\}"
+## Strings, double-quoted
+color green ""([^"]|(\\"))*"" "%[QW]?\{[^}]*\}" "%[QW]?\([^)]*\)" "%[QW]?<[^>]*>" "%[QW]?\[[^]]*\]" "%[QW]?\$[^$]*\$" "%[QW]?\^[^^]*\^" "%[QW]?![^!]*!"
+## Expression substitution.  These go inside double-quoted strings,
+## "like #{this}".
+color brightgreen "#\{[^}]*\}"
+## Strings, single-quoted
+color green "'([^']|(\\'))*'" "%[qw]\{[^}]*\}" "%[qw]\([^)]*\)" "%[qw]<[^>]*>" "%[qw]\[[^]]*\]" "%[qw]\$[^$]*\$" "%[qw]\^[^^]*\^" "%[qw]![^!]*!"
+## Comments
+color cyan "#[^{].*$" "#$"
+color brightcyan "##[^{].*$" "##$"
+## "Here" docs
+color green start="<<-?'?EOT'?" end="^EOT"
+## Some common markers
+color brightcyan "(XXX|TODO|FIXME|\?\?\?)"

File .nano/sh.nanorc

+## Here is an example for Bourne shell scripts.
+##
+syntax "sh" "\.sh$"
+icolor brightgreen "^[0-9A-Z_]+\(\)"
+color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
+color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
+color green "-[Ldefgruwx]\>"
+color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
+color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
+icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
+color cyan "(^|[[:space:]])#.*$"
+color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
+color ,green "[[:space:]]+$"

File .nano/shlike.nanorc

+## Here is an example for Bourne shell scripts.
+##
+syntax "shlike" "\.(m4|sub|guess)$" "missing$" "configure\.ac$" "config\.(charset|rpath|status)$" "configure$"
+icolor brightgreen "^[0-9A-Z_]+\(\)"
+color green "\<(case|do|done|elif|else|esac|exit|fi|for|function|if|in|local|read|return|select|shift|then|time|until|while)\>"
+color green "(\{|\}|\(|\)|\;|\]|\[|`|\\|\$|<|>|!|=|&|\|)"
+color green "-[Ldefgruwx]\>"
+color green "-(eq|ne|gt|lt|ge|le|s|n|z)\>"
+color brightblue "\<(cat|cd|chmod|chown|cp|echo|env|export|grep|install|let|ln|make|mkdir|mv|rm|sed|set|tar|touch|umask|unset)\>"
+icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
+color cyan "(^|[[:space:]])#.*$"
+color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"

File .nano/softcam.nanorc

+syntax "softcam" "(S|s)oft(c|C)am.(K|k)ey$"
+color yellow "(I|S|V|N|W|F)\ [0-9a-zA-Z]*\ 0[0-9A-F]"
+color brightyellow "(I|S|V|N|W|F|B)\ [0-9a-zA-Z]*\ (M|X|E|N)(1|2)"
+color brightgreen "B\ [0-9]*\:[0-9]*|:(H|V|L)"
+color magenta "(05(0|1)(1|3|5))"
+color red "(4(0|1)0(1|2))"
+color brightred "4(8|9)01"
+color brightblue "(2111|7101|a(4|5)01)"
+color cyan "\;.*$"
+color green "#.*$"

File .nano/sources_list.nanorc

+## derived form http://milianw.de/code-snippets
+
+## syntax highlighting for /etc/apt/sources.list
+syntax "apt/sources.list" "sources\.list(\.old|~)?$"
+# component
+color brightmagenta "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[a-zA-Z0-9\._-\(\) ]+\]/) [^ ]+ .+$"
+# distribution
+color brightred "^deb(-src)? ((http|file|ftp):/[^ ]+|cdrom:\[[^\]]+\]/|cdrom:\[[a-zA-Z0-9\._-\(\) ]+\]/) [^ ]+"
+# URI
+color brightgreen "(http|file|ftp):/[^ ]+"
+# cdroms
+# [^\]] does not work…
+color brightgreen "cdrom:\[[a-zA-Z0-9\._-\(\) ]+\]/"
+# deb / deb-src
+color cyan "^deb"
+color brightblue "^deb-src"
+# comments
+color brightyellow "#.*"

File .nano/tab.nanorc

+### all *tab files ( e.g. fstab, crontab, inittab )
+syntax "fstab" "(\.|/|)tab$"
+color magenta "\<(none)\>.*$" "\<(wait)\>" "\<(respawn)\>"
+color red "/dev/hd.*$" "\<(ctrlaltdel)\>" "\<(initdefault)\>"
+color blue "/dev/sr.*$" "/dev/cd.*$" "\/sbin.*$"
+color cyan "/dev/sd.*$"
+color brightcyan "^.*(nfs|smbfs).*$"
+color yellow "/dev/fd.*$"
+color red "root"
+color brightwhite "[0-9]"
+color green "#.*$"
+

File .nano/tcl.nanorc

+syntax "tcl" "\.tcl$"
+
+## Standard Tcl [info commands]
+color green "\<(after|append|array|auto_execok|auto_import|auto_load|auto_load_index|auto_qualify|binary|break|case|catch|cd|clock|close|concat|continue|encoding|eof|error|eval|exec|exit|expr|fblocked|fconfigure|fcopy|file|fileevent|flush|for|foreach|format|gets|glob|global|history|if|incr|info|interp|join|lappend|lindex|linsert|list|llength|load|lrange|lreplace|lsearch|lset|lsort|namespace|open|package|pid|puts|pwd|read|regexp|regsub|rename|return|scan|seek|set|socket|source|split|string|subst|switch|tclLog|tell|time|trace|unknown|unset|update|uplevel|upvar|variable|vwait|while)\>"
+## Basic Tcl sub commands.
+color green "\<(array anymore|array donesearch|array exists|array get|array names|array nextelement|array set|array size|array startsearch|array statistics|array unset)\>"
+color green "\<(string bytelength|string compare|string equal|string first|string index|string is|string last|string length|string map|string match|string range|string repeat|string replace|string to|string tolower|string totitle|string toupper|string trim|string trimleft|string trimright|string will|string wordend|string wordstart)\>"
+## Extended TclX [info commands]
+color green "\<(alarm|auto_load_pkg|bsearch|catclose|catgets|catopen|ccollate|cconcat|cequal|chgrp|chmod|chown|chroot|cindex|clength|cmdtrace|commandloop|crange|csubstr|ctoken|ctype|dup|echo|execl|fcntl|flock|fork|fstat|ftruncate|funlock|host_info|id|infox|keyldel|keylget|keylkeys|keylset|kill|lassign|lcontain|lempty|lgets|link|lmatch|loadlibindex|loop|lvarcat|lvarpop|lvarpush|max|min|nice|pipe|profile|random|readdir|replicate|scancontext|scanfile|scanmatch|select|server_accept|server_create|signal|sleep|sync|system|tclx_findinit|tclx_fork|tclx_load_tndxs|tclx_sleep|tclx_system|tclx_wait|times|translit|try_eval|umask|wait)\>"
+## Syntax.
+color brightblue "proc[[:space:]]" "(\{|\})"
+color green "(\(|\)|\;|`|\\|\$|<|>|!|=|&|\|)"
+color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
+icolor brightred "\$\{?[0-9A-Z_!@#$*?-]+\}?"
+color ,green "[[:space:]]+$"
+color ,magenta "^([[:space:]]+|)#.*"

File .nano/tex.nanorc

+## Here is a short example for TeX files.
+##
+syntax "tex" "\.tex$"
+icolor green "\\.|\\[A-Z]*"
+color magenta "[{}]"
+color blue "%.*"

File .nano/urls.nanorc

+##############################################################################
+#
+# Syntax highlighting for HTTP codes
+#
+# Author:  Josef 'Jupp' Schugt, jupp(a)rubyforge.org
+# License: GPL 2  or later
+#
+# Version: 2004-02-25
+#
+##############################################################################
+
+syntax "urls"
+color brightmagenta   "^.*$"
+color cyan      "^(1[0-9][0-9]|20[256]|30[45]).*$"
+color green      "^20[03].*$"
+color brightyellow   "^(201|30[0-37]).*$"
+color brightred      "^(204|[45][0-9][0-9]|666).*$"
+

File .nano/vhost.nanorc

+## Apache httpd.conf highlighting
+##
+#how to add sites-enabled files?  "default" is too generic to keep in here I think
+syntax "vhost" "(\.|/|)vhost\.conf"
+color brightwhite "(ServerRoot|(Lock|Pid)File|Timeout|(Max)?KeepAlive(Requests|Timeout)?)"
+color brightwhite "(User|Group|LogFormat|ErrorLog|Include|(Script)?Alias)"
+color brightwhite "(ErrorDocument|AccessFileName|UseCanonicalName|TypesConfig|DefaultType)"
+color brightwhite "(HostnameLookups|IndexOptions|(Readme|Header)Name|LanguagePriority)"
+color brightwhite "(AddIcon(ByEncoding|ByType)?|DefaultIcon|IndexIgnore|BrowserMatch)"
+color brightwhite "(Add(Encoding|Language|(Default)?Charset|Type|Handler)|DirectoryIndex)"
+color brightwhite "(DocumentRoot|Server(Admin|Signature)|LogLevel|CustomLog)"
+color brightwhite "((Force)?LanguagePriority|NameVirtualHost)"
+color brightyellow "(SetHandler|Order|Deny|Allow|SetOutputFilter)"
+color yellow "(AllowOverride|FileInfo|AuthConfig|Limit)"
+color yellow "([^A-Z0-9a-z]Options|Indexes|(\+|\-)?SymLinksIfOwnerMatch)"
+color yellow "(Includes(NoExec)?|(\+|\-)?MultiViews)"
+color yellow "(None|allow,deny|deny,allow|(allow)? from (all)?|Prefer|Fallback)"
+color yellow "(Add(Handler|OutputFilter)|NumServers|AcceptMutex)"
+color yellow "((Min|Max)Spare(Threads|Servers)|Start(Threads|Servers))"
+color yellow "(MaxClients|(Max)?ThreadsPerChild|MaxRequestsPerChild)"
+color yellow "(FancyIndexing|VersionSort|ExecCGI|FollowSymLinks)"
+color brightred "(On|Off)[[:space:]]*$"
+color brightred "[[:space:]]+(debug|info|notice|warn|error|crit|alert|emerg)[[:space:]]*$"