alek-sys / sublimetext_indentxml

Plugin for Sublime Text editor for reindenting XML and JSON files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

JesseAldridge opened this issue · comments

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.

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: JesseAldridge@5bd1b19