Line Numbering

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, MudGuard

Post Reply
David Shealey

Line Numbering

Post by David Shealey »

I have tried line numbering per the help instructions to get line numbers incremented by "1". The help instructions are to use "Replace ^ with /i" for line numbering incrementing by 1, starting at 1.

I tried this several times, but get line numbers starting at 10, incremented by 10.

??? Suggestions?

Thanks,

David Shealey
Andreas

Re: Line Numbering

Post by Andreas »

When I do a regex replace ^by /i on all lines, all lines start with /i ;-)

If I do a regex replace ^ by \i on all lines, lines are numbered 1, 2, 3...

If I do a regex replace ^ by \i(13,17) on all lines, lines are numbered 13, 30, 47

So try to do a regex replace ^ by \i(1,1) on all lines if \i alone does not work
Roy Beatty

Re: Line Numbering

Post by Roy Beatty »

Don't forget a useful but oft overlooked feature, Fill Block:

1) Enable block editting<br>
2) Highlight the columns yin which you want the line numbers to appear.<br>
3) Edit > Fill Block ...

The Fill Block dialog gives you pretty good control over the line numbers generated.

HTH,

Roy
User avatar
bob_obob
Posts: 8
Joined: Mon Sep 22, 2003 9:08 pm

Line Numbering on by default?

Post by bob_obob »

I've done *something* but I don't know what, and now every file opens with line numbers displayed.

It's a nice feature; I'd use it once in a [great] while.
How can I turn it back off, please?
User avatar
MudGuard
Posts: 1295
Joined: Sun Mar 02, 2003 10:15 pm
Location: Munich, Germany
Contact:

Post by MudGuard »

Configure - Preferences - View - Line numbers
User avatar
bob_obob
Posts: 8
Joined: Mon Sep 22, 2003 9:08 pm

Line Numbering on by default?

Post by bob_obob »

thanks much.

sure wish I could imagine how I managed to do that by accident
Post Reply