`

Eclipse中安装Velocity插件

阅读更多
工具特性:
    1)用户自定义模版
    2)根据velocity的vtl和html的标签进行自动缩进
    3)语法高亮显示
    4)html标签和velocity语句的自动完成提示和内容帮助,
    5)html预览
    6)使用 ctrl+alt+鼠标点击 html的结束标签(如)或velocity的结束语句(如#end),可以跳跃到对应开始的语句,
此外鼠标停留在结束标签上方时,也会有提示指明该对应的开始语句在哪一行。
    7)使用Ctrl+alt+鼠标点击html标签, 可打开对应的标签帮助。

    Remark:第6)和7)中的快捷方式在标准介绍中是用ctrl+鼠标点击,但ctrl+鼠标点击已有其他应用占用了,试验发现需多加alt。
    安装,Velocity+Html编辑器支持3.1以上的版本,并集成在Eclipse的软件升级里,
在Eclipse的Help->Software Updates->Find and Install..->Search for new features to install,
点击“new Remote Site...”,增加 Veloeclipse,值:http://propsorter.sourceforge.net/veloeclipse,
然后选择Veloeclipse,next后,会列出在网站上可以安装的features,选择Veloeclipse,版本是2.0.2,
剩下的就是根据提示往下安装即可完成,完成后提示需要重启eclipse,选择重启。

Veloeclipse is a HTML/Velocity Editor for Eclipse, it is based on veloedit for velocity parsing and outline but adds all the html features you would d expect to find in a html editor

Features:

    * new XML support
    * new JSP(X) und JSTL support
    * new Jtidy integration
    * new convert your code to XHTML
    * new code folding
    * new compare dialog before commiting formatting or Jtidy changes
    * new code Formatting
    * User defined macros
    * Smart indentation of velocity directives ( on pressing return or when using tabs)
    * Smart indentation of html tags( on pressing return or when using tabs)
    * Syntax highlighting for both html and velocity
    * Autocompletion and Content assist for tags,directives and references (Ctrl + space in html attribute values or when opening or closing tags)
    * Preview html code
    * jumping to statring tag/directive when hovering on the closing tag/directive and then pressing Ctrl+Alt+ mouseclick
    * opening html definitions on tags when pressing Ctrl+Alt+ mouseclick

Installing:

Help -> Software Updates -> Find and Install... -> Search for new features to install -> Add Update Site... ->

Name : Veloeclipse

URL: http://propsorter.sourceforge.net/veloeclipse

PS:
如果出现如下提示:
Veloeclipse (2.0.6) requires plug-in "org.eclipse.equinox.p2.ui (1.0.1)", or compatible.
可能是你的Eclipse版本太低Eclipse3.4
你可以试下这个地址:http://veloeclipse.googlecode.com/svn/trunk/update/

顺便:dreamweaver的velocity插件,在http://velocity.gilluminate.com/中可以下载
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics