On Wednesday, August 27, 2014 7:11:06 AM UTC-5, Edward K. Ream wrote:
>
> Rev 691b8ca... activates the all-Python replacement for the 
> QSyntaxHighlighter class.
>

A truly great day for Leo: idle-time coloring now works!!  At rev 096a9b9 
<https://github.com/leo-editor/leo-editor/commit/096a9b927c4ac20b5fc1a14b23eb3aaa6a63ae51>.
 


This fixes git bug 28: https://github.com/leo-editor/leo-editor/issues/28
Leo hangs when a node with too large body is selected

To repeat: please report *any* problem with syntax coloring immediately.

To see the effect of the new code:

1  Create a node with *lots* of colored text.
2. Move the cursor to the last line of the text.
3. Select another node, and then move back to the "big" node.

You should see the end of the text all in black at first, and then become 
colored later.

In the meantime, Leo is responsive to all commands, mouse clicks, etc.

Edward

P.S. Here is the checkin log:

QQQ
Queued coloring now works!  This fixes git bug 28: 
https://github.com/leo-editor/leo-editor/issues/28

The following settings work well:

    self.r_delay = 20 # The waiting time, in msec. for self.timer.
    self.r_limit = 100 # The max number of lines to color at one time.

Leo build: 20140827090736
QQQ

As you can see, the settings are hard coded.  I doubt that they will ever 
need to be changed, but if so, they could be made optional keyword args to 
the PQSH ctor.

EKR

-- 
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 http://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to