scopatz / nanorc

Improved Nano Syntax Highlighting Files
Other
3k stars 549 forks source link

Replace 'bright' Prefix with 'light' #347

Open iocouto opened 3 years ago

iocouto commented 3 years ago

The current official docs for nanorc syntax highlighting seem to indicate that the prefix light should be used, not bright, in color commands - i.e., 'lightblue' instead of 'brightblue'. There is no mention of a bright prefix.

iocouto commented 3 years ago

Further testing shows some issues with the current 'light/bright' syntax in nano - see picture below:

Screen Shot 2020-12-20 at 11 55 29 am

Things to note:

  1. neither the 'bright' nor the 'light' prefix changes the foreground colour at all (and this is possibly a bug in nano, as according to the docs the 'light' prefix should definitely change it)
  2. using the 'bright' prefix on foreground colour simply makes the text bold
  3. currently, both the 'light' and 'bright' prefixes DO change the background colour - but according to the manual, the 'light' prefix should be used.

The exception to this seems to be the colour 'black': indeed, 'lightblack' produces a different foreground colour, and seems to have no effect on background colour...

Screen Shot 2020-12-20 at 12 04 56 pm

This also explains Issue #346: any text that is 'brightblack' renders simply as plain black, and is indeed invisible on a black terminal, as we can see in the image above.