scopatz / nanorc

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

Support whitespacedisplay #384

Closed LoganDark closed 12 months ago

LoganDark commented 2 years ago

I recently submitted a patch to Nano that will allow people to turn on whitespace display by default (via set whitespacedisplay, already toggleable by Meta+P but not yet settable via nanorc), and that means all of the nanorc files in this repository should (if applicable) include this rule at the bottom:

color brightblack "\s+"

(or "[[:space:]]+", if it makes any difference)

That way they look correct, like this:

image

My custom nanorc.nanorc for comparison ![image](https://user-images.githubusercontent.com/4723091/146697547-270693f8-bdd2-4dfd-9a12-6a99beacce4b.png)

Currently, without this rule, most (all?) of the nanorc files in this repository bleed colors into the surrounding whitespace like so:

image

LoganDark commented 2 years ago

Just a quick note, this is possible to fix by an end user by including an extendsyntax after every include:

image

but this gets tiring quickly.

LoganDark commented 12 months ago

Forgot to close this issue when they rejected my patch because they wouldn't personally use the setting.