Page 1 of 1

Add an incrementing number on each line

Posted: Fri Feb 08, 2008 3:24 pm
by Prometheus
Hi,

I'm trying to add a sequential number on each line of text:

i.e.

1 .....text...
2 .....text...
3 .....text....

Is there a way to Find begnning of line and replace with an incrementing variable?

Or would I have to use some sort of script?

Thanks, much appreciated.

Posted: Fri Feb 08, 2008 3:34 pm
by helios
Please see the TextPad Help files: How to/Find and Replace Text/Generate Sequence Numbers.

Sequential Renumbering

Posted: Thu Apr 10, 2008 8:06 pm
by StephenGolub
Is there anyway to make this thing more friendly? Like, if I were to block select something, and hit a shortcut key, it would renumber starting at the first number (if it was 512, that would be the starting number) and then increment by 1 every occurance of a number from there on out...

I know it's been done with a program called NetLinx studio (used for programming AMX Automated Systems) and that's much handier and less typing than using Regular Expressions everytime I need to renumber something.

Re: Sequential Renumbering

Posted: Fri Apr 11, 2008 12:44 am
by ak47wong
StephenGolub wrote:Is there anyway to make this thing more friendly? Like, if I were to block select something, and hit a shortcut key, it would renumber starting at the first number (if it was 512, that would be the starting number) and then increment by 1 every occurance of a number from there on out...
You're in luck: Edit -> Fill Block

Please see the TextPad Help files: How to/Edit Text/Fill Blocks.

Andrew