Hi, Attached is a patch that modifies SynEdit and Lazarus Editor Options dialog. A new "Code Folding" tab appears in the Editor Options. You can enable and disable code folding. You can also set the level at which code folding needs to draw the divider lines. For example Level 1 is at procedure level, Level 2 is a begin..end block inside a procedure, etc... Level 3 is the default setting. Level 1 is really handy, if you only want visual dividers between methods.
The patch needs to be applied from the root Lazarus directory. I didn't include the editoroptions.lrs file, as I believe it gets auto generated anyway. Regards, - Graeme - -- There's no place like 127.0.0.1
codefolding.zipped
Description: Binary data
