+11

PHP inside a Javascript string Highlighting bug

Mauno Lempiäinen 13 years ago updated by James Homer 13 years ago 1

Sublime doesn't recognize php tags inside a javascript string:


$addDialog = $('<div><?php echo $this->Form->input('parent_id', array('type' => 'hidden', 'div' => false));?></div>');

It highlights the above php code as string and 'cuts' highlighting the JS string when ever there is a ' chracter in php code.
+1
This is an absolute dealbreaker for me, cannot use without