Welcome to our NEW forum! We invite you to sign up today
so it can grow to be a valuable resource to all Toolbox users!
String: Word wrap at function.String: Word wrap at "margin"Counter: Assign "string$"[which is far from being its intended use but necessity is the mother of invention and all that]
(Start)
HOW TO USE: Copy from Start to End, and then paste into an action.
REFERENCE : See an example of pasting at alomware.com/paste.png
0001 Action: Comment "Remove quote chevrons, rewrap then replace chevrons"
0002 Action: Abort if no clipboard text ""
0003 Alert: Ask for a choice "#Wrap to what width?~20~30~40~50~60~70"
0004 String: Assign "alert$"
0005 Action: Do next step if "string$=blank$"
0006 String: Assign "68"
0007 Counter: Assign "string$"
0008 String: Assign from clipboard text ""
0009 String: Replace text "~>>=~"
0010 String: Replace text "~>=~"
0011 String: Replace text "~~=[para]"
0012 String: Replace text "~=space$"
0013 String: Replace text "[para]=~~"
0014 String: Word wrap at "counter$"
0015 String: Replace text "~=~>space$"
0016 Clipboard: Assign text "string$"
0017 Action: Do this block if "clip$<>"""
0018 Wait: For milliseconds to pass "200"
0019 Keyboard: Paste ""
0020 Action: End of block ""
(End)







Quote from: Paul (Lead Developer) on May 04, 2026, 02:47:46 PMAm I right?
Thanks, Paul, I'll build that logic into my email requoter and see if I can break it. 
Quote from: oblivion on May 01, 2026, 09:20:45 PMI only found out tilde was a newline by accident in the help for a different commandCan this be changed, actually? The tilde character isn't exactly unique and can be used in normal text a lot. I think it should be changed to something less common. It doesn't really look like a newline character either.
(Start)
HOW TO USE: Copy from Start to End, and then paste into an action.
REFERENCE : See an example of pasting at alomware.com/paste.png
0001 String: Assign "My starting text~is rather like this~with short lines~that nevertheless form~a¬
paragraph.~~Then there's another~paragraph of text~separated from the~previous paragraph~by a blan¬
k line.~~What I want to do~is issue a rewrap~that preserves the~sense of the text~as paragraphs~sep¬
arated by line~breaks."
0002 String: Replace text "~~=[para]"
0003 String: Replace text "~= "
0004 String: Replace text "[para]=~~"
0005 String: Word wrap at "72"
0006 Alert: Show a message "string$"
(End)
Quote from: Paul (Lead Developer) on May 03, 2026, 01:14:43 PMWhy is there a line break after "one out" in the green wanted text, when there's none in the red original text? Where did that break come from?Not sure. Probably a typo.

(Start)
HOW TO USE: Copy from Start to End, and then paste into an action.
REFERENCE : See an example of pasting at alomware.com/paste.png
0001 String: Assign "> I could use that function IF I could tell it only to remove one out~> of eve¬
ry two consecutive line breaks. If I remove all of them,~> actual paragraphs delineated by a blank ¬
line between them, also get~> joined together. ~~> So what I want to achieve is"
0002 String: Replace text "~~> ="
0003 Alert: Show a message "string$"
(End)