ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > Finished Programs

SOLVED: Grouping (Skwire)

(1/1)

Contro:
I would like a variation of contro text tool.
I have a script for processing paragraphs according to this simple rule : Each paragraph is preceeded by an asterisk (*) and end with an asterisk (*)
Usually i do this work manually .
But now, similar to contro text tool, is automated in base to a number of lines.
For example each four lines insert an * in the beginning of the first line, and other * at the end of the last line.
The lines are proposed similar to contro text tool
The same module may be useful. Only that now the purpose is not eliminate the rest of the lines (and remain only the first of each grouping) . Now the purpose is group the lines with * .

By example :
Select the first line to be group.
Select the number additional to the first one to be grouped. suppose is three.

Then the program will put an * at the beginning of the first line, and at the end of the fourth line.
Then an * at the beginning of the fifth line, and at the end of the eight line. And so on until the final

You can make a widow if the last group don't have four lines.

Best Regards
 :-*

Contro:
Skwire I think we can close this post.

I try in the pspad forum and with a macro is possible to group the way i wanted :

this is the macro in the pspad context (for more information go to pspad forum english section)

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][End]*[DownArrow]

Then press Ctrl+F5 again and enter the macro name like asterisk_3_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 ...)


Goes well with those instructions.


Best Regards
I am using intensivily too the Contro Text Tool

 :tellme: :tellme: :tellme:

Navigation

[0] Message Index

Go to full version