Commit 230bd0d1 authored by Benno Schulenberg's avatar Benno Schulenberg
Browse files

Adding an example of colouring nano's interface elements.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4888 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 24 additions and 15 deletions
+24 -15
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
actually going to use it, and close it afterward. actually going to use it, and close it afterward.
* doc/syntax/{perl.nanorc,xml.nanorc}: Improve two magic regexes. * doc/syntax/{perl.nanorc,xml.nanorc}: Improve two magic regexes.
* src/color.c (color_update): Stop seeking when a magic matched. * src/color.c (color_update): Stop seeking when a magic matched.
* doc/nanorc.sample.in: Add an example of colouring nano's interface
elements, and tweak some of the other descriptions.
2014-05-13 Benno Schulenberg <bensberg@justemail.net> 2014-05-13 Benno Schulenberg <bensberg@justemail.net>
* src/text.c (do_linter): Make an error message somewhat clearer. * src/text.c (do_linter): Make an error message somewhat clearer.
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
## Use auto-indentation. ## Use auto-indentation.
# set autoindent # set autoindent
## Backup files to filename~. ## Back up files to the current filename plus a tilde.
# set backup # set backup
## The directory to put unique backup files in. ## The directory to put unique backup files in.
...@@ -78,9 +78,8 @@ ...@@ -78,9 +78,8 @@
## Window System, and on the console when gpm is running. ## Window System, and on the console when gpm is running.
# set mouse # set mouse
## Allow multiple file buffers (inserting a file will put it into a ## Switch on multiple file buffers (inserting a file will put it into
## separate buffer). You must have configured with --enable-multibuffer ## a separate buffer).
## for this to work.
# set multibuffer # set multibuffer
## Don't convert files from DOS/Mac format. ## Don't convert files from DOS/Mac format.
...@@ -186,7 +185,15 @@ ...@@ -186,7 +185,15 @@
# set wordbounds # set wordbounds
## Color setup ## Paint the interface elements of nano.
## This is an example, by default there are no colors.
# set titlecolor brightwhite,blue
# set statuscolor brightwhite,green
# set keycolor green
# set functioncolor yellow
## Setup of syntax coloring.
## ##
## Format: ## Format:
## ##
...@@ -201,8 +208,8 @@ ...@@ -201,8 +208,8 @@
## or ## or
## icolor foreground,background "regex" ["regex"...] ## icolor foreground,background "regex" ["regex"...]
## ##
## "color" will do case sensitive matches, while "icolor" will do case ## "color" will do case-sensitive matches, while "icolor" will do
## insensitive matches. ## case-insensitive matches.
## ##
## Valid colors: white, black, red, blue, green, yellow, magenta, cyan. ## Valid colors: white, black, red, blue, green, yellow, magenta, cyan.
## For foreground colors, you may use the prefix "bright" to get a ## For foreground colors, you may use the prefix "bright" to get a
...@@ -215,9 +222,10 @@ ...@@ -215,9 +222,10 @@
## 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.
## ##
## If you wish, you may put your syntaxes in separate files. You can ## All regexes should be extended regular expressions.
## make use of such files (which can only include "syntax", "color", and ##
## "icolor" commands) as follows: ## 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" ## include "/path/to/syntax_file.nanorc"
## ##
...@@ -226,15 +234,14 @@ ...@@ -226,15 +234,14 @@
## name inside that file. These names are kept fairly short to make ## name inside that file. These names are kept fairly short to make
## them easier to remember and faster to type using nano's -Y option. ## them easier to remember and faster to type using nano's -Y option.
## ##
## All regexes should be extended regular expressions. ## To include all existing syntax definitions, you can do:
# include "@PKGDATADIR@/*.nanorc" # include "@PKGDATADIR@/*.nanorc"
## Key bindings ## Key bindings.
## Please see nanorc(5) for more details on this. ## See nanorc(5) for more details on this.
## ##
## Here are some samples to get you going. ## Here are a few samples to get you going.
## ##
# bind M-W nowrap main # bind M-W nowrap main
# bind M-A casesens search # bind M-A casesens search
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment