在Emacs上打印出漂亮的XML文件 [英] Pretty printing XML files on Emacs

查看:128
本文介绍了在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.

推荐答案

我使用 nXML模式进行编辑和整理,当我想格式化和缩进XML或HTML。还有一个Emacs界面到Tidy。

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文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆