Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Where can I find a complete list of supported colors used in syntax highlighting for the GNU Nano text editor? I've looked through the man pages, and it gave the syntax for defining syntax coloring, but didn't provide a color reference.

share|improve this question
up vote 1 down vote accepted

man nanorc(5):

color fgcolor,bgcolor regex

For the currently defined syntax, display all expressions matching the extended regular expression regex with foreground color fgcolor and background color bgcolor, at least one of which must be specified. Legal colors for foreground and background color are: white, black, red, blue, green, yellow, magenta, and cyan. You may use the prefix "bright" to force a stronger color highlight for the foreground. If your terminal supports transparency, not specifying a bgcolor tells nano to attempt to use a transparent background.

share|improve this answer
Thanks for the link, I compared this to the one I found, and it didn't include anything after the first sentence. (It did specify that it was a summary though) – John Jan 23 '13 at 22:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.