You are here: PSPad forum > English discussion forum > Re: Is there a way to run Perl on a text file by using a PSPad menu item?
Posted by: therium | Date: 2015-11-13 13:12 | IP: IP Logged
I'd like to run short perl programs on a text file, basically converting
some characters to other characters, so this would require about 10 replacements done on a file. After that I want to search for possible errors in a text file that was created from OCR. We sometimes have a word, a space, then the period/punctuation mark. These need to be correct.
Is there a way to set up a menu item in PSPad to run an external perl program to do this?
This can also be useful to sort my variables in a Perl declaration by selecting one line. So this:
my($c,$b,$z,$test,$t1);
becomes this;
my($b,$c,$t1,$test,$z); # Variables are sorted.
Thanks.
Posted by: pspad | Date: 2015-11-13 13:26 | IP: IP Logged
Install Active Perl for Windows Scripting Host
You will be able to use PSPad scripting to extend PSPad functionality - menu Script.
If there is no menu script in your PSPad, go to PSPad settings / System integration and allow scripting
Posted by: therium | Date: 2015-11-18 13:28 | IP: IP Logged
Thank you!
Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR