- nanorc.sample: - Added some examples for groff and the nanorc courtesy of Robert D. Goulding. Added double hash marks to comment lines, so people who uncomment the beginning of every line won't get syntax errors

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1343 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Chris Allegretta 2003-01-11 01:14:07 +00:00
parent 54abd94d48
commit ed4fb2cf0f
2 changed files with 106 additions and 56 deletions

View File

@ -126,6 +126,10 @@ Changes
- Added comment to explain the non-escaping of quotes in - Added comment to explain the non-escaping of quotes in
color regexes, based on info provided by David Benbennick. color regexes, based on info provided by David Benbennick.
(DLR) (DLR)
- Added some examples for groff and the nanorc courtesy of
Robert D. Goulding.
- Added double hash marks to comment lines, so people who
uncomment the beginning of every line won't get syntax errors.
- faq.html: - faq.html:
- Miscellaneous fixes and updates for typos and broken links. - Miscellaneous fixes and updates for typos and broken links.
It is now fully compliant with HTML 4.01 Transitional. (DLR) It is now fully compliant with HTML 4.01 Transitional. (DLR)

View File

@ -1,95 +1,95 @@
# Sample initialization file for GNU nano ## Sample initialization file for GNU nano
# Please note that you must have configured nano with ## Please note that you must have configured nano with
# --enable-nanorc for this file to be read! ## --enable-nanorc for this file to be read!
# ##
# To make sure a value is not enabled, use "unset <option>" ## To make sure a value is not enabled, use "unset <option>"
# Use auto-indentation ## Use auto-indentation
# set autoindent # set autoindent
# Backup files to filename~ ## Backup files to filename~
# set backup # set backup
# Constantly update the cursor position ## Constantly update the cursor position
# set const # set const
# Use cut to end of line with ^K by default ## Use cut to end of line with ^K by default
# set cut # set cut
# Use this value instead of the default ## Use this value instead of the default
# An out-of-range negative value can make nano die complaining that the ## An out-of-range negative value can make nano die complaining that the
# screen is too small ## screen is too small
# set fill -8 ## set fill -8
# Use alternate keypad routines ## Use alternate keypad routines
# set keypad # set keypad
# Allow multiple file buffers (using ^R inserts into separate buffer) ## Allow multiple file buffers (using ^R inserts into separate buffer)
# You must have configured with --enable-multibuffer or --enable-extra ## You must have configured with --enable-multibuffer or --enable-extra
# for this to work ## for this to work
# ##
# set multibuffer ## set multibuffer
# Don't convert files from DOS/Mac format ## Don't convert files from DOS/Mac format
# set noconvert # set noconvert
# Don't follow symlinks when writing files ## Don't follow symlinks when writing files
# set nofollow # set nofollow
# Don't display the help lists at the bottom of the screen ## Don't display the help lists at the bottom of the screen
# set nohelp # set nohelp
# Don't wrap text at all ## Don't wrap text at all
# set nowrap # set nowrap
# Set operating directory (chroot of sorts) ## Set operating directory (chroot of sorts)
# set operatingdir "~" # set operatingdir "~"
# Use Pico Compatibility mode for the shortcut lists and search text ## Preserve the XON and XOFF keys (^Q and ^S)
# set pico # set preserve
# The email-quote string. This is a "regular expression" if your ## The email-quote string. This is a "regular expression" if your
# system supports them, otherwise a literal string. Default ## system supports them, otherwise a literal string. Default
# set quotestr "^([ \t]*[|>:}#])+" if you have regexps, otherwise # set quotestr "^([ \t]*[|>:}#])+" if you have regexps, otherwise
# set quotestr "> ". # set quotestr "> ".
# You can get old nano quoted-justify behavior via: ## You can get old nano quoted-justify behavior via:
# set quotestr "(> )+" # set quotestr "(> )+"
# Do regular expression searches by default ## Do regular expression searches by default
# set regexp # set regexp
# Use smooth scrolling as the default ## Use smooth scrolling as the default
# set smooth # set smooth
# Use this spelling checker instead of the default one ## Use this spelling checker instead of the default one
# set speller aspell # set speller aspell
# Allow nano to be suspended with ^Z ## Allow nano to be suspended with ^Z
# set suspend # set suspend
# Use this tab size instead of the default; it must be greater than 0 ## Use this tab size instead of the default; it must be greater than 0
# set tabsize 4 # set tabsize 4
# Save automatically on exit, don't prompt ## Save automatically on exit, don't prompt
# set tempfile # set tempfile
# Disallow file modification, why would you want this in an rc file? ;) ## Disallow file modification, why would you want this in an rc file? ;)
# set view # set view
# Color setup ## Color setup
# Format: ## Format:
# syntax "short description" ["filename regex" ...] ## syntax "short description" ["filename regex" ...]
# color foreground,background "regex" ["regex"...] ## color foreground,background "regex" ["regex"...]
# ##
# Legal colors are: white, black, red, blue, green, yellow, purple, ## Legal colors are: white, black, red, blue, green, yellow, purple,
# cyan. You may use the prefix "bright" to mean a stronger color ## cyan. You may use the prefix "bright" to mean a stronger color
# highlight. ## highlight.
# ##
# To use multi-line regexes use the start="regex" end="regex" format. ## To use multi-line regexes use the start="regex" end="regex" format.
# ##
# If your system supports transparency, not specifying a background ## If your system supports transparency, not specifying a background
# color will use a transparent color. If you don't want this, be sure ## color will use a transparent color. If you don't want this, be sure
# to set the background color to black or white. ## to set the background color to black or white.
# syntax "c-file" ".*\.c$" ".*\.h$" # syntax "c-file" ".*\.c$" ".*\.h$"
# color red "\<[A-Z_]{2,}\>" # color red "\<[A-Z_]{2,}\>"
@ -99,17 +99,22 @@
# color brightcyan "#define" "#include" "#ifn*def" "#endif" # color brightcyan "#define" "#include" "#ifn*def" "#endif"
# color brightcyan "#elif" "#else" "#if" # color brightcyan "#elif" "#else" "#if"
# You will in general want your comments and strings to come last, ## You will in general want your comments and strings to come last,
# because syntax highlighting rules will be applied in the order they ## because syntax highlighting rules will be applied in the order they
# are read in. Note that quotes in regexes should not be escaped (use " ## are read in. Note that quotes in regexes should not be escaped (use "
# instead of \"). ## instead of \").
# color brightyellow "<[^= ]*>" ""(\\.|[^\"])*"" # color brightyellow "<[^= ]*>" ""(\\.|[^\"])*""
## This string is VERY resource intensive!!!
# color brightyellow start=""(\\.|[^\"])*\\( | )*$" end="^(\\.|[^\"])*"" # color brightyellow start=""(\\.|[^\"])*\\( | )*$" end="^(\\.|[^\"])*""
## And we want to have some nice comment highlighting too
# color brightblue "//.*" # color brightblue "//.*"
# color brightblue start="/\*" end="\*/" # color brightblue start="/\*" end="\*/"
# Here are some short examples for TeX files and HTML
## Here are some short examples for TeX files and HTML
# syntax "HTML" "\.html$" # syntax "HTML" "\.html$"
# #
# color blue start="<" end=">" # color blue start="<" end=">"
@ -121,8 +126,49 @@
# color magenta "\{" "\}" # color magenta "\{" "\}"
# color blue "%.*" # color blue "%.*"
# For this you will probably want to set your editor to "nano -Y mutt"
## For this you will probably want to set your editor to "nano -Y mutt"
# syntax "mutt" # syntax "mutt"
# color green "^>.*" # color green "^>.*"
## Here is are examples for groff and for your .nanorc
#syntax "groff" "\.ms$" "\.mm$" "\.me$" "\.tmac$" "^tmac." ".rof"
## The argument of .nr or .ds
#color cyan "^\.ds [^ ]*"
#color cyan "^\.nr [^ ]*"
## Single character escapes
#color brightmagenta "\\."
## Highlight the argument of \f or \s in the same colour
#color brightmagenta "\\f."
#color brightmagenta "\\f\(.."
#color brightmagenta "\\s(\+|\-)?[0-9]"
## \n
#color cyan "(\\|\\\\)n."
#color cyan "(\\|\\\\)n\(.."
#color cyan start="(\\|\\\\)n\[" end="]"
## Requests
#color brightgreen "^\. *[^ ]*"
## Comments
#color yellow "^\.\\\".*$"
## Strings
#color green "(\\|\\\\)\*."
#color green "(\\|\\\\)\*\(.."
#color green start="(\\|\\\\)\*\[" end="]"
## Characters
#color brightred "\\\(.."
#color brightred start="\\\[" end="]"
## Macro arguments
#color brightcyan "\\\\\$[1-9]"
#syntax "nanorc" "[\.]*nanorc$"
#color white "^ *(set|unset).*$"
#color cyan "^ *(set|unset) (autoindent|backup|const|cut|fill|keypad|multibuffer|noconvert|nofollow|nohelp|nowrap|operatingdir|preserve|quotestr|regexp|smooth|speller|suspend|tabsize|tempfile|view)"
#color brightwhite "^ *syntax [^ ]*"
#color brightblue "^ *set\>" "^ *unset\>" "^ *syntax\>"
#color white "^ *color\>.*"
#color yellow "^ *color [^ ]*"
#color magenta "^ *color\>"
#color green "^#.*$"