Reputation: 467
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
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