Added <\?(?i:php)? to the firstLineMatch for HTML documents – hoping the <? doesn’t conflict with anything else, I checked XML. Changed: U trunk/Bundles/HTML.tmbundle/Syntaxes/HTML.plist