Skip to content

Instantly share code, notes, and snippets.

@beeryukov
Created April 8, 2019 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beeryukov/be5d08284db49c83198b6633168a0031 to your computer and use it in GitHub Desktop.
Save beeryukov/be5d08284db49c83198b6633168a0031 to your computer and use it in GitHub Desktop.
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