在Eclipse中编辑html,经常会在html tag中内嵌<php>等脚本语言,而eclipse默认验证会认为tag为关闭从而提示错误。虽然不影响应用,不过看着确实心烦。
我的解决办法是在html的验证中直接关闭对start tag closed的判断,至少眼不见心不烦。
具体做法:
window->preferences->Web->Html Files->Validation,在右边选择Elements的Unclosed start tags,将默认error级别调整为warning级别,则提示warning,不在是错误。
这个世界终于清静了。。。有强迫症的人,伤不起啊!