nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit fabc1e1219973d10f1983003d46e8ee9d8f8c368
parent 2fec40e2ec0c716bcd321063e51dfb95c2a2f855
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Fri, 25 Apr 2025 16:51:35 +0200

syntax: default: show hard spaces with a lightgrey background

Some keyboard layouts allow typing hard spaces (U+00A0),
which means that sometimes they can get typed by accident.
Colorize those spaces to make such accidents noticeable.

Inspired-by: Sébastien Desreux <seb@h-k.fr>

Diffstat:
Msyntax/default.nanorc | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/syntax/default.nanorc b/syntax/default.nanorc @@ -26,5 +26,8 @@ color brightgreen "^\[[^][]+\]$" # Comments. color cyan "^[[:blank:]]*#.*" +# Make hard (non-breaking) spaces noticeable. +color ,#444 " " + # Control codes. color orange "[[:cntrl:]]"