Notepad++ auto complete HTML end tags after

autocompletehtmlnotepad

In Dreamweaver typing </ will automatically close the last open tag, so you don't have to type it all out, and it helps if you aren't sure if you closed one or not. Is there a plugin that dose this for Notepad++?

This is not like text FX where typing the opening tag/bracket adds the close on the other side of the cursor. This behavior is an auto completion that happens when </ is typed, DW finds whatever the innermost open tag is, and closes it. I find that, when I have the option of using DW, I will use this feature far more often than anything else that DW provides. Thus I would love to know if there was a way to do it in NPP.

Here is DW preference in question:
enter image description here
Notice how there is a different option that does what text FX does, but I don't want that.

I am not opposed to unorthodox suggestions, some kind of macro, or hack of a plugging. Anything to emulate the functionality. If need be, I could write a plugin, I just have no idea how to go about it.

Best Answer

Go to TextFX / TextFX Settings and check "auto close XHTML tags".

This makes it work in plain HTML files as well.