Here is exist plugin to support underscore.js templates in Intellij IDEA?
For now it looks like this:
System tags <%= is not highlighted and html tags is highlighted as wrong
Adding Underscore to a Node. Once added, underscore can be referred in any of the Node. js modules using the CommonJS syntax: var _ = require('underscore'); Now we can use the object underscore (_) to operate on objects, arrays and functions.
JavaScript support is supported in Ultimate Edition, but not in Community Edition.
Press Ctrl+Alt+S to open the IDE settings and select Languages & Frameworks | JavaScript | Libraries. On the Settings: JavaScript Libraries page that opens, click Add. The New Library dialog opens. , and choose Attach File or Attach Directory from the list.
There is a JetBrains supported IntelliJ plugin for EJS which is what you want. It is available in the Plugins Tab on Settings with the Browse Repositories. It is also available for the PHPStorm/Webstorm/RubyMine/PyCharm IntelliJ derivatives. It works pretty well, it has a few minor glitches as it is still early in development and will definitely do what you are looking for.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With