原文:
Indeed, the validation should be skipped automatically when embedded PHP script is used for the src value. We will fix this in a future release. Until then the workaround is to switch off the validation for web resources:
1. Go to Window > Preferences from the main menu.
2. Go to the Validation preference page.
3. Uncheck the checkboxes for Web Resources Validation.
4. Click OK.
The code will be re-validated and the error marker should disappear. If there is still an error marker, try restarting the IDE.
如图所示,只需要把validation中的web resources validator中的勾去掉即可。总的来说还是英文文档有用啊