[Geany] whitespace highlight

Michal Kurgan michal.kurgan at xxxxx
Sun May 13 01:24:29 UTC 2007


Hello!
I have simple path for whitespace highlight. By default both whitespace
background and foreground are used. This produce problems with selection
highlight when combined with whitespaces and use whitespace background color
to override selection background.

To make selection consistent it should be possible to override only
whitespace background or foreground separately. This path make it possible,
by using similar thing as selection style. It uses both bold and italic
variables instead of only bold. (this is non wrapped output from diff -u)

--- highlighting.c.orig 2007-05-12 19:10:30.000000000 -0600
+++ highlighting.c      2007-05-12 19:12:23.000000000 -0600
@@ -556,7 +556,7 @@
        // bold = common whitespace settings enabled
        SSM(sci, SCI_SETWHITESPACEFORE, common_style_set.styling[GCS_WHITE_SPACE].bold,
                invert(common_style_set.styling[GCS_WHITE_SPACE].foreground));
-       SSM(sci, SCI_SETWHITESPACEBACK, common_style_set.styling[GCS_WHITE_SPACE].bold,
+       SSM(sci, SCI_SETWHITESPACEBACK, common_style_set.styling[GCS_WHITE_SPACE].italic,
                invert(common_style_set.styling[GCS_WHITE_SPACE].background));
 }

It may be also good to change description in filetypes.common and
documentation to show new possibility.

I would be very grateful if you apply this path as whitespace-selection
highlight clash is very annoying for me.

-- 
Michal Kurgan





More information about the Users mailing list