Page 1 of 1

Sequence number

Posted: Sat Jul 19, 2008 9:34 pm
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.

Posted: Sat Jul 19, 2008 10:03 pm
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.