You are here: PSPad forum > English discussion forum > Re: Script or macro for grouping four lines in one in a text file from beginning to end
Posted by: Esgrimidor | Date: 2014-01-09 20:37 | IP: IP Logged
Script or macro for grouping four lines in one in a text file from beginning to end according to this procedure : put an * at the beginning of the first line and other asterisk at the end of the fourth line.
Then continue with an asterisk in the beginning of the fifth line, and other at the end of the eighth line, and so on.
is this possible and how ?
Best Regards
--
Nice program indeed
Posted by: vbr | Date: 2014-01-09 22:41 | IP: IP Logged
Esgrimidor:Script or macro for grouping four lines in one in a text file from beginning to end according to this procedure : put an * at the beginning of the first line and other asterisk at the end of the fourth line.
Then continue with an asterisk in the beginning of the fifth line, and other at the end of the eighth line, and so on.is this possible and how ?
Best Regards
Hi,
you can record a macro and call it repeatedly,
cf. a similar task in a previous thread:
forum.pspad.com
(I'll just update your formatting to the needed steps.)
Place the cursor at the beginning of the text.
Go to:
Tools: Macro: Start/Stop recording (Ctrl+F5)
and perform to following steps (key presses):
[Home]*[DownArrow][DownArrow][DownArrow][End]*[DownArrow]
Then press Ctrl+F5 again and enter the macro name like asterisk_4_lines
Then go to
Tools: Macro: Macro manager
select number_lines_1_2 and click play x times
and set the appropriate number depending on the number of lines.
If you set more macro runs than necessary, you will have to correct the extra asterisks in the last line.
(If you have "Extended Home/End" options active, you would need to take that into account (Program settings: Editor (part 1): [x ]Extended ...)
hth
vbr
Posted by: Esgrimidor | Date: 2014-01-09 23:13 | IP: IP Logged
Running to try.
I will comment
Best Regards
--
Nice program indeed
Posted by: Esgrimidor | Date: 2014-01-10 00:17 | IP: IP Logged
It worksssssssssssssss !!!!!!!!!!!!!!!!
Marvellous indeed
Thanks you very much
Best Regards
--
Nice program indeed
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