From 23460f666bf34479850000eed40ba0ea38ca6665 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 11 Nov 2015 19:14:30 +1100 Subject: Implemented idle styling. This allows painting without first styling all visible text then styling in the background using idle-time. --- doc/ScintillaDoc.html | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'doc/ScintillaDoc.html') diff --git a/doc/ScintillaDoc.html b/doc/ScintillaDoc.html index e77c064c3..34722f259 100644 --- a/doc/ScintillaDoc.html +++ b/doc/ScintillaDoc.html @@ -82,7 +82,7 @@

Scintilla Documentation

-

Last edited 31 July 2015 NH

+

Last edited 11 November 2015 NH

There is an overview of the internal design of Scintilla.
@@ -2391,6 +2391,8 @@ struct Sci_TextToFind { SCI_SETSTYLING(int length, int style)
SCI_SETSTYLINGEX(int length, const char *styles)
+ SCI_SETIDLESTYLING(int idleStyling)
+ SCI_GETIDLESTYLING
SCI_SETLINESTATE(int line, int value)
SCI_GETLINESTATE(int line)
SCI_GETMAXLINESTATE
@@ -2426,6 +2428,23 @@ struct Sci_TextToFind { SCI_STARTSTYLING should be called before the first call to this.

+

SCI_SETIDLESTYLING(int idleStyling)
+ SCI_GETIDLESTYLING
+ By default, SC_IDLESTYLING_NONE (0), + syntax styling is performed for all the currently visible text before displaying it. + On very large files, this may make scrolling down slow. + With SC_IDLESTYLING_TOVISIBLE (1), + a small amount of styling is performed before display and then + further styling is performed incrementally in the background as an idle-time task. + This may result in the text initially appearing uncoloured and then, some time later, it is coloured. + Text after the currently visible portion may be styled in the background with SC_IDLESTYLING_AFTERVISIBLE (2). + To style both before and after the visible text in the background use SC_IDLESTYLING_ALL (3). +

+

+ Since wrapping also needs to perform styling and also uses idle time, this setting has no effect when + the document is displayed wrapped. +

+

SCI_SETLINESTATE(int line, int value)
SCI_GETLINESTATE(int line)
As well as the 8 bits of lexical state stored for each character there is also an integer -- cgit v1.2.3