+1

HTML Comments within PHP Heredoc

Michael Dougherty 13 år siden opdateret 13 år siden 0
in a PHP file, ST properly switches to HTML syntax highlighting in the below Heredoc string:

$text = <<<HTML
<a href="whatever">blah</a>
<img src="yeah-right" />
HTML

However, if I try to comment a line with Cmd+/ it incorrectly adds PHP comments instead of HTML comments


Kundesupport af UserEcho