How do I get HTML syntax highlighting inside PHP strings & heredoc syntax?

html, php, sublimetext2, syntax-highlighting

Solution

Name your heredocs after the language you are using. This will syntax highlight in many text editors, including Sublime Text.

For example:

echo <<<HTML
<!-- put HTML here and it will have syntax highlighting -->
HTML;

Problem

I'm using Sublime Text with the Pastels on Dark theme. My language of choice is PHP. How can I get HTML syntax highlighting inside PHP strings & heredoc syntax?

Original source