[TxMt] XML Indenting
Igor Sutton Lopes
igor.sutton at gmail.com
Mon Apr 2 08:07:50 UTC 2007
On 2007/04/02, at 08:46, Ciarán Walsh wrote:
>
> 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:
>
> <Style>
> <Data>Some text Here.</Data>
> </Style>
> <Style>
> <Data>
> Some text Here.
> Some more text here.
> </Data>
> </Style>
>
> This way it will also be indented properly by TM.
Actually, your text data should be inserted within CDATA
<![CDATA[Some text here.
Some more text here.]]>
--
Igor Sutton
igor.sutton at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070402/486b9270/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://lists.macromates.com/textmate/attachments/20070402/486b9270/attachment.sig>
More information about the textmate
mailing list