Hallo Chris,
On Mon, 15 Nov 2004 11:22:03 +GMT (15-11-2004, 12:22 +0100, where
I live), you wrote:
CW> I'd like something between %QUOTES & %TEXT. I've also tried
CW> %wrapped=#%TEXT#, but it doesn't wrap.
CW> Can someone please help?
From the macro library (http://cgi.marck.free-online.co.uk/library.php) :
-=-=-=-=-=-=-= All New Wrap for v2 -=-=-=-=-=-=-
The multi-paragraph wrapping template is a general purpose template that
can be used on it's own, or in conjunction with other templates.
To wrap and insert text from the clipboard, simply copy your text to the
clipboard, type "wrap" (no quotes) followed by in the editor.
When called from a template, the calling template should put the text to be
wrapped in %_Wrap_Text before the wrap template is called. There is also an
optional wrap length parameter, %_Wrap_Limit if a certain column length is
desired. The following is an example driver template that will wrap quoted
text to 50 characters.
=[Begin example driver]=
%_Wrap_Text="%Quotes"%-
%Rem="This line is optional"%___%_Wrap_Limit="50"%-
%QInclude(wrap)%-
=[ End example driver]=
=[Begin wrap template]=
%REM='
Multi-Paragraph wrapping routine using features from TB v2
Written June 2003 by Januk Aggarwal
Notes:
1. This template can be used alone to wrap clipboard
contents or can be used as a wrapping engine by assigning
text to the variable, %_Wrap_Text, in the driver template.
2. Wrapping limit can be set optionally by defining the
variable %_Wrap_Limit in the driver template
'%-
%-
%IF:'%_Wrap_FirstTime'='':'%-
%___%IF:"%_Wrap_Text"="":"%_Wrap_Text(%Clipboard)"%-
%___%_Wrap_FirstTime="No"'%-
%-
%IF:'%-
%SetPattRegexp="(?is-m)[^\n]+"%-
%RegexpMatch(%_Wrap_Text)'<>'':'%-
%-
%SetPattRegexp="(?is-m)^(.*?)((\n((\w{0,5}(\>\s*)+)?\s*\n)+)(.*)\s*$|\z)"%-
%RegexpBlindMatch(%_Wrap_Text)%-
%-
%_Wrap_Paragraph_1(%Subpatt(1))%-
%_Wrap_Blank_Space(%Subpatt(3))%-
%_Wrap_Remainder_Of_Text(%Subpatt(7))%-
%-
%If:"%_Wrap_Limit"="":"%-
%%Wrapped(%_Wrap_Paragraph_1)":"%-
%%Wrapped(%_Wrap_Limit, %_Wrap_Paragraph_1)"
%_Wrap_Text(%_Wrap_Remainder_of_Text)%-
%-
%QInclude(wrap)'%-
=[ End wrap template]=
--
Groetjes, Roelof
That was then, this is now.
The Bat! 3.0.2.6
Windows XP 5.1 Build 2600 Service Pack 2
1 pop3 account, server on LAN
pgpqwV65sF0A9.pgp
Description: PGP signature
Current version is 3.0.1.33 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html