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 Types
HighlightJavaScript files (JavaScript)
- Under
Registered Patterns
press the+
button - Enter your regex pattern (for example:
*.js.scala.html
) and press OK
Cheers!