如何使用简单的语法突出显示查看 XML 文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4590119/
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-06 13:29:11  来源:igfitidea点击:

How do I view XML files with simple syntax highlighting?

xmleclipse

提问by Kurru

I'm trying to view an XML file in Eclipse, but I'm not enjoying their tree structure view for the XML data. I was hoping there'd be a simple highlighted text view for it but I couldn't find it.

我正在尝试在 Eclipse 中查看 XML 文件,但我不喜欢他们的 XML 数据树结构视图。我希望有一个简单的突出显示的文本视图,但我找不到它。

Closest I got was the plain text view which was nearly it.

我得到的最接近的是纯文本视图,几乎是它。

Is there such a view? If so, where is it?

有这样的看法吗?如果有,它在哪里?

回答by Konstantin Komissarchik

Look at the bottom of the editor. There should be a source tab that will give you the view you are looking for.

查看编辑器的底部。应该有一个源选项卡,可以为您提供所需的视图。

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明