Page 1 of 1

batch insert text?

Posted: Tue Mar 17, 2015 11:46 am
by Tiesto
Hi

Is it possible to batch insert code/text into html files without replacing anything? Let's say i wanted to add a small code to line 26 on all files for example.


Thanks
Tiesto

Re: batch insert text?

Posted: Wed Mar 18, 2015 10:44 am
by DigitalVolcano
You can use line mode on TextCrawler pro

For instance:

Using mode "Limit to Lines"
From: 26
To: 26

RegEx:
$
Replace
\r\nTHE NEW LINE

This will insert a new line after line 26. The $ symbol matches the line end, and the \r\n inserts a new one.

Re: batch insert text?

Posted: Wed Mar 18, 2015 11:42 am
by Tiesto
Awesome, works a treat. Thanks!