Hi, I just like to know, could I do this some way with PSPad ?
Say, I have 2 textfiles open : 1st textfile is the one that needs to be changed. 2nd textfile is the one that contains the lines that need to replace lines in the 1st textfile. File 2 contains 18 lines which needs special insertion into line one. I would like to get this done : Search for a specific line in file1, and automatically replace each found line with the next line from file 2. So, textfile 2 contains these lines : First line to insert. Second line to insert. Third line to insert. Fourth line to insert. Fifth line to insert. etc.... So I need some special find an replace function that replaces each found matching line with the next line from file 2. So, search textfile 1 for [color=#FF0000]replaceme[/color]. Running some kind of script or function, - the first occurence of [color=#FF0000]replaceme[/color] is replace by [color=#00ff00]First line to insert.[/color] - the second occurence of [color=#FF0000]replaceme[/color] is replace by [color=#00ff00]Second line to insert.[/color] - the third occurence of [color=#FF0000]replaceme[/color] is replace by [color=#00ff00]Third line to insert.[/color] - the forth occurence of [color=#FF0000]replaceme[/color] is replace by [color=#00ff00]Forth line to insert.[/color] - the fifth occurence of [color=#FF0000]replaceme[/color] is replace by [color=#00ff00]Fifth line to insert.[/color] Is this, some way, possible please ? -- <http://forum.pspad.com/read.php?2,47351,47351> PSPad freeware editor http://www.pspad.com
