diff -wur nano-cvs/doc/nanorc.sample nano-new/doc/nanorc.sample --- nano-cvs/doc/nanorc.sample 2006-05-23 22:39:01.000000000 +0200 +++ nano-new/doc/nanorc.sample 2006-05-24 18:48:53.000000000 +0200 @@ -65,8 +65,8 @@ ## Use the blank line below the titlebar as extra editing space. # set morespace -## Enable mouse support, so that mouse clicks can be used to set the -## mark and run shortcuts. +## Enable mouse support, so that mouse clicks can be used to place the +## cursor, set the mark, and execute shortcuts. # set mouse ## Allow multiple file buffers (inserting a file will put it into a @@ -92,7 +92,7 @@ ## Set operating directory. nano will not read or write files outside ## this directory and its subdirectories. Also, the current directory -## is changed to here, so files are inserted from this dir. A blank +## is changed to here, so any files are inserted from this dir. A blank ## string means the operating directory feature is turned off. ## # set operatingdir "" @@ -167,6 +167,7 @@ ## characters as part of a word. # set wordbounds + ## Color setup ## ## Format: @@ -185,9 +186,9 @@ ## "color" will do case sensitive matches, while "icolor" will do case ## insensitive matches. ## -## Legal colors: white, black, red, blue, green, yellow, magenta, cyan. -## You may use the prefix "bright" to mean a stronger color highlight -## for the foreground. +## Valid colors: white, black, red, blue, green, yellow, magenta, cyan. +## For foreground colors you may use the prefix "bright" to get a +## stronger highlight. ## ## To use multi-line regexes, use the start="regex" end="regex" ## [start="regex" end="regex"...] format. @@ -203,6 +204,9 @@ ## include "syntax file" ## ## All regexes should be extended regular expressions. + + +## Here is an example for C. ## # syntax "c-file" "\.(c|C|cc|cpp|cxx|h|H|hh|hpp|hxx)$" # color brightred "\<[A-Z_][0-9A-Z_]+\>" @@ -215,35 +219,36 @@ # color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)" # color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'" ## -## GCC builtins. -## +## 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. +## Comment highlighting # color brightblue "//.*" # color brightblue start="/\*" end="\*/" ## Here is a short example for HTML. +## # syntax "HTML" "\.html$" # color blue start="<" end=">" # color red "&[^;[[:space:]]]*;" ## Here is a short example for TeX files. +## # syntax "TeX" "\.tex$" # icolor green "\\.|\\[A-Z]*" # color magenta "[{}]" # color blue "%.*" ## Here is an example for quoted emails (under e.g. mutt). +## # syntax "mutt" # color green "^>.*" @@ -256,7 +261,7 @@ # color brightmagenta "\\." ## Highlight the argument of \f or \s in the same color # color brightmagenta "\\f." "\\f\(.." "\\s(\+|\-)?[0-9]" -## \n +## Newlines # color cyan "(\\|\\\\)n(.|\(..)" # color cyan start="(\\|\\\\)n\[" end="]" ## Requests @@ -359,15 +364,15 @@ ## Here is an example for your .nanorc. ## # syntax "nanorc" "(\.|/|)nanorc$" -## highlight possible errors and parameters +## Possible errors and parameters # icolor brightwhite "^[[:space:]]*((un)?set|include|syntax|i?color).*$" -## set, unset, include, syntax, and color +## Keywords # icolor cyan "^[[: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 +## 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 +## Strings # icolor white ""(\\.|[^"])*"" -## comments +## Comments # icolor blue "^[[:space:]]*#.*$"