简体   繁体   English

在Eclipse中对JavaScript进行语法检查

[英]Syntax Check for JavaScript in Eclipse

Every time I deploy JavaScript I have to check the code in http://www.javascriptlint.com/online_lint.php . 每次部署JavaScript时,我都必须检查http://www.javascriptlint.com/online_lint.php中的代码。 I would like my IDE to do proper syntax check, but none of the JS Editors I have in Eclipse/Aptana is able to warn me for a simple omitting of a ; 我希望我的IDE进行正确的语法检查,但是我在Eclipse / Aptana中使用的JS编辑器都无法警告我省略了; , a } and the like. ,a }等。 I use Aptana Studio 3 , and I have installed the Javascript Development Tools , I changed the editor in window->preferences->file associations to everything possible but still, I dont get proper syntax highlighting. 我使用Aptana Studio 3 ,并且已经安装了Javascript Development Tools ,我将window-> preferences-> file关联中的编辑器更改为所有可能的格式,但是仍然无法正确显示语法。 Does anybody know why? 有人知道为什么吗?

PS Normal syntax highlighting, like strings in green and function names in brown works well. PS正常语法高亮显示,例如绿色的字符串和棕色的函数名称,效果很好。

I'm using the Eclipse Web Tools with the JavaScript Developer Tools. 我正在将Eclipse Web Tools与JavaScript Developer Tools一起使用。 I had to " convert " my (mostly Python) project to a JavaScript project . 我不得不我的(主要是Python)项目“ 转换 ”为JavaScript项目 Now it seems to have both "natures", as I get syntax checking in both Python and JavaScript files. 现在,它似乎同时具有“性质”,因为我在Python和JavaScript文件中都进行了语法检查。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM