On Mon, Oct 1, 2012 at 2:05 AM, Edward K. Ream <[email protected]> wrote:

> Could Leo's syntax coloring code create the *concise* summary data? 
> jEditColorizer.setTag is the obvious place. Alas, computing the
summary data seems very difficult.

"Impossible" is probably the proper word here.  Indeed, setTag only
knows the indices of the ranges of text within the line being
colorized.  That is, QSyntaxHighlighter just feeds lines to the
over-ridden highlightBlock method.  As the user types on the line,
highlighting for the line will happen repeatedly, so there is *no way*
to know what the global indices are. This looks like the end of this
line of inquiry.

The only remaining question is whether calling
QSyntaxHighlighter.format(n) for n in range(len(c.p.b)) has any chance
of being fast enough.

Edward

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/leo-editor?hl=en.

Reply via email to