#64 ✓invalid

Bug: Syntax coloring not applied immediately

Reported by zachriggle | December 24th, 2010 @ 07:58 AM

What I did


What I expected to happen

Syntax coloring is applied

What actually happened

Syntax coloring is applied after about 1/20th of a second. For a brief moment, the text is white.

Comments and changes to this ticket

  • rsms

    rsms December 26th, 2010 @ 09:09 PM

    • State changed from “new” to “invalid”
    • Assigned user set to “rsms”
    • Tag set to syntaxhighlight, ux

    This is by design.

    I had the following two options to chose from:

    1. Let syntax parsing and highlighting occur in the main thread and thus block the UI while calculating and also make it slower (since we would need to "yield" in the main runloop once in a while)

    2. Let syntax parsing and highlighting occur in a background thread.

    Number 2 was chosen. What you see is the time in between you typing a character and the parser & highlighter working and finally applying it's result.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

A text editor for Mac OS X

People watching this ticket