User forums > Using Code::Blocks

Chaning text brightness and background color for inactive text

(1/1)

hanshuckebein:
Is there a possibility to change text brightness and background color for any text and all white space in an inactivated block? For me the text especially of code is much too pale.

I would prefer normal text or text w/o syntax highlighting on a different colored background for inactive blocks.

The Syntax highlighting dialog is nearly unusable and produces quite ugly text, if I try to modify component by component.

oBFusCATed:

--- Quote from: hanshuckebein on January 14, 2021, 03:29:08 pm ---The Syntax highlighting dialog is nearly unusable and produces quite ugly text, if I try to modify component by component.

--- End quote ---
What do you mean? It is hard to use, but if you're patient you can sort of get a good looking theme.

There are "inactive" fields in the Syntax highlight settings. I suppose they are used for this.
I don't use the inactive prerprocessor feature, so I can't tell you if this actually works.

hanshuckebein:

--- Quote ---There are "inactive" fields in the Syntax highlight settings. I suppose they are used for this.
--- End quote ---

I know. But the result looks quite ugly. I would like to change the full background color between #if 0 and #endif and the text brightness – 2 adjustment screws would be sufficient.

In the attachment, I changed the background for all items marked as "inactive" to yellow. The unused window background remains unchanged.


PS.: I permanently got an error message from the forum until I logged out and in again:

--- Quote ---An Error Has Occurred!
You already submitted this post! You might have accidentally double clicked or tried to refresh the page.
--- End quote ---

oBFusCATed:
Try this same thing in scite or another scintilla based editor and if it works there we could probably do something. Otherwise scintilla should be modified to support this first.

Navigation

[0] Message Index

Go to full version