[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: pretty-layout in html-mode
From: |
Anselm Helbig |
Subject: |
Re: pretty-layout in html-mode |
Date: |
Tue, 12 May 2009 12:02:54 +0200 |
User-agent: |
SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.7 Emacs/22.3 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI) |
At Tue, 12 May 2009 10:59:57 +0100,
Chris Withers <chris@simplistix.co.uk> wrote:
>
> ken wrote:
> > Using html-helper-mode, doing C-i properly indents the current line. So
> > in such files I start with the point on the first line, do C-i, then do
> > the same on the second line, and so on. This of course doesn't work if
> > all the html code is on one line. The tags and text you want to indent
> > properly must lie at the beginning of a new line (optionally with some
> > white space preceding it); that is, C-i won't insert newlines at proper
> > locations. ("Proper location" is not an objective determination
> > anyway.) But html-helper-mode does understand opening and closing tags
> > and (normally) indents these at the same level.
>
> Thanks, but I'm looking for something more like:
> - select region
> - M-x unsuck-html-layout
You're looking for `indent-region' which is bound to C-M-\. I'm using
it with html-mode, works great.
Regards,
Anselm
--
Anselm Helbig
mailto:anselm.helbig+news2009@googlemail.com
Message not available
- Re: pretty-layout in html-mode,
Anselm Helbig <=