Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
structural highlighting
yvesdm3000:
Isn't that STYLE_INDENTGUIDE ?
Yves
yvesdm3000:
See attachment on how these indent guides look like. I hacked this temporarily in a plugin to see how it would look like: I only added 2 lines of code: set the color and activate
I searched the codeblocks source code but could not find code that activates this feature.
It's not so hard to add I think.
Yves
oBFusCATed:
--- Quote from: extremefishandchip on December 16, 2016, 07:01:19 am ---Hi oBFusCATed, you said it's available but you clarify more how to enable it? I have check the editor for indent guides and did not see an option for it. Thanks.
--- End quote ---
Settings ->Editor -> General settings -> Editor settings -> Show indentation guides
yvesdm3000:
--- Quote from: oBFusCATed on December 16, 2016, 09:14:13 am ---
--- Quote from: extremefishandchip on December 16, 2016, 07:01:19 am ---Hi oBFusCATed, you said it's available but you clarify more how to enable it? I have check the editor for indent guides and did not see an option for it. Thanks.
--- End quote ---
Settings ->Editor -> General settings -> Editor settings -> Show indentation guides
--- End quote ---
Can we also configure its colour trough the GUI ?
Yves
oBFusCATed:
Don't know. If it is possible in scintilla then it can be made configurable in the UI.
Edit:
--- Quote ---SCI_SETINDENTATIONGUIDES(int indentView)
SCI_GETINDENTATIONGUIDES → int
Indentation guides are dotted vertical lines that appear within indentation white space every indent size columns. They make it easy to see which constructs line up especially when they extend over multiple pages. Style STYLE_INDENTGUIDE (37) is used to specify the foreground and background colour of the indentation guides.
--- End quote ---
Patches welcome. Make sure to use the cbColourManager.
Navigation
[0] Message Index
[*] Previous page
Go to full version