Home Download Buy Blog Forum Support

[BUG] Whitespace take colour of comments

[BUG] Whitespace take colour of comments

Postby matteo.gazzoni on Mon Nov 09, 2009 10:54 am

There's a bug in which whitespace characters, when the option all is set, take the colour of block comments, beginning from the second line.
matteo.gazzoni
 
Posts: 12
Joined: Fri Nov 06, 2009 11:29 pm

Re: [BUG] Whitespace take colour of comments

Postby jps on Mon Nov 09, 2009 11:06 am

The white space characters are drawn by blending the normal foreground colour with the background. In the default colour scheme (monokai), this will generally result in a colour similar to the comment colour. You can see the colour used for the white space characters changing within string literals, for example.

If this isn't what you're seeing, then a screen shot or sample file would be appreciated.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: [BUG] Whitespace take colour of comments

Postby matteo.gazzoni on Mon Nov 09, 2009 1:27 pm

As you can see in the image attached, beginning from the second line of a block comment whitespace characters take the colour of comments (which is different from the colour of whitespace characters).
Attachments
bug.png
bug.png (13.2 KiB) Viewed 1195 times
matteo.gazzoni
 
Posts: 12
Joined: Fri Nov 06, 2009 11:29 pm

Re: [BUG] Whitespace take colour of comments

Postby jps on Mon Nov 09, 2009 1:32 pm

The spaces in the region marked 'bad' are part of the block comment, so they're drawn using the comment colour: this is intentional, otherwise areas drawn with a different background colour would run the risk of hiding the visible white space.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: [BUG] Whitespace take colour of comments

Postby matteo.gazzoni on Mon Nov 09, 2009 1:46 pm

Yes, you're right! I overlooked that the colour changes in other parts too. :)

But, and sorry if I am annoying, take for example an html file: using monokai, html elements are pink, attributes are green. The spaces between attributes should be of the same colour (green). With function arguments in javascript, spaces between arguments are of the same colour of the arguments. Is there a pattern that I don't see or it's a little messed up?
matteo.gazzoni
 
Posts: 12
Joined: Fri Nov 06, 2009 11:29 pm


Return to Technical Support

Who is online

Users browsing this forum: Yahoo [Bot] and 36 guests