Something I experienced which no doubt will help someone . . .
In my editor, this will syntax highlight HTML and the $comment:
$html = <<<"EOD"
<b>$comment</b>
EOD;
Using this shows all the same colour:
$html = <<<EOD
<b>$comment</b>
EOD;
making it a lot easier to work with