简体   繁体   English

jQuery代码提示和语法突出显示

[英]jQuery code hinting and syntax highlighting

When we work with Java programming language, IDEs like Netbeans and Eclipse give excellent support for code hinting and syntax highlighting ect. 当我们使用Java编程语言时,Netbeans和Eclipse等IDE为代码提示和语法突出显示等提供了出色的支持。 But how to get the same support when doing jQuery coding (in a Java project)? 但是,在进行jQuery编码时(在Java项目中)如何获得相同的支持?

For Eclipse there is a solution described in this question. 对于Eclipse, 问题中描述了一种解决方案。

For Netbeans have a look at this link . 对于Netbeans,请查看此链接

You can use aptana for example. 您可以使用aptana为例。 it can be installed as a plugin for eclipse and support various Javascript frameworks. 它可以作为eclipse插件安装,并支持各种Javascript框架。

Amateras HTML Editor Plugin for eclipse . Eclipse的 Amateras HTML编辑器插件

  • HTML / CSS / JavaScript Hilighting. HTML / CSS / JavaScript启发。
  • JavaScript code completion, outline and validation. JavaScript代码完成,概述和验证。
  • you can add any JS Libraries. 您可以添加任何JS库。 and many other features 和许多其他功能

Just download the plugin, put the jar file in ECLIPSE_HOME/dropins. 只需下载插件,然后将jar文件放在ECLIPSE_HOME / dropins中即可。

Add JQuery or any JS libraries from Project's properties window (Project -> Properties) 从项目的属性窗口(项目->属性)中添加JQuery或任何JS库

see the image 看图片

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

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