editing beginning of each line

General questions about using TextPad

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

Post Reply
dmastous
Posts: 2
Joined: Fri Jul 23, 2004 10:25 pm

editing beginning of each line

Post by dmastous »

I'm attempting to add a div tag at the beginning of each line of a long text file. I was copy/pasting then got the bright idea of using a macro. I tried to write it a couple of ways, but with no luck. Anyone else try this and succed? Is there a macro or a function within Textpad that will go to the beginning of each line and paste a string?

Dan
Ed
Posts: 103
Joined: Tue Mar 04, 2003 9:09 am
Location: Devon, UK

Post by Ed »

Select "Regular expression" on search window.
Search for ^
replace with
div - or whatever you want
dmastous
Posts: 2
Joined: Fri Jul 23, 2004 10:25 pm

Post by dmastous »

That did it!
That will save me a lot of time along with wear & tear on my hand (from using Ctr v over and over again)
Thanks

Dan
Post Reply