如何在Netbeans 8中启用*.handlebars文件的语法高亮功能

8
也许这个问题看起来有些愚蠢,但我需要一些帮助。我从Netbeans 7.1升级到Netbeans 8,以获得更多的功能,并参与一个使用handlebars的项目。问题是我找不到突出显示此文件的方法。我尝试了转到工具->选项->其他->文件并更改文件扩展名和关联的文件类型,但没有结果。
你能帮我解决这个问题或给我支持Web编辑器handlebars的其他替代方案吗?
谢谢!
1个回答

13

我点击了这个链接,并应用了HTML的MIME类型,工作得很好。

以下是网页上的说明:

Go to Netbeans -> Preferences -> Miscellaneous -> Files on a Mac
or Tools -> Options -> Miscellaneous -> Files on Windows

Leave "File Extensions" as "< Choose the extension >" and click the "New" button.

Type in the extension without the dot.

Select the appropriate file type from the "Associated file type (MIME)" drop down box.

http://www.electrictoolbox.com/netbeans-syntax-highlighting-file-extensions/


我在“关联文件类型(MIME)”下拉框中没有看到适当的文件类型,即“text/x-handlebars-template”。有什么建议吗? - chikitin
也许自2014年回答以来,Netbeans的最新版本已经发生了变化。 - Giancarlo Corzo

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接