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
inputis not the only self closing tag that needs added to that list. -
-
See PR#2379
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login