本文介绍了在Emacs上打印出漂亮的XML文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用emacs来编辑我的xml文件(nxml-mode),并且由机器生成的文件没有任何漂亮的标签格式。
I use emacs to edit my xml files (nxml-mode) and the files were generated by machine don't have any pretty formatting of the tags.
我已经搜索漂亮的打印整个文件缩进并保存,但无法找到自动的方式。
I have searched for pretty printing the entire file with indentation and saving it, but wasn't able to find an automatic way.
有没有办法?或者至少有一些linux上的编辑器可以做到这一点。
Is there a way? Or atleast some editor on linux which can do it.
推荐答案
我使用进行编辑和,当我想格式化和缩进XML或HTML。还有
I use nXML mode for editing and Tidy when I want to format and indent XML or HTML. There is also an Emacs interface to Tidy.
这篇关于在Emacs上打印出漂亮的XML文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!