Sequence number

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
mztkhj
Posts: 2
Joined: Sat Jul 19, 2008 9:23 pm

Sequence number

Post by mztkhj »

Sequence numbers that can be used in macros and search/replace would be beneficial. Would need a way to initialize them and then use them, having them automatically increment after each use.

Example would be placing line numbers over a section of text. You could set the sequence number to 1, then do a replace of "\n" with "\n[[:seq1:]]" or something like it.

Would be very beneficial for numbering footnotes, etc.
_____________________

rsmith01@acm.org
ben_josephs
Posts: 2461
Joined: Sun Mar 02, 2003 9:22 pm

Post by ben_josephs »

Find what: ^
Replace with: \i

[X] Regular expression

Replace All
\i(100) starts from 100,
\i(100,10) starts from 100 and increments by 10,
etc.

Look in the help under How To ... | Find and Replcace Text | Generate Sequence Numbers.
Post Reply