View previous topic :: View next topic |
Author |
Message |
jfcarbel
Joined: 13 Jun 2006 Posts: 27
|
Posted: Thu Jun 15, 2006 6:00 am Post subject: How do I turn off code folding? |
|
|
I have set the style of the file I want to load. But I do not need code folding. Is there a way to turn this off programatically? |
|
Back to top |
|
|
jfcarbel
Joined: 13 Jun 2006 Posts: 27
|
Posted: Thu Jun 15, 2006 6:01 am Post subject: |
|
|
Posted by: econtrol (IP Logged)
Date: May 31, 2006 11:43AM
There is a way to do it:
You should disable all range rules.
example:
with SyntaxMemo1.SyntObj.Owner do
for i := 0 to BlockRules.Count - 1 do
BlockRules[i].Enabled := False;
That is code folding is controled by the lexer.
I shall implement option to turn off folding in nearest update.
Michael. |
|
Back to top |
|
|
jfcarbel
Joined: 13 Jun 2006 Posts: 27
|
Posted: Thu Jun 15, 2006 6:02 am Post subject: |
|
|
I tried the code you suggested, however I then lose all my color syntax highlighting. I hope that the future implemented setting only turns off code folding and nothing else.
Thanks. |
|
Back to top |
|
|
jfcarbel
Joined: 13 Jun 2006 Posts: 27
|
Posted: Thu Jun 15, 2006 6:02 am Post subject: |
|
|
Posted by: econtrol (IP Logged)
Date: June 09, 2006 01:23PM
I've already implemented DisableFolding property. This property allows to turn ON/OFF folding with saving collapsed ranges, that after turn on there will be the same collapsed lines as before turn off. |
|
Back to top |
|
|
jfcarbel
Joined: 13 Jun 2006 Posts: 27
|
Posted: Thu Jun 15, 2006 6:03 am Post subject: |
|
|
Thanks, is this available in the latest demo version online? |
|
Back to top |
|
|
econtrol Site Admin
Joined: 09 Jun 2006 Posts: 202
|
Posted: Fri Jun 16, 2006 10:09 am Post subject: |
|
|
Next week I shall publish new update.
Today I've uploaded demo applications (in download section), so you may test this feature. |
|
Back to top |
|
|
|