title: PhpStorm: write in PHP, HTML and JS in ctp file
body: <p>Using CakePHP to write code, usually *.ctp files contains PHP, HTML and JavaScript code. Unfortunately PhpStorm recognize PHP and HTML only:</p>
  
  <p><a href="https://i.stack.imgur.com/rzVlT.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rzVlT.jpg" alt="PhpStorm example"></a></p>
  
  <p>Of course if I edit a JavaScript-only file (.js) the highlight and autocompletion work.</p>
  
  <p>I tried to follow <a href="https://stackoverflow.com/questions/14877005/display-ctp-files-as-php-files-in-phpstorm">this</a> answer, but I cannot assign the same extension to multiple languages.</p>
  
  <p>How to edit all the three languages in PhpStorm?</p>