最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin1浏览0评论

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.

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.

Share Improve this question edited Jan 9, 2014 at 17:27 mchurichi asked Apr 29, 2011 at 17:25 mchurichimchurichi 3932 silver badges12 bronze badges 2
  • Hello, I know this question is somewhat old and maybe you're no longer looking for a reply to this. Have you tried out the "Ignored folders" tab inside of your project properties? – César Commented Mar 16, 2016 at 10:33
  • @César you are right, even I'm not using NetBeans anymore. The problem with your solution is that I wanted to work on those files, and "Ignored Folders" will hide the files from the UI. – mchurichi Commented Mar 28, 2016 at 12:26
Add a ment  | 

2 Answers 2

Reset to default 1

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.

  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.

发布评论

评论列表(0)

  1. 暂无评论