Hello Daniel, On Monday, June 17, 2002 at 14:53 GMT +0200, a creature mimicking Daniel van Rooijen [CopyCats] [DVR] wrote:
DVR> Quite often, I want to reformat all paragraphs at once. Or all DVR> paragraphs that I have selected with the mouse. I can't find a DVR> way to do that, though. Well, it isn't exactly the solution you asked for, but you can use a quick template to approximate the job. You actually need two quick templates: ====[QT wrap]==== %COMMENT="%CLIPBOARD"%- %QINCLUDE="wrap2" %COMMENT="" ====[End]==== ====[QT wrap2]==== %IF:'%- %SETPATTREGEXP="(?is-m)[^\n]+"%- %REGEXPMATCH="%COMMENT"'<>'':'%- %- %WRAPPED=_%SETPATTREGEXP="(?is-m)^(.*?)(\n((\w{0,5}(\>\s*)+)?\n){1,}(.*)$|\z)"%- %-%-%-%-%-%REGEXPBLINDMATCH="%COMMENT"%- %-%-%-%-%-%SUBPATT="1"_ %- %COMMENT=_%SETPATTREGEXP="(?is-m)^.*?(\n((\w{0,5}(\>\s*)+)?\n){1,}(.*)$|\z)"%- %-%-%-%-%-%REGEXPBLINDMATCH="%COMMENT"%- %-%-%-%-%-%SUBPATT="5"_ %- %QINCLUDE="wrap2"' ====[End]==== Note: I would have just posted the link to the original version* in the archive, but these templates have been updated to work properly with the current TB release (1.60q). * <http://www.mail-archive.com/tbtech@thebat.dutaint.com/msg01525.html> So with this set of templates, you'd select the paragraphs to be reformatted, press <ctrl>-<x>, type "wrap" (without the quotes) then <ctrl>-<space>. That's it. Note that this template system will also work on quoted text. DVR> When I mark the paragraphs and then press Alt-L, all the DVR> paragraphs are thrown together into big one illegible blob. Yes, but while this may seem like a nuisance, there is a benefit. When you select text then press <alt>-<L>, TB assumes that the selected text is one paragraph. TB *only* reformats those lines. That means that if you want to reformat one entry in a list, you can select just that entry without ruining the list. -- Thanks for writing, Januk Aggarwal "I refuse to answer that question on the grounds that I don't know the answer." -Douglas Adams ________________________________________________________ Current Ver: 1.60q FAQ : http://faq.thebat.dutaint.com Unsubscribe: mailto:[EMAIL PROTECTED] Archives : http://tbudl.thebat.dutaint.com Moderators : mailto:[EMAIL PROTECTED] TBTech List: mailto:[EMAIL PROTECTED] Bug Reports: https://www.ritlabs.com/bt/