转到 Help-> Install New Software 并单击 Add. 。
在“名称”字段中写入“颜色”,在“位置”字段中写入“食色”http://Colorer.sf.net/eclipsecolorer/
选择您刚刚在 with: 组合框中添加的条目,等待组件列表填充,然后单击 Select All
单击 Next 并按照说明操作
安装完插件后,关闭 Eclipse。
将您的人权委员会文件复制到
[ EclipseFolder ]插件 net.sf.color _ 0.9.9 color hrc auto type
[ EclipseFolder ] =/home/myusername/. eclipse
使用您喜欢的文本编辑器打开
[ EclipseFolder ]插件 net.sf.color _ 0.9.9 color hrc auto empty.hrc
添加适当的原型元素:
<?xml version="1.0" encoding='Windows-1251'?>
<!DOCTYPE hrc PUBLIC
"-//Cail Lomecb//DTD Colorer HRC take5//EN"
"http://colorer.sf.net/2003/hrc.dtd"
>
<hrc version="take5" xmlns="http://colorer.sf.net/2003/hrc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://colorer.sf.net/2003/hrc http://colorer.sf.net/2003/hrc.xsd"
><annotation><documentation>
'auto' is a place for include
to colorer your own HRCs
</documentation></annotation>
<prototype name="d" group="main" description="D">
<location link="types/d.hrc"/>
<filename>/\.(d)$/i</filename>
</prototype>
</hrc>