7

我曾经将 underscore.js 模板保存在 .html 文件中,但 Netbeans 给出了语法错误。

是否有用于将 underscore.js 模板与 Netbeans 集成的插件?如果没有,是否有设置 Netbeans 以识别模板的方法?

4

1 回答 1

3

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.

于 2013-10-23T18:07:11.763 回答