Re: Patch: Nested comments

From: Date: Tue, 27 Nov 2001 12:26:42 +0000
Subject: Re: Patch: Nested comments
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-71784@lists.php.net to get a copy of this message
Hartmut Holzgraefe writes:
> James Moore wrote:
> 
> > ... could we make some
> > other changes to how comments are handeled too?
> > 
> > // ?>
> > 
> > would not switch out of PHP mode,
> > 
> > /*
> > 
> > ?>
> > Html code
> > <?php
> > 
> > */
> > 
> > Would comment out the html code too..
> > 
> > I dont know if this is a good or bad idea..
> 
> 
> IMHO it is a very bad idea to mask XML processing
> instruction tags by a comment-semantic only
> available *within* these processing instructions
> 
> both variants have a WTF factor of their own,
> but at least the current one is consistent

?

This is what I get:

script.php:

<?php /* -*- mode: c++; minor-mode: font -*- */ 
error_reporting(E_ALL);
echo phpversion(); 
/*
?>
<b>Will you see this?</b>
<?php
*/
?>


Output:

4.1.0RC3




-- 
 Torben Wilson <torben@php.net>
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506



Thread (31 messages)

« previous php.dev (#71784) next »