Hi,

I haven't used code folding much, only as a method divider option
(Options | Editor | Code Folding). But one thing I noticed while
playing with code folding is that it doesn't give much visual feedback
that a section of code has been folder.

procedure Test1;
begin
  bla..bla..bla..
end;

procedure Test2;
begin
  bla..bla..bla..
end;

folded as:

  procedure Test1;
[+] begin

procedure Test2;
begin
  bla..bla..bla..
end;

This just looks weird, seeing an 'begin' with nothing else.  Maybe
when begin..end blocks are folded, it should paint a hint in the
editor as well, not just the [+] in the gutter.

eg:

  procedure Test1;
[+] begin  [...]

procedure Test2;
begin
  bla..bla..bla..
end;

The [+] is in the gutter as normal and the [...] is painted after the
'begin' to clearly indicate that other code exists, it's just folded.
See the attached image for how Delphi does it. I think that is quite
nice.


Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/

<<attachment: codefolding_hint.png>>

_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to