Created
April 8, 2019 16:46
-
-
Save beeryukov/be5d08284db49c83198b6633168a0031 to your computer and use it in GitHub Desktop.
bug with heredoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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