I regularly have to work with XML files which are presented without line breaks which makes tracking down errors much harder than it needs to be. eg
<?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <Quote xmlns="http://TEST/T"> <lstrRiskXML> <lstrRiskXML xmlns=""> <householdRisk xmlns="http://www.testsystem.com/schemas" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.testsystem.com/schemas TESTHouseholdSchema.xsd"> <insuredParty instance="1"> <client>true</client> <dob>1956-01-01T12:00:00.0000000-00:00</dob> <email>email@example.com</email> <forename>test</forename> <maritalStatusID>M</maritalStatusID> <sex>Male</sex> <surname>Smith</surname> <titleID>003</titleID> </insuredParty> </lstrRiskXML> </lstrRiskXML> </Quote> </soap:Body> </soap:Envelope>
In UltraEdit there is an option 'XML convert to CR/LFs' which 'pretty prints' complete with indentations it and I was wondering if it's possible to achieve the same thing in Sublime? If it is, then I'm one step closer to ditching UE entirely.
Another options UE has is 'convert to fixed column' which is a sort of column mode that 'pretties' or aligns data in comma,space or tab delimited files, padding them out with spaces to make it easier to read:
Any ideas as to how I could do this?