I'm trying to use the Scintilla editing component (actually using python QScintilla, but that shouldn't matter here) to edit more-or-less plain text (not a programming language or other structured text).
Nonetheless I have some structures that can be identified and could be rendered in a different style. This is not a problem as I already implemented what is necessary.
Problem is some of these structures may nest; in particular some "keywords" should be recognized (and highlighted) even inside "quotation marks" (which is highlighted in a different way).
Is there any way of "composing" the styles? i.e.: if text inside quotation has green background and keyword has bold red foreground is there a "simple" way to have a keyword in quotation as "green background and bold red foreground"?
I am aware I can define styles which are "keyword_in_quotes" and manually get the needed effect; I was wondering if there is some built in support in scintilla.