Page 1 of 1

Basic XML Support

Posted: Mon Oct 14, 2019 7:39 pm
by FFSparky
Could you please consider modifying TextPad to do some basic XML support ?

1) "Pretty Format" the file:

Allot of XML files are a continuous string of data. This feature would convert the file to a tree format adding <CR><LF> and indenting <HT> subgroups of tags

And this feature would also be of benefit to HTML files too !

Example:

Original:

Code: Select all

<Root><Group1><Item1></Item1><Item2></Item2></Group1></Root>
After "Pretty Format":

Code: Select all

<Root>
	<Group1>
		<Item1></Item1>
		<Item2></Item2>
	</Group1>
</Root>


2) XML Tree collapse / expand.

When the file is XML show it in a "Pretty Format" as #1 above but also next to where Line#s can be show non the document when enabled also have the ability to collapse or expand groups of tags. and when groups of collapsed tags are selected allow us to delete them.