On Saturday, January 28, 2017 at 10:16:55 AM UTC-6, Edward K. Ream wrote: *Alas, QsciDocument is not a QTextDocument* > > It *might* be possible to create an adapter class that is a subclass of > *both* QsciDocument and QTextDocument. But not likely. >
I'm a bit more hopeful. I was forgetting that Leo's core calls qsc.colorize often enough to make the standard QScintilla lexers work. The real question is whether qsc.colorize can force a full recolor. If so, QScintillaColorizer might be able to use custom lexers. Who knows, maybe qsc.colorize could call jedit.recolor for all lines in the QTextDocument. If so, the QScintilla widget could use Leo's standard colorizers! I've got to investigate this while all the complications are fresh in the bean. Edward -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
