I have php files well any file type in general that I would like vim to highlight here docs sections using a different syntax highlighting.
<?php
echo <<<HTMLDOC
<h1> I am highlighted as html </h1>
<<<HTMLDOC
echo 'High Lighted as PHP again '
?>
PHPvim
I have php files well any file type in general that I would like vim to highlight here docs sections using a different syntax highlighting.
<?php
echo <<<HTMLDOC
<h1> I am highlighted as html </h1>
<<<HTMLDOC
echo 'High Lighted as PHP again '
?>
Best Answer
You can tweak the colors of course but try this:
Also, if you plan on it being something more perminant in your vimrc add: