[TxMt] XML Indenting

Ciarán Walsh ciawal at gmail.com
Mon Apr 2 07:46:08 UTC 2007

On 2 Apr 2007, at 07:11, Nicholas Orr wrote:

> <Style>
> 	<Data>Some text Here.</Data>
> </Style>
> <Style>
> 	<Data>Some text Here.
> 		Some more text here.</Data>
> 	</Style>
That is a somewhat odd way of indenting XML. The normal way is to  
either have everything on one line (as in your first Data tag) or  
have the tags and content on separate lines, like so:

   <Data>Some text Here.</Data>
     Some text Here.
     Some more text here.

This way it will also be indented properly by TM.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070402/8604583e/attachment.html>

More information about the textmate mailing list