Re: [SMARTY-DEV] nested comments

From: Date: Thu, 11 Dec 2003 16:13:19 +0000
Subject: Re: [SMARTY-DEV] nested comments
References: 1 2 3 4  Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1970@lists.php.net to get a copy of this message
We could introduce a new commenting syntax for commenting large blocks of code, including normal comments. I think the syntax would most intuitively be {** **}. Example: {** ... some stuff ... {* normal comment *} ... some other stuff ... {* normal comment *} ... some more stuff ... **} This would imply that you can't nest {** **} tags, but you could have several sets of them in one template. This is untested, but should be possible. It might impact things like line numbering for error messages. Comments have always been a stickler in the tokenizer. Monte On Thu, 2003-12-11 at 04:10, Konstantin A. Pelepelin wrote: > On Wed, 10 Dec 2003 10:28:21 +0100, Messju Mohr <messju@lammfellpuschen.de> wrote: > > > of course comments are not the right way the switch parts of the > > template on and of. use {if 0} or the like. > > Sometimes it is very difficult to find appropriate /if when a template has many nested > if's. > Simple syntax highlighting rules can be added to editor when using {* *} > So I use {* *} to switch off parts of template. > I'd like nested comments very much. > > Just my 2 cents. > > Konstantin

« previous php.smarty.dev (#1970) next »