Eclipse - 最好的带有语法着色的 XML 编辑器?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/6402098/
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
Eclipse - best XML editor with syntax coloring?
提问by Dylan
I just installed Eclipse Indigo. Then I installed the Aptana Studio 3 plugin, but it was very slow , it kept refreshing my entire project (I have a very big project with SVN), so I uninstalled that.
我刚刚安装了 Eclipse Indigo。然后我安装了 Aptana Studio 3 插件,但是它很慢,它不断刷新我的整个项目(我有一个非常大的 SVN 项目),所以我卸载了它。
But now I somehow have no decent XML editor left. I tried out Oxygen, but that one was much too bloated, and not free, I think. I just need a simple text editor with syntax coloring and bracket-matching.
但是现在我不知何故没有像样的 XML 编辑器了。我尝试了 Oxygen,但我认为那个太臃肿了,而且不是免费的。我只需要一个带有语法着色和括号匹配的简单文本编辑器。
What is the default xml-editor in Indigo, and how do I get that one back ?
Indigo 中的默认 xml 编辑器是什么,我该如何找回它?
UPDATE:
更新:
Solved.... I was editing 'tpl' files (which are basically xml-files in my application) and those are not associated at default, I linked them to the default HTML-editor and that one suits my needs...
解决了....我正在编辑'tpl'文件(在我的应用程序中基本上是xml文件)并且这些文件在默认情况下没有关联,我将它们链接到默认的HTML编辑器并且那个适合我的需要......
采纳答案by Dylan
The default HTML editor in Eclipse has good syntax coloring for XML-files as well, so I use that now...
Eclipse 中的默认 HTML 编辑器对 XML 文件也有很好的语法着色,所以我现在使用它......
回答by Al Baker
If you are using Eclipse, make sure to pick up the Java EE version - or you can find Web Server Tools, XML, and other web related tooling available in update manager. I have switched just about exclusively to using SpringSource ToolSuite, a branded version of Eclipse with a handful of useful plug-ins - even if you don't use Spring, it has m2eclipse, WST, and a handful of other useful plug-ins pre-installed.
如果您使用 Eclipse,请确保选择 Java EE 版本 - 或者您可以在更新管理器中找到 Web 服务器工具、XML 和其他与 Web 相关的工具。我几乎只使用 SpringSource ToolSuite,这是 Eclipse 的一个品牌版本,带有一些有用的插件——即使你不使用 Spring,它也有 m2eclipse、WST 和一些其他有用的插件- 安装。
The nice parts of the Eclipse XML editing tools are for WSDL and Schema, where you get easy traversal between files and a graphical interface to visualize the file.
Eclipse XML 编辑工具的优点在于 WSDL 和 Schema,您可以在其中轻松遍历文件和图形界面来可视化文件。
Otherwise the basic XML editor is just simple XML-aware editor, with line coloring, some auto-completion and the like.
否则,基本的 XML 编辑器只是简单的 XML 感知编辑器,带有线条着色、一些自动完成等功能。
Note that not all XML tools were built the same, and you might find one tool says things are valid, while another does not. Most famously this used to occur with WSDLs and Schemas for web services.
请注意,并非所有 XML 工具的构建方式都相同,您可能会发现一个工具表明事情有效,而另一种则不然。最著名的是,这曾经发生在 Web 服务的 WSDL 和模式中。
回答by Baptiste Pernet
with Eclipse Luna, I used "Persistence XML Editor" and I have a nice highlighting of colors.
在 Eclipse Luna 中,我使用了“Persistence XML Editor”并且我有一个很好的颜色突出显示。
回答by M.J.
if u want a simple xml editor, then u can use Notepad++, it is just an editor with langauge feature. And if u want to use some IDE, then i will personally prefer eclipse 3.5 (Galileo). I find it much better then indigo.
如果你想要一个简单的 xml 编辑器,那么你可以使用 Notepad++,它只是一个带有语言功能的编辑器。如果你想使用一些 IDE,那么我个人更喜欢 eclipse 3.5 (Galileo)。我发现它比靛蓝好多了。