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

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

Re: wrapping xml


From: Mathias Dahl
Subject: Re: wrapping xml
Date: Mon, 22 May 2006 08:34:08 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt)

Ted Zlatanov <tzz@lifelogs.com> writes:

>> 1. Search for "<"
>> 2. Back up one character
>> 3. Press return to move the rest of the line down
>> 4. Press Tab to make Emacs indent the line
>>
>> Save macro. Execute, execute again...
>
> You can just replace "<" with "^M<" and then reindent the region.  The
> ^M is produced by C-q ENTER.

Ah, of course, was just checking that people were awake... :) Also,
this requires the XML mode to support indentation. At least some years
ago that did not work by default (SGML-mode?).


reply via email to

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