Hello PSpad supports scripting (in default JScript, VB Script) or PHP, Perl if you will install another language for Windows Scripting Host. In script you can manipulate with text in open files as you need. Open script.rtf in the PSPad folder or look at scripting posibilities in PSPad help. Some scripts you can find in the .\Script folder.
To use script (if menu item Script doesn't exists in main menu) you need to allow Scripting support in the program settings / System -- <http://forum.pspad.com/read.php?2,69266,69271> PSPad freeware editor http://www.pspad.com
