June 2010
4 posts
How the star of Troll 2 stopped worrying and... →
Fix XML files in Emacs
(defun pretty-print-xml ()
"Pretty format XML markup. You need to have nxml-mode http://www.emacswiki.org/cgi-bin/wiki/NxmlMode installed to do this. The function inserts linebreaks to separate tags that have nothing but whitespace between them. It then indents the markup by using nxml's indentation rules. A variant of the code found at...
Harry "Death-Ray" Matthews →