Julien Pierre
Julien Pierre

Reputation: 467

Visual Studio-like code formatting in Scintilla control

Is it possible to format XML code in scintilla in the same way that Visual Studio does when you paste some xml into a xml file.

At the moment, the xml that I retrieve is on one line and therefore hard to work with, it would be great if the xml could be formatted properly on load.

Any suggestions?

Upvotes: 1

Views: 1119

Answers (2)

Matt Lyons-Wood
Matt Lyons-Wood

Reputation: 960

One way to do this is to get .NET to do interpret the XML and export it as a formatted string, using XMLTextWriter - see this question. This assumes you're using Scintilla inside .NET though - you'd have to use the XML features of your platform of choice if not.

Upvotes: 0

j_mcnally
j_mcnally

Reputation: 6968

You could use NotePad++ or http://xmltoolbox.appspot.com/

Upvotes: 0

Related Questions