Comments in templates?
Hi all, is there a way to add "comments" in message templates? I'd like to disable parts of some of my templates temporarily without having to delete them, for testing purposes. -- Cheers Peter Who the is General Failure and what's he doing on my computer? Winamp currently playing: Chi Coltrane - Go like Elijah Current version is 1.62 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Comments in templates?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Peter, @2-Jan-2003, 23:09 +0100 (22:09 UK time) Peter Meyns [PM] in [EMAIL PROTECTED]">mid:[EMAIL PROTECTED] said: PM> is there a way to add "comments" in message templates? Yes - use the %REM macro ... like this: %REM=" This bit is a comment " PM> I'd like to disable parts of some of my templates temporarily PM> without having to delete them, for testing purposes. That will do it for you then. - -- Cheers -- .\\arck D Pearlstone -- List moderator TB! v1.62 Christmas Edition on Windows 2000 5.0.2195 Service Pack 2 ' -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1rc1-nr1 (Windows 2000) iD8DBQE+FMbgOeQkq5KdzaARAvz8AKDxKY/S/DPtEI+JX8u0z+1U66QOJQCfX8BV 4bq2a2vcZL1mHJOcQGjdcBM= =xqtn -END PGP SIGNATURE- Current version is 1.62 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Comments in templates?
Hi Marck, on Thu, 2 Jan 2003 23:10:22 +GMT (03.01.03, 00:10 +0100GMT here), you wrote in [EMAIL PROTECTED]">mid:[EMAIL PROTECTED] : PM>> is there a way to add "comments" in message templates? MDP> Yes - use the %REM macro Thank you Marck, that's the one I was looking for. :-) -- Cheers Peter 'There are two major products that come out of Berkeley; LSD and BSD Unix. We don't believe this to be a coincidence.' Winamp currently playing: - silence - Current version is 1.62 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Comments in templates?
Hi Marck, on Thu, 2 Jan 2003 23:10:22 +GMT (03.01.03, 00:10 +0100GMT here), you wrote in [EMAIL PROTECTED]">mid:[EMAIL PROTECTED] : MDP> %REM=" MDP> MDP> This bit is a comment MDP> MDP> " PM>> I'd like to disable parts of some of my templates temporarily PM>> without having to delete them, for testing purposes. MDP> That will do it for you then. Sorry, not quite, because it only works up to the next occurring double quote... I tried to comment out a RegExp. For my actual purpose it will be easier to cut it to a text file. ;-) Still I'm always interested in learning, so, is there a way to use %REM even if there are single and double quotes in the comment? (Like in HTML, where hides everything?) -- Cheers Peter Don't humanize computers. They hate that! Winamp currently playing: Soft Machine - Moon in June Current version is 1.62 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Comments in templates?
Hi Peter, On Fri, 3 Jan 2003 20:02:16 +0100 Peter Meyns <[EMAIL PROTECTED]> wrote: >> %REM=" >> >> This bit is a comment >> >> " >>> I'd like to disable parts of some of my templates temporarily >>> without having to delete them, for testing purposes. >> That will do it for you then. > Sorry, not quite, because it only works up to the next occurring > double quote... I tried to comment out a RegExp. For my actual purpose > it will be easier to cut it to a text file. ;-) > > Still I'm always interested in learning, so, is there a way to use > %REM even if there are single and double quotes in the comment? (Like > in HTML, where hides everything?) Use a delimter character not present in any "about to comment out" macros, e.g '#'. %REM=# %SUBJECT="Hello %- %SETREGEXP='^\s*([^\s])+?'%- %REGEXPBLINDMATCH='%OFromName'%- %SUBPATT='1'" # You can use anyone from a (albeit limited, nevertheless big) pool of charactes, e.g. '#', '$', '&', '_', and many more. Just give it a try :-) -- Pit Current version is 1.62 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Comments in templates?
Hi Spike, on Fri, 3 Jan 2003 14:12:09 -0500GMT (03.01.03, 20:12 +0100GMT here), you wrote in [EMAIL PROTECTED]">mid:[EMAIL PROTECTED] : PM>> I tried to comment out a RegExp. S> Use a different beginning "quote character" than any that are S> used in your section of template. That should work. I seem to S> remember someone chiding me about the various punctuation marks S> that would work as quote characters (sometime last month). Great idea. In my case the # sign works. :-)) -- Cheers Peter Press any key... no, no, no, NOT THAT ONE! Winamp currently playing: Rolling Stones - Under Assistant West Coast Promotion Man Current version is 1.62 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re: Comments in templates?
Hi Peter, on Fri, 3 Jan 2003 20:19:33 +0100GMT (03.01.03, 20:19 +0100GMT here), you wrote in [EMAIL PROTECTED]">mid:[EMAIL PROTECTED] : PP> You can use anyone from a (albeit limited, nevertheless big) pool of PP> charactes, e.g. '#', '$', '&', '_', and many more. Just give it a PP> try :-) Thank you Pit, I didn't know there were so many. *S* The hash sign # works well here. -- Cheers Peter 'Yield to temptation. It may not come your way again.' Oscar Wilde Winamp currently playing: Sophie Ellis Bextor - Get Over You Current version is 1.62 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html
Re[2]: Comments in templates?
Hello Peter Meyns, On or about Friday, January 03, 2003 at 20:02:16GMT +0100 (which was 2:02 PM in the tropics where I live) Peter Meyns replied: PM> Sorry, not quite, because it only works up to the next occurring double PM> quote... I tried to comment out a RegExp. For my actual purpose it will be PM> easier to cut it to a text file. ;-) PM> Still I'm always interested in learning, so, is there a way to use %REM PM> even if there are single and double quotes in the comment? (Like in HTML, PM> where hides everything?) Use a different beginning "quote character" than any that are used in your section of template. That should work. I seem to remember someone chiding me about the various punctuation marks that would work as quote characters (sometime last month). -- Warmest tropical wishes, Spike -- Flying in the stratosphere with The Bat! V1.61 on Windows 2000 Vers. 5 0 Build 2195 Service Pack 3 -- Current version is 1.62 | "Using TBUDL" information: http://www.silverstones.com/thebat/TBUDLInfo.html