Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij IDEA support for underscore.js templates

Here is exist plugin to support underscore.js templates in Intellij IDEA?

For now it looks like this:

enter image description here

System tags <%= is not highlighted and html tags is highlighted as wrong

like image 871
Tom Avatar asked Nov 19 '13 04:11

Tom


People also ask

How do I run an underscore in JavaScript?

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.

Does IntelliJ IDEA Community Edition support JavaScript?

JavaScript support is supported in Ultimate Edition, but not in Community Edition.

How add JavaScript plugin to IntelliJ?

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.


1 Answers

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.

like image 146
Kris Erickson Avatar answered Nov 05 '22 06:11

Kris Erickson