For legacy reasons I'm stuck delimiting PHP code blocks via:
<script language="PHP">
as opposed to:
<?php
This is a valid way of opening a PHP block (see "Escaping from HTML on php.net"); the only problem is, that VIM interprets this as JavaScript, forcing me to execute :set ft=php each time, if I want it to highlight and indent my code according to PHP specific rules.
I could map :set ft=php to a shortcut but that's still rather inconvenient. Does anyone know of a way to automate this?
Thanks!
<script language="PHP>. While the syntax highlighting appears to be JavaScript,:set ft?reports"filetype=html".