Self-closing Tags
-
Is there a way to stop Notepad++ from adding a closing tag to the self-closing tags. For example, when I use the <input> tag, it adds </input> when I insert > at the end of the tag. I like how it automatically pairs the HTML tags, but I don’t want it to add a closing tag if it is a self-closing tag.
-
afaik, I don’t think it’s possible to prevent this by npp natively.
What comes into my mind would be a scripting solution by using
Python or Lua Script …Cheers
Claudia -
It would need to be a minor code change within Notepad++.
See:
I’m no HTML expert but I’d assume that
input
is not the only self closing tag that needs added to that list. -
-
See PR#2379