I'm sure this must be possible, but I can't seem to figure out how to set this up (PhpStorm 8.0.1):
var label = '<?php echo $this->translate('My Label Text');?>';
I'd expect PHPStorm to recognice this language injection, but it doesn't... It treats is as a literal string, which is OK for variables, but when I start putting conditional PHP statements in, the highlighting all goes to pan (see screenshot)
Advice appreciated! Many thanks.
Attachment(s):Screen Shot 2014-09-22 at 11.28.00.png