On 28/10/06, Mattias Gaertner <[EMAIL PROTECTED]> wrote:
IMO this should be done with code folding. The current rule
(begin..end) was added by me only for demonstration. The original
thread about code folding included many more ideas, where a block
should start and end. I implemented a generic algorithm. Now we can
play with it and define what should be blocks. Maybe even add
some options for personal taste.

I have been browsing the code this morning, to see how the Code
Folding works.  As you said, being able to customise the code folding
options should do the trick.

The first customised option I can think of is how many levels deep
(begin..end blocks) code folding should occur.

eg:
 Level 1:  proceduce/function begin..end block
 Level 2:  the first begin..end block inside the procedure/function.
 Level 3:  a nested begin..end inside the level 2 block
 etc,


Component palette SynEdit -> Right click on TSynPasSyn -> Open Unit.
Search for StartPascalCodeFoldBlock.

Thanks Mattias.

Regards,
 - Graeme -

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to