简体   繁体   中英

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

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

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.

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.

    在此输入图像描述

  2. Select Editor from this popup.

    从Pop中选择Editor

  3. Now you will see submenu below . Select Hint

    暗示

  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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM