-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
NonblockingSyntaxHighlighter is a reimplementation (and replacement) of QSyntaxHighlighter, with the aim of keeping the UI responsive even during lengthy highlighting tasks (e.g., long documents). It achieves this goal by queuing highlighting tasks and executing them for a certain time (a few milliseconds) before returning control to the main event loop for processing other events. Once the other events are processed, the highlighter resumes its work for a few milliseconds and so on until the whole documented is highlighted. Inspired by http://enki-editor.org/2014/08/22/Syntax_highlighting.html
- Loading branch information
1 parent
c7d4ece
commit b5db8e6
Showing
2 changed files
with
322 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.