by atomi on Tue Jun 19, 2012 6:19 am
It is possible. You would need to either edit the javascript.tmlanguage file and declare a rule that matches <?php (.*) ?> within a string or create a new tmlanguage file that matches strings with php code in it and include the source.js.
The part you want to edit is line 409 to line 474 in Javascript.tmLanguage. Just include the rule for <php tags in both string.quoted.double.js and string.quoted.single.js.