I never expect a selection to show syntax highlighting, as the selection itself is already using its own colors. Textpad could only safely achieve this by not using specific highlighting colours, but instead always showing the negative colors (of both text and background), so highlighting colors would never collide with other colors and result in making text unreadable.
For the developers: Notepad++ keeps syntax highlighting, but is not color collision proof either:
AmigoJack wrote:I never expect a selection to show syntax highlighting, as the selection itself is already using its own colors.
Not necessarily. The TextPad selection makes it the users choice. This user has not specified a selection foreground coluor, instead specifying automatic. He expected that to yield the colours chosen elsewhere - on syntax.
AmigoJack wrote: Textpad could only safely achieve this by not using specific highlighting colours, but instead always showing the negative colors (of both text and background), so highlighting colors would never collide with other colors and result in making text unreadable.
Not at all. It could show the existing colours unchanged. Just as my chosen non-selected background colour makes those foreground colours safe, so does my chosen selected background colour.
AmigoJack wrote:For the developers: Notepad++ keeps syntax highlighting, but is not color collision proof either:
I see no colour collision there. What I do see is the kind of result I was expecting from TextPad.
Last edited by chrisjj on Thu Nov 03, 2016 2:24 pm, edited 1 time in total.
chrisjj wrote:It could show the existing colours unchanged.
When one of your syntax text colors is red and your selection text color is maroon you'll see what I mean by color collision. A more drastic example would be a black selection background encountering black syntax highlighting text.
chrisjj wrote:I see no colour collision there.
I never said there is one. I said Notepad++'s approach is not collision proof - that means: you have to pay attention on which colors you choose here and there and none of them are too similar. Using selection colors that are always the negation of the (normal) display colors would never hit that problem.
Because I see it the same way: either syntax highlighting or text selection, not both at the same time. A bug is something that is not working as intended, and syntax highlighting in your text selection was never intended.
AmigoJack wrote:A bug is something that is not working as intended, and syntax highlighting in your text selection was never intended.
I wonder what makes you think it was never intended.
I see nothing on the UI indicating e.g. my keyword colour is supposed to disappear when the keyword is selected.
If that was the intent, then what could have been the intent of the Foreground Colour: Automatic option which is present and currently totally redundant.
Keywords #1 are displayed with blue background and white text,
Keywords #2 are displayed with white background and black text.
If your selection background is black and the text color wouldn't change (speak: syntax highlighting would still apply), you'd have a problem with keywords #2 and their black text on the selection's black background.
That's why I think it's intended for the selection to have its own state.