Eclipse Kepler 中的 XML 编辑器不显示颜色

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/18085323/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:02:33  来源:igfitidea点击:

XML Editor in Eclipse Kepler is not displayed with color

xmleclipseidesettings

提问by Vivek

I am really sorry if the question is silly.

如果问题很愚蠢,我真的很抱歉。

I have used Eclipse Galileo,Indigo & Juno and now trying Eclipse Kepler for the development. All the previous versions displayed me the xml syntax coloured wheres in kepler it's not so. Am i missing any settings or configuration? Thanks for your time.

我使用过 Eclipse Galileo、Indigo 和 Juno,现在尝试使用 Eclipse Kepler 进行开发。所有以前的版本都向我展示了 xml 语法,在 kepler 中的彩色哪里不是这样。我是否缺少任何设置或配置?谢谢你的时间。

enter image description here

在此处输入图片说明

回答by Vivek

Thanks for all your answers, i did this to solve.

感谢您的所有回答,我这样做是为了解决。

Actually there is not a xml editor come along with Eclipse Kepler. So i've just gone into

实际上,Eclipse Kepler 并没有附带 xml 编辑器。所以我刚刚进入

  • Help
  • Eclipse MarketPlace
  • Search for xml editor
  • Find Rinzo XML Editor
  • Install it
  • 帮助
  • 日食市场
  • 搜索xml 编辑器
  • 查找Rinzo XML 编辑器
  • 安装它

And then to make it as default one

然后将其设为默认值

  • Navigate to Menu Window
  • Click on Preferences--> General
  • Navigate to Editors
  • And click on File Associations
  • If you find *.xml select Rinzo xml editor in the Associated Editors
  • otherwise Click on Add on the right side of File Types
  • type "*.xml" without quotes and click on add
  • 导航到菜单窗口
  • 单击首选项-->常规
  • 导航到编辑器
  • 然后点击文件关联
  • 如果你发现 *.xml 在 Associated Editors 中选择 Rinzo xml editor
  • 否则单击文件类型右侧的添加
  • 键入不带引号的“ *.xml”,然后单击添加

That's doing a good job for me.

这对我来说做得很好。

回答by Konstantin Komissarchik

If you do not see XML Editor option under Open With menu, you don't have XML Editor installed. Either get a different Eclipse package (such as Eclipse IDE for Java EE Developers) or install XML Editor from Kepler update site.

如果在“打开方式”菜单下没有看到 XML 编辑器选项,则说明您没有安装 XML 编辑器。获取不同的 Eclipse 包(例如 Java EE 开发人员的 Eclipse IDE)或从 Kepler 更新站点安装 XML 编辑器。

http://download.eclipse.org/releases/kepler/

http://download.eclipse.org/releases/kepler/

Just search for XML when the big list of features comes up.

当出现大量功能时,只需搜索 XML。

回答by mdl

You might have the file open with the Eclipse text editor, not the XML editor. I am not using Kepler, but in previous versions you simply

您可以使用 Eclipse 文本编辑器而不是 XML 编辑器打开文件。我没有使用开普勒,但在以前的版本中你只是

right click the file > Open With > XML Editor

回答by Laxman

Color Themehighlights the xml syntax based on the theme you choose.

颜色主题根据您选择的主题突出显示 xml 语法。