[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Editor: Folding sections?


On Mon, 17 Jun 2024 at 08:13, Rolf-Werner Eilert <rwe-sse@xxxxxxxxxx> wrote:

> Am 16.06.24 um 01:13 schrieb KKing:
> > Re: Editor: Folding sections?
> >
> > +1
> >
> > I resorted to using Geany and even notepad++ for some work I had to do
> > on some very large projects.
> >
> > This was Benoit's response to my enquiry in 2019
> >> Le 09/09/2019 à 18:50, KKing a écrit :
> >> > Is there support for regions and within the IDE code folding?
> >> >
> >> > If not is it on a wishlist / roadmap ?
> >> >
> >> > K.
> >> >
> >>
> >> No and no.
> >>
> >> --
> >> Benoît Minisini
> >
> > Maybe we can find a GSOC candidate :---?
> >
> > K.
> >
> >
>
> As to folding code: As far as I know (never checked the sources), the
> IDE and the editor is written in Gambas. If so, it should be relatively
> easy to re-use the existing folding procedures, combine it with comment
> recognition and add section folding to it.
>
> I have been thinking this over, and if you guys could point me to the
> entry points for procedure folding and comments, I will take a look at
> it. At least I could give it a try...
>
> Regards
> Rolf
>

Er . TextEditor.class of course is where the code is.
Looks like from about here...
https://gitlab.com/gambas/gambas/-/blob/master/comp/src/gb.form.editor/.src/TextEditor.class?ref_type=heads#L4995
$aFold variable.

Good luck

BruceS

References:
Re: Editor: Folding sections?KKing <kicking177@xxxxxxxxx>
Re: Editor: Folding sections?Rolf-Werner Eilert <rwe-sse@xxxxxxxxxx>