On Wed, 19 Sep 2007 11:33:09 +0200 "Stephen Dickason" <[EMAIL PROTECTED]> wrote:
> > > Why is freepascal highlighting just blue, with no code shrinking > > > (not > sure > > > what you call it) like the Delphi highlighting? Or may be version > > > 0.9.22 > is > > > a bit old? > > What is 'shrinking' ? Do you mean code folding ? 0.9.23 definitely > > has > code folding. > > Michael. > Probably code folding - the selective hiding of lines of code between > begin and end - it does this in 0.9.22, I was just looking at a badly > formatted source code that didn't close comments - sorry. Are > comments nestable? > > I would like to see this code folding extended to > procedure/function/try blocks. Reducing multiple blank lines between > folded sections to nothing and multiple blank lines above and below > to single lines. Maybe also a block level number. Is currently > difficult when two blocks start on the same line to close the bigger > level. Don't know if this is done already. > > I also battle with selecting lines without creating breakpoints - > have to carefully position over bevel at start of line. > Stephen The current code folding is defined by the highlighter. Multiple starts/ends in a single line is no problem, although it becomes more difficult for the user. Nested comments in the highlighter is a simple flag. It is enabled as default, because the default pascal mode of lazarus is objfpc. But the highlighter does not yet parse for mode directives, nor does the IDE yet init the flag for Delphi mode sources. You are welcome to send a patch for the highlighter (TSynPasSyn) to add more code fold block types for try/procedure/function blocks. Mattias _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives