Sublime Forum

Formatting XML?

#1

Is there a way to format XML within SublimeText natively or using a plugin?

Example:

<Foo><Bar/></Foo>

and change it to…

<Foo> <Bar/> </Foo>

0 Likes

#2

Yes :


github.com/alek-sys/sublimetext_indentxml

0 Likes

#3

Perfect. It wasn’t working, but after reading those forum posts I viewed Console and found that there were some errors in the XML I was trying to indent. Fixed the errors and it works great. Thanks!

0 Likes