配置myeclipse中XML文件的智能提示

第一步:将XML编辑器设置默认为Myeclipse edit 

window-->Preferences-->General-->Editors-->File Associations

找到*.xml,选择Myeclipse Xml editor,点default


 

第二步:配置dtd或者xsd文件

Window --> Preferences... -->MyEclipse --> Files & Editors -->XML -->XML Catalog

 

Example:

...xml catalog-->Add-->

 

Location: 选择dtd的路径如:D:\J2EE\MyEclipse Blue 7.0 M2\eclipse\plugins\com.genuitec.eclipse.j2eedt.core_6.9.200.zmyeclipse69200200809\catalog-dtd\struts-2.0.dtd(这个struts-2.0.dtd是自己手动加入进入的)


Key Type: 使用默认的Public ID


Key:  一般设置为平时xml中声明的头如:-//Apache Software Foundation//DTD Struts Configuration 2.0//EN

 

-->Ok
在打开此类型的.xml文件就有提示信息了
 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值