我曾经将 underscore.js 模板保存在 .html 文件中,但 Netbeans 给出了语法错误。
是否有用于将 underscore.js 模板与 Netbeans 集成的插件?如果没有,是否有设置 Netbeans 以识别模板的方法?
我曾经将 underscore.js 模板保存在 .html 文件中,但 Netbeans 给出了语法错误。
是否有用于将 underscore.js 模板与 Netbeans 集成的插件?如果没有,是否有设置 Netbeans 以识别模板的方法?
There is no NetBeans plugin that supports underscore.js templating syntax. There is a way to make NetBeans recognize any custom language, and it is long and difficult. Outlined here: http://wiki.netbeans.org/SyntaxColoringANTLR
The solution I found, thanks to Thomas Davis from http://backbonetutorials.com/, is using Sublime text editor, which does recognize underscore.js templating syntax, more or less well.