docs: in the sample nanorc file, refer instead of duplicating

Instead of duplicating information, just refer to 'man nanorc'.

Also reshuffle a paragraph, and add a suggestion to just select
the syntax files that will actually get used.
master
Benno Schulenberg 2020-04-09 10:24:19 +02:00
parent a0119b83ca
commit 66e64dd2d2
1 changed files with 13 additions and 33 deletions

View File

@ -1,12 +1,12 @@
## Sample initialization file for GNU nano. ## Sample initialization file for GNU nano.
## ##
## Characters that are special in a shell should not be escaped here.
## Inside string parameters, quotes should not be escaped -- the last
## double quote on the line will be seen as the closing quote.
##
## For the options that take parameters, the default value is shown. ## For the options that take parameters, the default value is shown.
## Other options are unset by default. To make sure that an option ## Other options are unset by default. To make sure that an option
## is disabled, you can use "unset <option>". ## is disabled, you can use "unset <option>".
##
## Characters that are special in a shell should not be escaped here.
## Inside string parameters, quotes should not be escaped -- the last
## double quote on the line will be seen as the closing quote.
## Make the 'nextword' function (Ctrl+Right) stop at word ends ## Make the 'nextword' function (Ctrl+Right) stop at word ends
## instead of at beginnings. ## instead of at beginnings.
@ -210,37 +210,17 @@
# set functioncolor magenta # set functioncolor magenta
## Setup of syntax coloring. ## === Syntax coloring ===
## ## For all details, see 'man nanorc', section SYNTAX HIGHLIGHTING.
## syntax "name" ["filename regex" ...]
##
## color|icolor foreground,background "regex" ["regex"...]
## [...]
##
## 'color' will do case-sensitive matches, while 'icolor' will do
## case-insensitive matches.
##
## All color commands are applied in the order in which they are specified,
## meaning that later commands can recolor stuff that was colored earlier.
##
## Valid color names for foreground and background are: white, black, normal,
## red, blue, green, yellow, magenta, cyan. For foreground colors, you may
## use the prefix "bright" to get a stronger highlight.
##
## All regexes (regular expressions) are of the extended type (ERE).
##
## If the coloring rule should span multiple lines, use the following format:
##
## color fg,bg start="regex" end="regex"
##
## If you wish, you may put your syntax definitions in separate files.
## You can make use of such files as follows:
##
## include "/path/to/syntax_file.nanorc"
## To include all existing syntax definitions, you can do: ## To include all existing syntax definitions, you can do:
# include "@PKGDATADIR@/*.nanorc" # include "@PKGDATADIR@/*.nanorc"
## Or you can select just the ones you need. For example:
# include "@PKGDATADIR@/html.nanorc"
# include "@PKGDATADIR@/python.nanorc"
# include "@PKGDATADIR@/sh.nanorc"
## If <Tab> should always produce four spaces when editing a Python file, ## If <Tab> should always produce four spaces when editing a Python file,
## independent of the settings of 'tabsize' and 'tabstospaces': ## independent of the settings of 'tabsize' and 'tabstospaces':
@ -250,8 +230,8 @@
# extendsyntax makefile tabgives " " # extendsyntax makefile tabgives " "
## Key bindings. ## === Key bindings ===
## See nanorc(5) (section REBINDING KEYS) for more details on this. ## For all details, see 'man nanorc', section REBINDING KEYS.
## The <Ctrl+Delete> keystroke deletes the word to the right of the cursor. ## The <Ctrl+Delete> keystroke deletes the word to the right of the cursor.
## On some terminals the <Ctrl+Backspace> keystroke produces ^H, which is ## On some terminals the <Ctrl+Backspace> keystroke produces ^H, which is