[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pretty-layout in html-mode
From: |
tomas |
Subject: |
Re: pretty-layout in html-mode |
Date: |
Tue, 12 May 2009 13:03:40 +0200 |
User-agent: |
Mutt/1.5.15+20070412 (2007-04-11) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Tue, May 12, 2009 at 10:59:57AM +0100, Chris Withers wrote:
> ken wrote:
>> Using html-helper-mode, doing C-i properly indents the current line. So
[...]
> Thanks, but I'm looking for something more like:
> - select region
> - M-x unsuck-html-layout
I don't know at the moment how to pipe a region through an external
process, but that should be feasible. Xmllint does a nice job at what
you are trying:
xmllint --html --format <your html file here>
Maybe others could chime in as to how one could pass the region (or the
whole buffer) through an external program?
Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFKCVeMBcgs9XrR2kYRAv7LAJkBcCi4I9bYb44uDjlE8hEmq6dnUwCdFlYZ
iPfIze+fKOzPo7ddCEOddn4=
=sc2q
-----END PGP SIGNATURE-----
Message not available