Aptana //novalidate 选项

发布于 2024-12-17 11:33:40 字数 543 浏览 3 评论 0原文

我正在使用 Eclipse(使用 Aptana 插件)编写Processing.js 代码,我对 Javascript 首选项中的这个选项有点困惑:

在 //novalidate 评论中启用错误过滤

使用Processing.js允许我(有时强迫我 - 例如,它使用Java“void”而不是Javascript“函数”作为方法声明)对JavaScript语法做一些时髦的事情验证器不喜欢。我收到了一堆错误消息,我想将其消除,但我宁愿使用 Eclipse 编辑器,因为我网站的其余部分都在那里。

我尝试在同一行的分号之前、之后、之后,甚至在文件的开头粘贴“//novalidate”,但它没有效果。我还尝试在“首选项”->“添加排除规则”验证,但这似乎没有做任何事情,关闭问题 -> 中的“Javascript问题”也没有做任何事情。配置内容...(我想避免这样做,因为我在网站的其他地方执行常规的 javascript)。我在 Aptana 网站上找不到“//novalidate”的任何文档 - 有人知道如何正确使用它吗?

提前致谢。

I'm writing Processing.js code using Eclipse (with the Aptana plugin), and I'm a little confused by this option in the Javascript preferences:

Enable error filtering inside //novalidate comments

Using Processing.js allows me (and occasionally forces me - for example, it uses the Java "void" instead of the Javascript "function" for method declarations) to do some funky things to javascript syntax that the validator doesn't like. I've got a bunch of error messages that I'd like to silence, but I'd rather use the Eclipse editor because the rest of my site is there.

I've tried sticking "//novalidate" before, after, after the semicolon on the same line, and even at the beginning of the file, but it has no effect. I've also tried adding exclude rules in Preferences -> Validation, but that doesn't seem to do anything, nor does turning off "Javascript problems" in Problems -> Configure Contents... (which I'd like to avoid, because I'm doing regular javascript elsewhere on my site). I can't find any documentation for "//novalidate" on the Aptana website - does anyone have any idea how to use this properly?

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

固执像三岁 2024-12-24 11:33:41

您是否尝试过 Aptana 支持方法?

Have you tried Aptana Support methods?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文