autoclose-html icon indicating copy to clipboard operation
autoclose-html copied to clipboard

FEATURE REQUEST: force never close tags to render Inline/Block

Open sircniat opened this issue 9 years ago • 2 comments

For example:

element in an xml file is not an html element. I tried to put source into force inline/block, but it does not work. so i have to disable neverclose/selfclose feature. now obviously other neverclose elements wont be closed automatically anymore. but thats not very important, more custom options here would be nice though.

sircniat avatar Jan 26 '16 11:01 sircniat

If you don't want source to be self-closing, you can define a set of self-closing tags that does not include it, then add it to the force block (if it doesn't render block by default). However, context dependent settings isn't a rabbit hole I intend to go down.

Ultimately this plugin is intended for use with HTML so default settings will skew towards that. I encourage you to create a separate plugin targeted at XML and use this one as a base, if that can provide you the solution you want

mattberkowitz avatar Feb 24 '16 22:02 mattberkowitz

While most of what I said previous is still true, I discovered some things that have changed my mind on not being able to do what you want, or at least make the experience a bit better for you. That being said, it might be some time before I get around to implementing so I'm going to reopen this so I remember to keep you informed when I do get around to it.

mattberkowitz avatar Feb 25 '16 01:02 mattberkowitz