I am using Intellij to create a Play2 project. I installed support for Play2 and Scala plugins. But when I try to format index.scala.html using the IDE, all the JavaScript code in the template gets corrupted (indented). I renamed the file to index.html and tried to format it. Then it turns out to be correctly formatted. How to solve this problem?
Prabhath suminda
source share