很奇怪,作为Eclipse这么“大”的IDE居然不自带HTML编辑器,所以自己找了个Eclipse HTML Editor Plugin。
http://amateras.sourceforge.jp/cgi-bin/fswiki_en/wiki.cgi?page=EclipseHTMLEditor
按照官方的步骤安装GEF(Graphical Editing Framework)
Use the Eclipse Update Manager
1. Go to the Help / Software Updates / Find and Install..."
2. Choose the "Search for new features to install" option
3. Add one of the update sites below.
Release site: http://download.eclipse.org/tools/gef/update-site/releases/site.xml
Milestone site: http://download.eclipse.org/tools/gef/update-site/milestones/site.xml
Update site for integration builds: http://download.eclipse.org/tools/gef/update-site/integrations/site.xml
安装完GEF之后就可以下载EclipseHTMLEditor了,将下载的jar文件放在/usr/lib/eclipse/plugins/目录下,重启就可以了。 之后就可以在Eclipse里直接编辑HTML了。