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

indentation guilds highlight

<< < (7/10) > >>

blueshake:
I just test the wxLIGHT_GREY

--- Code: ---control->StyleSetForeground(wxSCI_STYLE_INDENTGUIDE, *wxLIGHT_GREY);
--- End code ---

@rhf
Is this the style you talk about?

[attachment deleted by admin]

ollydbg:
I think He(rhf) would like "a dimmer indentation guide lines", I personally prefer the indentation guide line color = color of comment text.

But I don't know how to get that color value from predefined user color option. :(

blueshake:
maybe it is relative to mset.m_Colours in line 467 in editorcolourset.cpp.but I am not sure.

rhf:
@ollydbg and blueshake,

Following your suggestions, I added the following to sdk\editorcolourset.cpp in Line 463:

--- Code: --- control->StyleSetForeground(wxSCI_STYLE_INDENTGUIDE, *wxLIGHT_GREY);
--- End code ---

This worked beautifully, doing exactly what I wanted, and it even changes color when the braces are highlighted.

Well done and thanks,
Bob

ollydbg:
hi, I have found a better way, that is: I can set the indentation guild line's color =C++ Comment color.
By default, it was a gray line.

You can add these code in

sdk\editorcolourset.cpp  line 506-509.


--- Code: ---        if (opt->name == _T("Comment (normal)") )
        {
            control->StyleSetForeground(wxSCI_STYLE_INDENTGUIDE,opt->fore);
        }
--- End code ---

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version