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: http://forum.pspad.com/read.php?2,61672#msg-61675 (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 -- <http://forum.pspad.com/read.php?2,61718,61725> PSPad freeware editor http://www.pspad.com
