Closed JesseAldridge closed 10 years ago
Oh wait, it only works with a few formats. I'd like to use the command in an html file. Maybe you could remove the restrictions entirely and allow the command to be used in any file?
This is not only about the plugin restrictions, technically indenting XML != indenting HTML, and this plugin was never designed for latter. So I can only suggest to use other plugin, like https://github.com/rareyman/HTMLBeautify
I removed the restriction and it indented my html just fine. Surely it's better to treat users like adults rather than enforcing restrictions on them.
Here's the change in case anyone cares: https://github.com/JesseAldridge/sublimetext_indentxml/commit/5bd1b192ef80f6dc55a506d615e3ba2e9aca233d
The "indent xml" command only shows up if I have Sublime running without any open files. If I open a file and then open the command palette the command doesn't appear.