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

查看:25
本文介绍了在 Emacs 上漂亮地打印 XML 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 emacs 来编辑我的 xml 文件(nxml 模式),并且这些文件是由机器生成的,没有任何漂亮的标签格式.

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 时.还有 Tidy 的 Emacs 接口.

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天全站免登陆