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