How to correct identify js code in CakePHP project with PhpStorm IDE?
<p>I am using Phpstorm as IDE in a CakePHP 3.0 project and the plugin CakeStorm. I would like to treat code inside script blocks as javascript code but the IDE doesnt identify with the correct syntax.</p>

<pre><code>&lt;?php $this-&gt;start('script') ?&gt;
  //javascript code here ...
&lt;?php $this-&gt;end() ?&gt;
</code></pre>

<p>I know there is a feature called "language injection" in PhpStorm that could solve the problem but couldnt figure out a way to achieve this.</p>