Re: [Gtk] Fold margin formatting / Folding in the container
Neil Hodgson <[email protected]> Sun, 27 Apr 2025 16:32:18 +1000
| Newsgroups | gmane.comp.lib.scintilla.devel |
|---|---|
| Message-ID | <CACWkrTiaAVJKJ28d7rvJELV7vOaZnUHXpzbLwXeJTmJFJ6bcKg@mail.gmail.com> |
Robin Haberkorn: > while trying to add some kind of folding support to my editor, I found that it > is relatively hard to get the fold margin correctly set up under Gtk. By > default, the folding symbols will be all circles (SC_MARK_CIRCLE) Yes, applications are responsible for choosing the marker symbols and colours used for the fold margin. There is example code in SciTE around line 1420 of scite/src/SciTEProps.cxx. > In a related matter: I found that I couldn't enable folding on a lexer I > implemented in the container (ie. by hooking into SCN_STYLENEEDED > notifications). It's not sufficient to just set the fold level on lines > via SCI_SETFOLDLEVEL. Indicating fold headers with the SC_FOLDLEVELHEADERFLAG is also needed. Neil -- You received this message because you are subscribed to the Google Groups "scintilla-interest" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/scintilla-interest/CACWkrTiaAVJKJ28d7rvJELV7vOaZnUHXpzbLwXeJTmJFJ6bcKg%40mail.gmail.com.