Hi,

JA> In the tradition of Carsten's recursive quick templates, I present my
JA> templates to get the %WRAPPED macro to work on multiple paragraphs.

it is great, but if is this possible by quick templates with regexp,
it could not be too hard for Stef to implement it directly to TB's
Editor. Or am I wrong?


> =-=-=-=-=-=-[ QT: wrap ]-=-=-=-=-=-=
> %COMMENT="%CLIPBOARD"%-
> %QINCLUDE="wrap2"
> %COMMENT=""
> =-=-=-=-=-=-[ QT: wrap ]-=-=-=-=-=-=
> 
> The template's recursive engine:
> 
> =-=-=-=-=-=-[ QT: wrap2 ]-=-=-=-=-=-=
> %IF:'%-
> %SETPATTREGEXP="(?is-m)[^\n]+"%-
> %REGEXPMATCH="%COMMENT"'<>'':'%-
> %-
> %WRAPPED=_%-
> %SETPATTREGEXP="(?is-m)^(.*?)(\n{2,}(.*)$|\z)"%-
> %REGEXPBLINDMATCH="%COMMENT"%-
> %SUBPATT="1"_
> %-
> %COMMENT=_%-
> %SETPATTREGEXP="(?is-m)^.*?(\n{2,}(.*)$|\z)"%-
> %REGEXPBLINDMATCH="%COMMENT"%-
> %SUBPATT="2"_%-
> %-
> %QINCLUDE="wrap2"'
> =-=-=-=-=-=-[ QT: wrap2 ]-=-=-=-=-=-=

-- 

Marek Mikus
Czech Support of The Bat!
http://www.thebat.ipex.cz


-- 
______________________________________________________
Archives   : http://tbtech.thebat.dutaint.com
Moderators : mailto:[EMAIL PROTECTED]
Unsubscribe: mailto:[EMAIL PROTECTED]

Reply via email to