aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2001-04-16 11:03:05 +0000
committernyamatongwe <unknown>2001-04-16 11:03:05 +0000
commite588dd5a5d802050f6d252995bc0f76731a36d29 (patch)
treed7e9bb0e96e805827129a8915ddd88174140e977
parentd6e1d0e0d448fadbb61f4533edbee88376cf7682 (diff)
downloadscintilla-mirror-e588dd5a5d802050f6d252995bc0f76731a36d29.tar.gz
Mention folder function.
-rw-r--r--doc/Lexer.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/Lexer.txt b/doc/Lexer.txt
index 247eb1beb..f66c5aacf 100644
--- a/doc/Lexer.txt
+++ b/doc/Lexer.txt
@@ -139,6 +139,12 @@ characters in ASCII for operators, comment markers, etc.
Special case: Folding
+Folding may be performed in the lexer function. It is better to use a
+separate folder function as that avoids some troublesome interaction
+between styling and folding. The folder function will be run after the
+lexer function if folding is enabled. The rest of this section explains
+how to perform folding within the lexer fucntion.
+
During initialization, lexers that support folding set
bool fold = styler.GetPropertyInt("fold");