[TxMt] XML Indenting

Nicholas Orr nick at goya.com.au
Mon Apr 2 23:03:44 UTC 2007


On 02/04/2007, at 8:19 PM, Ciarán Walsh wrote:

> On 2 Apr 2007, at 10:07, Nicholas Orr wrote:
>
>> In the mean time, the question still stands, is there any way to  
>> adjust TM so that it wraps it for me?
>
> You could edit the language syntax if you really wanted to (but I  
> suspect that you don't).

That was my first guess, I was hoping someone could assist me there...

> Some alternatives:
> • make a find/replace macro to drop the trailing tag onto the next  
> line, so that the standard indent will work

The problem is that some of the tags are single lines, some are  
doubles, and it's spread across multiple different tags, not just in  
one place.

> • if your document is well-formatted, the Tidy command (XML→Tidy  
> or ⌃⇧H) should indent it for you

I will give that a try.  I noticed there was an update to the xml  
bundle to stop it replacing the document with the error, so that will  
make it more useful.

Cheers,
Nick





More information about the textmate mailing list