Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
bug with heredoc
<div>
some html
</div>
<?php
$x = <<<TXT
bla bla
TXT;
?>
<!--
No autocomplete, hints, folding, etc for the rest of html in the file.
If I put "TXT" at the beginning of the line (old syntax of heredoc), then everything is OK.
-->
<div>
some html
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment