Discussion:
Folding with lexers
Chad Wilson
2014-03-14 16:59:48 UTC
Permalink
Hello :)
I have a program that uses the folding values to set indentation. The
issue I am having is that when text gets put into a control that has more
lines than the control can show, the lexer only sets the folding values for
what is displayed. I was wondering if there was a way that I could have it
set the folding values for the whole document when it is added, or if that
is not possible. I just thought of a work-around but if there is a way to
do it all at once I would like to know. Thanks in advance :)
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Chad Wilson
2014-03-14 17:33:35 UTC
Permalink
my work around is actually not functioning as I need it to either. Any
help would be appreciated.
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Neil Hodgson
2014-03-14 21:47:01 UTC
Permalink
I have a program that uses the folding values to set indentation. The issue I am having is that when text gets put into a control that has more lines than the control can show, the lexer only sets the folding values for what is displayed. I was wondering if there was a way that I could have it set the folding values for the whole document when it is added, or if that is not possible.
Fold levels are set when performing lexing. Try SCI_COLOURISE(0, -1).

Neil
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Chad Wilson
2014-03-15 00:14:11 UTC
Permalink
Thank you very much. That helped out quite a bit.
--
You received this message because you are subscribed to the Google Groups "scintilla-interest" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scintilla-interest+***@googlegroups.com.
To post to this group, send email to scintilla-***@googlegroups.com.
Visit this group at http://groups.google.com/group/scintilla-interest.
For more options, visit https://groups.google.com/d/optout.
Loading...