logo       

XML indentation mode: msg#00279

kde.devel.kwrite

Subject: XML indentation mode

Hi,

Working with Anders, I have developed an XML indentation mode. This mode
will indent once per open element, so you end up with documents like:

<a>
<b>
<c>Some text and stuff <d>blah</d>
</c>
</b>
</a>

It ignores empty elements, processing instructions and CDATA sections
(these shouldn't affect the indentation). However, it also won't
recognise multi-line open or close tags (both of which are legal
according to the XML spec). This is a limitation caused by the use of
regular expressions.

I will maintain this mode as necessary, but it is useful as-is and I
would appreciate the feedback from users before making any further
changes.

Bye for now,
--
Laurence Withers, lwithers@xxxxxxxxxxxx, jabber:l.withers@xxxxxxxxxx
http://www.personal.rdg.ac.uk/~sis04lw/

Attachment: katepart-xmlindent.patch
Description: Text Data

Attachment: pgp5F1uJ3P35w.pgp
Description: PGP signature

_______________________________________________
KWrite-Devel mailing list
KWrite-Devel@xxxxxxx
https://mail.kde.org/mailman/listinfo/kwrite-devel
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise