How can I disable "HTML Checking" in NetBeans?

NVRAM picture NVRAM · Feb 1, 2010 · Viewed 12.8k times · Source

I'm using NetBean's Compile on Save setting, and it's really handy when I'm editing a single file. But when I'm dealing with a pair of (or more) class files and am switching between the files, I have a problem:

The Task tab is nearly worthless since it is littered by HTML "error" messages(+) from many dozens of HTML files in the project that are generated by some external tool. The number of HTML errors swamps out any actual Java errors.

What I want is one of:

  1. A way to tell NB to ignore the directory with the HTML files ("help").
  2. A way to turn off HTML "errors" or even to specify HTML2.
  3. A way to filter "Task" errors by file type, parent folder: all Java is under "com".

I've perused the settings and properties, but found nothing that helps.

<rant> Yet another reason I hate an IDE that use the "Take Everything in the Folder" approach.... </rant>

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

Answer

NVRAM picture NVRAM · Feb 3, 2010

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

  1. In the Tasks tab, click the filter button in the left,
  2. Choose Edit...
  3. In the Task List Filter dialog:

    • Click New
    • Enter a value for Name (such as "No Script Messages"),
    • Uncheck the Scripting Language Tasks option
    • Click OK.
  4. If the filter doesn't work immediately, you may wish to close/open the Task window or Netbeans.

Hope that helps someone else.