help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: one line big XML to multiline


From: John Bokma
Subject: Re: one line big XML to multiline
Date: Mon, 02 Jul 2012 10:13:57 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Mihamina Rakotomandimby <mihamina@rktmb.org> writes:

> Hi all,
>
> I got a big one line XML file.
> I want to break the lines to make it more readable.
>
> Replacing "><" with "C-j" then indenting is the most obvious solution,
> but would you know a more elegant solution?
>
> I'm using Emacs 23 (FC17) with nXml or sgml-mode usable.
>
> Thank you.

I've used this in the past, with success:

http://blog.bookworm.at/2007/03/pretty-print-xml-with-emacs.html

-- 
John Bokma                                                               j3b

Blog: http://johnbokma.com/        Perl Consultancy: http://castleamber.com/
Perl for books:    http://johnbokma.com/perl/help-in-exchange-for-books.html


reply via email to

[Prev in Thread] Current Thread [Next in Thread]