开发者

How can I disable Javascript syntax checking in NetBeans 7.0 (Linux version for PHP)?

开发者 https://www.devze.com 2023-03-02 04:43 出处:网络
Maybe I\'m blind, but I can\'t find this option and Google doesn\'t want to help me. Sometimes NetBeans tries to chec开发者_StackOverflow社区k syntax in any file when detects some JS, but many templa

Maybe I'm blind, but I can't find this option and Google doesn't want to help me.

Sometimes NetBeans tries to chec开发者_StackOverflow社区k 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.


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 .

  1. Click Tools option in header menu and select Options from this menu.

    How can I disable Javascript syntax checking in NetBeans 7.0 (Linux version for PHP)?

  2. Select Editor from this popup.

    How can I disable Javascript syntax checking in NetBeans 7.0 (Linux version for PHP)?

  3. Now you will see submenu below . Select Hint

    How can I disable Javascript syntax checking in NetBeans 7.0 (Linux version for PHP)?

  4. 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


As far as I know you cannot really disable error checking (if that is what you're asking), if your code is broken.. fix it.

However you can disable so called "hints" for Javascript.

You can find this option in the tools menu (found under "options"). In the top menubar choose "editor" and go to the "hint" tab.

In the language dropdown select Javascript. You will see a list of warnings which you can disable.

You can however disable syntax highlighting, this is found in the same menu but under the option "fonts & colors" and the tab "highlighting". However you cannot choose for which language you want to do this.

0

精彩评论

暂无评论...
验证码 换一张
取 消