I recently upgraded my Eclipse to Ganymede, version 3.4.2.
Now it's giving me a ton of errors on the HTML in my JSPs for things like parameter values with no quotes and missing end tags. These pages work fine because the cases where I leave these things out are cases where they're optional. We can argue about whether I should include them, but right now I'm trying to make simple updates to a page and I don't want to revisit the entire page. But it's hard to pick out the real errors when all these style warnings are flagged as errors.
Is there a way to turn this off?
I found Window > Preferences > Web > HTML > Validation that lists errors like these and changed them from "Error" to "Ignore", but it made no difference. Apparently this isn't what controls it.
(Yes, yes, I know, the style purists will say that I should include all the optional quotes and end tags. I often don't because I see them as clutter. I really don't understand the philosophy that says, "Typing in this text will make absolutely no functional difference, it doesn't do anything at all, but you should do it because, well, because I said so.")
It isn't obvious on how to use the eclipse compiler to ignore errors. i.e. Go to Settings > Compiler > Java Compiler, use the Eclipse compiler and specify "-proceedOnError" as a command line parameter.
Eclipse HTML Editor is an Eclipse plugin for HTML , JSP , and XML editing and has the following features: HTML , JSP , XML , CSS , DTD , and JavaScript colored highlighting.
Have you tried:
- Click
Window > Preferences
. A Preferences window appears.- In the Preferences window, click
Workbench > Editors
.- Select one of the following options:
- To turn off real-time syntax validation, click
Structured Text Editor
and uncheck theAnalyze annotations while typing
box.- To control other annotation settings, click
Annotations
and select your annotation preferences.- Click OK to save your preferences and close the page.
From this Ganymede help page.
Another method: Window > Preferences > Validation
. Then uncheck the Manual
and Build
boxes next to HTML Syntax Validator
and JSP Syntax Validator
.
You may need to go into Windows->Preferences->Validation and check 'Allow projects to override these preference settings'.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With