问题描述
也许我是盲目的,但是我找不到这个选项,Google也不想帮助我。
Maybe I'm blind, but I can't find this option and Google doesn't want to help me.
有时NetBeans会尝试检查任何语法检测到一些JS的文件,但许多模板框架/库将JS与PHP或特殊标签放在一起,导致NetBeans在文件中引发语法错误。
Sometimes NetBeans tries to check syntax in any file when detects some JS, but many templating frameworks/libraries put JS with PHP or special tags, causing that NetBeans throws syntax error in the file.
推荐答案
我正在使用 netbeans 8.1 ,我可以通过这些步骤轻松管理这类选项。我认为它也适用于 netbeans 7 。
I am using netbeans 8.1 and I can easily manage this type of options by these steps. I think it is also available for netbeans 7 .
-
点击工具标题菜单中的选项,然后从此菜单中选择选项。
Click Tools option in header menu and select Options from this menu.
从此弹出框中选择编辑。
现在您将看到下面的子菜单。选择提示
Now you will see submenu below . Select Hint
为您选择语言Javascript,然后取消选中您不需要的所有选项并保存。
Select language for you Javascript and then uncheck all options that you don't need and save.
这种方式您可以为所有语言启用或禁用语法检查选项。您还可以管理格式,代码折叠,拼写检查等
This way to you can enable or disable syntax checking option for all languages. and you can also manage formatting, code folding, spelling checker etc
这篇关于如何在NetBeans 7.0(适用于PHP的Linux版本)中禁用Javascript语法检查?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!