Developer forums (C::B DEVELOPMENT STRICTLY!) > Development

New feature: whitespace colour

(1/3) > >>

yvesdm3000:
I added a feature to CB to alter the colour of whitespace.

I think this should be base functionality, no idea if it can be implemented as a plugin or if it's worth it to do so...

Signed-off-by: Yves De Muyter <yves@alfavisio.be>

oBFusCATed:
Can you show a screenshot depicting the use case for this feature?
I'm not sure I understand why someone will choose different colour than the background colour in the syntax highlight.

ollydbg:
About this topic, some program like Notepad++ can show the "white space" and "tab" as a special characters(dot and arrow), see image shot below, which I though is a quite nice feature. :)



EDIT: it looks like C::B already has this feature. ;)

yvesdm3000:
ollydbg : Good news,  Code::Blocks can do this allready !

But with latest SVN version, you can't alter it's colour, it simply uses the normal text colour and I find that a bit too intrusive.

In this screenshot, I altered the default to use a light grey. You hardly notice it unless you need it, which is way better than the black it had before. About any other editor that I know of and tried can do this, and once you get used to a feature and you change apps, you start to miss it...

A lot of other editors and Scintilla also allows you to set the whitespace background color and the size of the dot, but I don't really see the use for these extra features so I didn't add them (although it would be very easy to add them)

-Yves

oBFusCATed:
So this allows changing the colour of the white space special character when they are shown?

BTW: The screen shot doesn't show.

Navigation

[0] Message Index

[#] Next page

Go to full version