+11

PHP inside a Javascript string Highlighting bug

Mauno Lempiäinen il y a 13 ans mis à jour par James Homer il y a 12 ans 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