How to disable HTML Validation in NetBeans?

I use the NetBean Compile on Save setting, and it is very convenient when I edit a single file. But when I deal with a pair (or more) of class files and switch between files, I have a problem:

The Task tab is almost useless, because it is dotted with HTML (+) error messages from dozens of HTML files in the project that are generated by some external tool. The number of HTML errors resolves any Java errors.

What I want is one of:

  • A way to tell NB to ignore the directory with HTML files ("help").
  • A way to disable HTML errors or even specify HTML2.
  • The way to filter errors is "Tasks" by file type, parent folder: all Java is under "com".

I looked through the options and properties, but did not find anything.

<pompous> Another reason I hate the IDE, which uses the Take Everything in a Folder approach .... </rant>

+ = Files are valid HTML, but probably not XHTML. In addition, half of the messages end abruptly, with something like: " Unexpected tag <TD> found, expecting one of

+6
html netbeans syntax-checking
source share
3 answers

I found the answer, or at least the one that works for me (NB 6.8, YMMV ):

  • On the Tasks tab, click the filter button on the left,
  • Select Change ...
  • In the Task List dialog box > :

    • Click New
    • Enter a value for Name (for example, "No Script Messages"),
    • Uncheck Language Tasks
    • Click OK .
  • If the filter does not work right away, you can close / open the Task or Netbeans window.

Hope this helps someone else.

+4
source share

I want to use the task list to track only the My To Do list, and it can be a real pain when Netbeans starts showing me @todos from the built-in libraries and all kinds of compilation errors that don't interest me. If your use case (I'm not interested in compilation errors, etc. in the task window), then you can do the following: - (Netbeans 7.1.2)

1) Task Window | Right Click Filter | Edit

Change the default filter. Click the default filter in the left pane. The right panel, under the "Type" tab, fixes compilation errors and problems.

2) You can go to Tools | Options | miscellanea

Go to the Tasks tab.

Here you can add / remove the To Do lines you want. You can create your own todo string or make sure that only one of them is specified (what you use)

Now apply the default filter and you will only see your @todo tasks. healthy and sweet: D

+2
source share

You can go to Tools-> Options-> Editor-> Tooltip. You can easily select the options you need.

0
source share

All Articles