Carsten - thanks for the help!
>> Your bqq template does not put the ",-----[ from: ]" leader nor the
>> "`------" trailer like the original boxquotes template. I tried to
>> modify yours to include those (by copying how the original bq
>> template did it), but for some reason it adds garbage at the end of
>> the "`-----", a bunch of +, :, and |.
CT> Okay, with these 3 modifications your quick template should work:
>> ___________________________________________________________________
>> %REM=' bq - Paste as BQQ
>> original written by Carsten Thoenges, December 2002
>> '%-
>> %If:+%-
>> %-%SetPattRegExp=&\A(ct,6567,,,TOH)&%-
>> %-%RegExpMatch=&%Comment&+<>+ct,6567,,,TOH+%-
>> :+%-
>> %-,----- [ %OFROMNAME said: ]%-
CT> ��
CT> %-,----- [ %OFROMNAME said: ]
This one I left as it was originally, otherwise it adds a line of
empty space.
>> %-%COMMENT='%TEXT'%-
>> %-%COMMENT='%QINCLUDE="wrap2"'%-
>> %-%IF:"%SETPATTREGEXP='(?is).*\n\z'%REGEXPMATCH='%COMMENT'"=""%-
>> :"%-
>> %-%-%COMMENT='%COMMENT
>> '"%-
>> %-%Comment=&ct,6567,,,TOH%COMMENT&%QInclude=&bq&+%-
CT> �
CT> %-%Comment=&ct,6567,,,TOH%COMMENT&%QInclude=&bq&%-
Worked perfect!
>> %-`-------+%-
>> :+%-
>> %-%IF:"%-
>> %-%SETPATTREGEXP='(?is)\A.*?\n(.*)'%-
>> %-%REGEXPMATCH='%COMMENT'"<>""%-
>> :"%-
>> %-%SETPATTREGEXP='(?is)\Act,6567,,,TOH(.*?)\n'%-
>> | %REGEXPMATCH='%COMMENT'%-
CT> ��
CT> | %REGEXPMATCH='%COMMENT'
Also worked perfect!
>> %-
>> %-%COMMENT='ct,6567,,,TOH%-
>> %-%SETPATTREGEXP=_(?is)\Act,6567,,,TOH.*?\n(.*)_%-
>> %-%REGEXPMATCH=_%COMMENT_'%-
>> %-%QINCLUDE='bq'"%-
>> :"| %SETPATTREGEXP=&\Act,6567,,,TOH(.*)&%-
>> %-%-%REGEXPMATCH=&%COMMENT&%-
>> %-%-%COMMENT=''"%-
>> +%-
CT> BTW when you change the Quick Template's name (I guess you want to
CT> keep the original bq) don't forget to adjust the %QIncludes to the
CT> new name.
Here, though, I found that if I made the %qincludes to be for "bqq"
(the name I've given to this new template), it didn't work, but if I
keep them as "bq", they work fine. I know very little about regex, but
this seems really odd that the new version (bqq) calls the old version
(bq), and not itself. But I used qinclude to call bqq, and when i did
so, the pasted text came out full of garbage, missing text, and
otherwise messed up.
Now - does anyone know how to get the text to wrap properly like this,
but keep the original spaces between the paragraphs instead of lumping
everything together into one long, orgiastic paragraph?
Thanks again!
Just for reference, here's the whole template now as I have it:
----------------------------------------------------------------------
%REM=' bqq - Paste as BQQ
original written by Carsten Thoenges, December 2002
'%-
%If:+%-
%-%SetPattRegExp=&\A(ct,6567,,,TOH)&%-
%-%RegExpMatch=&%Comment&+<>+ct,6567,,,TOH+%-
:+%-
%-,----- [ %OFROMNAME said: ]%-
%-%COMMENT='%TEXT'%-
%-%COMMENT='%QINCLUDE="wrap2"'%-
%-%IF:"%SETPATTREGEXP='(?is).*\n\z'%REGEXPMATCH='%COMMENT'"=""%-
:"%-
%-%-%COMMENT='%COMMENT
'"%-
%-%Comment=&ct,6567,,,TOH%COMMENT&%QInclude=&bq&%-
%-`-------+%-
:+%-
%-%IF:"%-
%-%SETPATTREGEXP='(?is)\A.*?\n(.*)'%-
%-%REGEXPMATCH='%COMMENT'"<>""%-
:"%-
%-%SETPATTREGEXP='(?is)\Act,6567,,,TOH(.*?)\n'%-
| %REGEXPMATCH='%COMMENT'
%-
%-%COMMENT='ct,6567,,,TOH%-
%-%SETPATTREGEXP=_(?is)\Act,6567,,,TOH.*?\n(.*)_%-
%-%REGEXPMATCH=_%COMMENT_'%-
%-%QINCLUDE='bq'"%-
:"| %SETPATTREGEXP=&\Act,6567,,,TOH(.*)&%-
%-%-%REGEXPMATCH=&%COMMENT&%-
%-%-%COMMENT=''"%-
+%
----------------------------------------------------------------------
--
David
There are two things to aim at in life: first, to get what you want;
and, after that, to enjoy it. Only the wisest of mankind achieve the
second. � Logan Pearsall Smith
________________________________________________________
http://www.silverstones.com/thebat/TBUDLInfo.html