I haven't tried it myself, but it seems to be possible to integrate Python
scripts into PSPad. See for example http://www.trepca.si/blog/?p=14.
Generally, the script support built into PSPad works much better than macros.

-- 
<http://forum.pspad.com/read.php?2,40506,40509>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem