EmEditor (text editor) Forum Index
   Questions and Answers about EmEditor Core
     number the lines
Register To Post

Flat Previous Topic | Next Topic
Poster Thread
Stefan
Posted on: 2/26/2012 10:21 am
Home away from home
Joined: 7/14/2008
From: Germany, EU
Posts: 263
Re: number the lines
a) make an zero-width selection in front of the lines
b) execute "Edit > Advanced > Numbering..."
c) press [OK]
Note: to pad with zeros enter them into the "First Line" field like "01" or "0001"

d) while still have that inserted numbers selected do an regex s&r:
Find: (\d\d)
Replace with: \1)

[X]Use regex
[X]In selection only

Note: the amount of find "\d" patterns depends on how many zeros you have padded.
"\d\d" will match two digits.
"\d\d\d" or "\d{3}" will match three, and so on...
Flat Previous Topic | Next Topic


Subject Poster Date
   number the lines user 2/26/2012 2:20 am
     Re: number the lines webern 2/26/2012 4:03 am
   » Re: number the lines Stefan 2/26/2012 10:21 am

Register To Post
 
English čeština Deutsch español français italiano 日本語 한국어 Русский 简体中文 繁體中文