[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fwd: Non consecutive line numbers with textEditor component
[Thread Prev] | [Thread Next]
- Subject: Re: Fwd: Non consecutive line numbers with textEditor component
- From: Stéphane Aulery <lkppo@xxxxxxx>
- Date: Thu, 25 Jul 2024 14:23:34 +0200
- To: user@xxxxxxxxxxxxxxxxxxxxxx
Le 25/07/2024 à 14:10, Bruce Steers a écrit :
On Thu, 25 Jul 2024 at 11:46, Stéphane Aulery <lkppo@xxxxxxx <mailto:lkppo@xxxxxxx>> wrote:Le 25/07/2024 à 12:03, Bruce Steers a écrit : > > On Wed, 24 Jul 2024 at 19:51, Stéphane Aulery <lkppo@xxxxxxx <mailto:lkppo@xxxxxxx> > <mailto:lkppo@xxxxxxx <mailto:lkppo@xxxxxxx>>> wrote: > > Le 24/07/2024 à 20:17, Bruce Steers a écrit : > > > > This somewhat special area must offer three things: > > > > - Line numbering (on/off) > > - A view of the matches with context (not always consecutive > so the > > numbering is not either) > > - On double click, a file editor opens the file at the > indicated line > > and column > > > > An editor area seems more appropriate to me, but I don't know > if the > > numbering can be non-consecutive or at least the > non-interesting lines > > can be hidden or folded. > > > > Is this feasible with a TextEditor component? > > > > Anything is possible. > > I do not think the TextEditor will do this by default but you > could do > > the following (as i myself have done in a few projects) ...... > > > > Copy the comp/src/gb.form.editor/.src folder into your own projects > > folder (but not the "test" folder) > > un-select gb.form.editor from your project properties components. > > > > Now you can examine/study/edit the TextEditor imported into your > project > > to your hearts content and make it do anything. > > (Mine has a keystroke recorder plus many other additions) > > Very interesting. It seems more accessible to me than trying to create > an HTML page. > > The double click should be simple but the lines for non-consecutive I > have to be inventive. > > Can I rename the customize component to have both in the same rpoject? > > > Yes of course. It's not as easy as just modifying normally. There are > the following things to watch out for... With the first technique we couldn't simply overload the component class?-- Stéphane AuleryI do not quite understand what you mean by overload?
Write an inherited class to override the component. -- Stéphane Aulery
Non consecutive line numbers with textEditor component | Stéphane Aulery <lkppo@xxxxxxx> |
Re: Non consecutive line numbers with textEditor component | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: Non consecutive line numbers with textEditor component | Stéphane Aulery <lkppo@xxxxxxx> |
Fwd: Non consecutive line numbers with textEditor component | Bruce Steers <bsteers4@xxxxxxxxx> |
Re: Fwd: Non consecutive line numbers with textEditor component | Stéphane Aulery <lkppo@xxxxxxx> |
Re: Fwd: Non consecutive line numbers with textEditor component | Bruce Steers <bsteers4@xxxxxxxxx> |