>   So implement SC_MARGIN_SPACER.
Done. I have taken the "least change" approach, and added a new bool to
MarginStyle(). The code changes are small, and all the users like it.

However, it occurred to me (seeing you mentioned the idea of drawing a line)
that there is another way to implement this in a 100% backwards compatible
way.

We could make the second argument to SetMarginTypeN call a set of flags,
then you could have:

SC_MARGIN_SYMBOL = 0    // as now
SC_MARGIN_NUMBER = 1    // as now
SC_MARGIN_SPACER = 2    // STYLE_DEFAULT background
SC_MARGIN_LINERIGHT = 4 // draw line on right of margin
etc

Do you have any preference for implementation? I can send you the changed
files either way.

Greg


_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to