[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More colors?

From: Benno Schulenberg
Subject: Re: More colors?
Date: Fri, 22 Nov 2019 20:32:03 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

Hello Sébastien,

Op 22-11-19 om 12:50 schreef Seb:
> When I program, I'd like the comments (starting with "#") to be in a slightly
> different color, such as cyan2, through the syntax coloring scheme. It is then
> that Nano's limitations on colors strike. A configuration directive such as
>     color cyan2 "([^\\]|^)#.*"
>     color "#fff" "([^\\]|^)#.*"
> produces an error.
> Is there a way around this that I did not find?

Currently nano knows just eight colors -- or sixteen when the terminal
supports bright.

> Or is there a plan to introduce more colors, by name or by hex code?

This request has been made a few times, even with patches included:

That latter patch was discussed a little:

The discussion was revived three years later:
(the thread continues in the next year)

Two weeks later Brand posts a first set of patches that add extra colors:
And three weeks later a second set:

But this gets so extensive and complicated that I finally reject it:

So... even though also I would like to be able to use a handful of
extra colors (mostly because the existing darkest ones are too dark
for comfort on a dark background, and the lightest ones too light on
a light background), I don't want all those complications.


Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]