HT" /> HT" /> HT"/>

In VScode, How to custom the PHP heredoc tag "HTML" to others?

38 views Asked by At

I'm using VScode + PHP Intelephense. Currently if using HTML as heredoc tag, it will highlight the HTML code:

return <<<HTML
    <input name="$name" />
    HTML;

But the following code is not highlighted:

return <<<h
    <input name="$name" />
    h;

So how can I get the code to be highlighted when using h tag?

1

There are 1 answers

1
SHARAN D On

Instead of using h as a custom identifier, use "html" as custom identifier this should would as vscode can now identify this as a html highlighter.