12

I'm running Aptana Studio 3, build: 3.1.3.201205292243, Win7 64bit, and I've noticed that after the last update, Aptana is warning me (annotations on the vertical) that I should "trim empty " tags, but these are normal script tags linking an external js file like this:

    <!-- Replace favicon.ico & apple-touch-icon.png in the root of your domain and delete these references -->

    <link rel="shortcut icon" href="/favicon.ico" />
    <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
    <script src="js/jquery.lightbox-0.5.js"></script>
    <script src="js/flickrapi3.js"></script>
    <link rel="stylesheet" href="css/jquery.lightbox-0.5.css" />
    <link rel="stylesheet" href="css/flickrStyle.css" />

Furthermore, it also warns me about the rel attribute inside the link tag as having an "invalid value" and yet these are the defaults included in the HTML5 template Aptana bundles with the release.

I've checked in Preferences>Editors>Text Editors and I see annotation settings but I don't see where I can correct these completely off the wall warnings. Am I missing something entirely here? Are these known bugs? How do I correct these issue?

4

5 回答 5

18

转到窗口 > 首选项 > Aptana Studio > 验证 > HTML。

将“HTML Tidy Validator”的两项检查改为“X”。或者,您可以单击“+”添加正则表达式以过滤掉错误。

于 2012-06-06T21:18:40.127 回答
7

这只是一个技巧,并</script>在一个新的行中,警告将消失,如下所示:

<script src="js/jquery.lightbox-0.5.js">
</script>
于 2012-06-03T16:53:25.373 回答
6

隐藏警告的另一个更简单的解决方法是在标签之间放置一个空格。

<script src="js/jquery.lightbox-0.5.js"> </script>
于 2012-06-04T20:14:53.703 回答
3

如果您发现警告不仅仅是脚本标签很烦人,您可以禁用它所有标签

转到窗口 > 首选项 > Aptana Studio > 验证

选择HTML Tidy Validator然后会出现一些可折叠的选项。选择Elements,它将显示选项列表。现在转到列表底部,您将看到将Trim empty elements其从更改warningignore

于 2013-02-14T23:02:55.650 回答
1

这应该在版本 3.2.0.201206061952 中得到修复: https ://jira.appcelerator.org/browse/APSTUD-4724 所以你可以拉一个夜间构建或者只是等待他们推广它来发布。

于 2012-06-22T19:53:03.023 回答