From: MSEdit on
On Feb 11, 5:49 pm, Uwe Klein <uwe_klein_habertw...(a)t-online.de>
wrote:
> eb303 wrote:
> > Thanks Martyn and Brian for your suggestions. I'm actually in a case
> > where having two texts side by side for the line numbers and the
> > actual text work quite well. The only problem I had was that the 'see'
> > command did not work as expected, but it doesn't really seem related
> > to the way I handle text lines. I'll take a look at your solutions
> > anyway.
>
> > Thanks again!
> >  - Eric -
>
> tkdiff is a wellworking example of sync scrolling text widgets with linenumbering and marker columns.
>
> uwe

Dont forget the excellent eskil which does similar things from Peter
Spjuth !!

Martyn
From: Bryan Oakley on
On Feb 11, 10:49 am, Uwe Klein <uwe_klein_habertw...(a)t-online.de>
wrote:
> eb303 wrote:
> > Thanks Martyn and Brian for your suggestions. I'm actually in a case
> > where having two texts side by side for the line numbers and the
> > actual text work quite well. The only problem I had was that the 'see'
> > command did not work as expected, but it doesn't really seem related
> > to the way I handle text lines. I'll take a look at your solutions
> > anyway.
>
> > Thanks again!
> > - Eric -
>
> tkdiff is a wellworking example of sync scrolling text widgets with linenumbering and marker columns.

Actually, tkdiff is very slightly buggy in this regard. I've seen it
get out of sync by a single line on occasion. I wish I had known of
the draw-line-numbers-on-a-canvas trick back when I did the initial
implementation for tkdiff. <shrug>
First  |  Prev  | 
Pages: 1 2 3
Prev: get highlighted text
Next: Keybinding hell.