#193 PHP online comment!

open
Nigel McNie
5
2012-12-25
2011-06-25
Anonymous
No

Hi,
the Bug isn't fixed at all after the last released version. Still the php online comment isn't correct. for example the code
<?php
echo 'Text'; // echo a string

// Generate a second text
echo 'Another text';

// echo "I'm not printed as I am inside a comment";

echo 'I am printed, althought I got // in the string';

// comment running until the php end ?><?php echo "I'm not in the comment anymore"; ?>

if you test it in Geshi demo the last line is completely dead and that is wrong.

Original and correct highlighting should be looking like that:
http://tut.php-quake.net/en/comments.html#s1

Regards

Discussion