Twistpad Carthago Software forums / Twistpad /  

 Feature request

 
othrane
Member
#1 | Posted: 10 Oct 2006 00:50 
Hi,

Thanks for a great editor. I am seriously considering switching...

I often work with large XML files and it would be so nice if Twistpad had an option to auto-format (aka pretty-print) XML.

For instance, the following:

<item name="Document"><field name="Title">The title</field></item>

should be formatted as:

<item name="Document">
<field name="Title">The title</field>
</item>

Of course, the indentation amount should be configurable.

Thanks!

othrane
Member
#2 | Posted: 10 Oct 2006 00:52 
Oops, the indenting was lost when posting. Here's another try:

<item name="Document">
<field name="Title">The title</field>
</item>

Or using dots for spaces:

<item name="Document">
..<field name="Title">The title</field>
</item>

Andre Santos
Carthago
Moderator
#3 | Posted: 10 Oct 2006 06:33 
Hi,

Thanks for the suggestion.
Twistpad is a general programming language editor, not specific, so I feel a bit out of it's scope to include a XML Formatter, a typical command in a XML Editor (which Twistpad isn't).

However this can be archived via plug-ins, already done and hopefully available soon to download is a plug-in for interaction with HTMLTidy via the TidyLib.dll which allows formatting for HTML and XML.

Thanks,

André Santos
Carthago Software Support
http://www.carthagosoft.net

Twistpad Carthago Software forums / Twistpad /
 Feature request

Your Reply Click this icon to move up to the quoted message


 
Only registered users are allowed to post here. Please, enter your username/password details upon posting a message, or register first.

 

  Powered By minibb