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.
On Sat, 12 May 2007 19:24:29 -0600, Michal Kurgan michal.kurgan@moloh.net wrote:
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.
Applied with SVN r1536. Thank you very much.
Regards, Enrico
-- Get my GPG key from http://www.uvena.de/pub.key