The above answer is slightly outdated. You can do the same in IntelliJ 14 by doing the following:
- Go to
Preferences(Mac OSX : Cmd + Comma) - Under
Editor -> File Types - In the
Recognized File TypesHighlightJavaScript files (JavaScript) - Under
Registered Patternspress the+button - Enter your regex pattern (for example:
*.js.scala.html) and press OK
Cheers!