+11

PHP inside a Javascript string Highlighting bug

Mauno Lempiäinen 13 year бұрын updated by James Homer 12 year бұрын 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.