Reply To: PHP highlight disappears

Product Compare Forums Multi-Edit Support PHP highlight disappears Reply To: PHP highlight disappears

#6801
Clay Martin
Keymaster

This exists in 9.1.4 also. And the "html" highlighting you are seeing is because of the ?> on the <?xml tag. I use here documents all the time and the html inside is not treated by Me as html, but as php. (pull the <?xml … ?> and you will see).

Also interesting is that if you paste
<?xml version="1.0" encoding="iso-8859-1"?>
above your php code it is treated like an html tag
now put a few blank line in there and type some nonsence
<?xml version="1.0"

abcde
ghijk

encoding="iso-8859-1"?>

Then add a for
<?xml version="1.0"

abced
dsksd
for ( `expression` )
{
`statement`
}

encoding="iso-8859-1"?>

So I guess Me treats any <? as php instead of just <?, <?php, or <?=

That being said, it sure would be nice to have html imbeded in php strings or here documents to be treated as html tags and thus are highlighted, right click editable, etc. :idea: