Aptana Warns about script and link tags when it shouldn't

风流意气都作罢 提交于 2019-12-05 00:29:23
Christian Gann

It's just a trick, and make the </script> in a new line, the warning will disappear, like this below:

<script src="js/jquery.lightbox-0.5.js">
</script>

Go to Window > Preferences > Aptana Studio > Validation > HTML.

Change the two checks by "HTML Tidy Validator" into "X". Alternatively, you could click "+" to add a regular expression to filter out the error.

Another even simpler workaround to hide the warning is to just put a space in between the tags.

<script src="js/jquery.lightbox-0.5.js"> </script>

If you find it annoying having the warning for more than just script tags you can disable it all tags

Go to Window > Preferences > Aptana Studio > Validation

Select HTML Tidy Validator then some collapse-able options will appear. Select Elements, it will show a list of option. Now go to the bottom of the list and you'll see Trim empty elements Change it from warning to ignore.

This should be fixed in version 3.2.0.201206061952: https://jira.appcelerator.org/browse/APSTUD-4724 So you can pull a nightly build or just wait for them to promote it to release.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!