Eclipse XML/HTML语法高亮方法

本文介绍如何安装Eclipse HTML编辑器插件,并提供配置方法以实现HTML、JSP和XML文件的高亮显示及预览功能。此外还详细说明了如何解决常见问题,例如重启后高亮显示失效等。

到官方插件下载:http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor

 

 

Download from here. Put the downloaded JAR file into ECLIPSE_HOME/plugins or ECLIPSE_HOME/dropins.

 

EclipseHTMLEditor requires GEF (GEF is optinal. If GEF isn't installed, the Palette view would be unavailable). You can install it using Eclipse Update Manager.

 

通过eclipse自带的安装/更新方式

 

 

检验是否安装成功

新建文件 -> others-> Amateras

 

 

重启后发现没有高亮,解决办法有两个:

1,暂时解决

右键文件,open-with

2,永久解决

 

安装后再Window->Preferences->General->Editors->File Associations

.html现在Amateras为默认打开

.js也是

 

 

Note: SWT Browser widget (HTMLEditor uses it for preview HTML and JSP) requires Mozilla in the Linux. See details at The SWT FAQ. Also you can disable preview in the preference dialog. Choose [Window]->[Preferences]->[Amateras] and check [Disable Preview]. Then you would be able to use HTMLEditor without Mozilla.

 

 

 

Eclipse HTML Editor is an Eclipse plugin for HTML/JSP/XML Editing. It requires JDT and GEF. It has following features.

    • HTML/JSP/XML/CSS/DTD/JavaScript Hilighting
    • HTML/JSP Preview
    • JSP/XML Validation
    • Contents Assist (HTML Tags/Attributes, XML based on DTD and JSP taglib and more)
    • Wizards for creating HTML/JSP/XML files
    • Outline View
    • Editor Preferences
    • Editor Folding
    • Web Browser (It works as an Eclipse's editor)
    • Image Viewer
    • Tag Palette
    • CSS code completion and outline
    • DTD code completion, outline and validation
    • JavaScript code completion, outline and validation

转载于:https://www.cnblogs.com/regconfi/p/4873073.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值