alek-sys / sublimetext_indentxml

Plugin for Sublime Text editor for reindenting XML and JSON files
MIT License
534 stars 135 forks source link

Command doesn't show up in command palette in Sublime Text 3. #62

Closed JesseAldridge closed 10 years ago

JesseAldridge commented 10 years ago

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.

JesseAldridge commented 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?

alek-sys commented 10 years ago

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

JesseAldridge commented 10 years ago

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