aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2001-04-16 11:03:05 +0000
committernyamatongwe <devnull@localhost>2001-04-16 11:03:05 +0000
commit106179599c53a11344f17c1e802d12692b08c38c (patch)
treed7e9bb0e96e805827129a8915ddd88174140e977
parent11d34b42449d6de08b88124e5542bd506018e2a1 (diff)
downloadscintilla-mirror-106179599c53a11344f17c1e802d12692b08c38c.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");