On Wed, 26 Jul 2006 19:56:46 +0300
"George Birbilis" <[EMAIL PROTECTED]> wrote:

> > > > How is code folding called in synedit? I can't find it.
> > > They don;t have it IIRC, there is another project though that
> > > implements this. http://mystix.sourceforge.net
> >
> > On the web page is says, that everytime you change the text
> > manually, you have to update the fold regions yourself. And
> > looking at the code it seems to me, that every update
> > traverses through all fold ranges. I wonder how much overhead
> > this creates for big sources.
> 
> I'd expect an architecture for CodeFolders (components) similar to
> Highlighters of SynEdit. Also a generic CodeFolder (that does highlighter
> logic dynamically from a description file) similar to Unihighlighter
> 
> How's the Lazarus codefolding implemented currently? Is it for Pascal only
> or does it allow easily defining other (tree) foldings?

The codefolding is done by the highlighters.
At the moment only the pascal highlighter is using it.
Extending other highlighters is quite easy. Ten lines plus one line for
every start and end.

Mattias


> 
> ----------------
> George Birbilis ([EMAIL PROTECTED])
> Microsoft MVP J# for 2004-2006
> Borland "Spirit of Delphi"
> * QuickTime, QTVR, ActiveX, .NET, Delphi VCL, XML, IPC
> http://www.kagi.com/birbilis
> * Robotics
> http://www.mech.upatras.gr/~Robotics
> http://www.mech.upatras.gr/~robgroup
> 
> 
> 
> 
>   _____  
> 
> avast! Antivirus <http://www.avast.com> : Outbound message clean. 
> 
> 
> Virus Database (VPS): 0630-2, 26/07/2006
> Tested on: 26/7/2006 7:56:45 ??
> avast! - copyright (c) 1988-2006 ALWIL Software.
> 
> 
> 
> _________________________________________________________________
>      To unsubscribe: mail [EMAIL PROTECTED] with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives

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

Reply via email to