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 <[EMAIL PROTECTED]>
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to