Lazarus

Programming => Packages and Libraries => SynEdit => Topic started by: Alextp on September 04, 2020, 12:03:15 pm

Title: Fold comments only if they are N lines
Post by: Alextp on September 04, 2020, 12:03:15 pm
This is needed for IDE.
IDE folds all multi-line comments, .e.g this one

procedure A;
//desc
//text
begin

This is not needed! 2 lines are no neeed to fold!
Pls make the IDE option like "Number of commented lines which are foldable".
Title: Re: Fold comments only if they are N lines
Post by: Thaddy on September 04, 2020, 12:40:49 pm
Code folding - or comment folding - can only sensibly parsed in whole blocks.
IMHO there is no need for it either.
If I understand you correctly what you mean is the ability to truncate some of single line comments. I can't see the point.
Title: Re: Fold comments only if they are N lines
Post by: Martin_fr on September 04, 2020, 02:06:29 pm
Please add a feature request on Mantis. Thanks
Title: Re: Fold comments only if they are N lines
Post by: Alextp on September 04, 2020, 02:11:04 pm
Done
https://bugs.freepascal.org/view.php?id=37697
TinyPortal © 2005-2018