I would like for Notepad++ to add the closing tag when I finish typing the open tag. I know there is a plugin to do this for XML but it doesn't work on my HTML files and I have yet to find one that does.

link|improve this question

feedback

1 Answer

up vote 18 down vote accepted

Try going into TextFX / TextFX Settings and check 'auto close XHTML tags'. This makes it work in plain HTML files too. You may need to install it if using a newer version of Notepad++

  1. Click Plugins > Plugin Manager > Show Plugin Manager
  2. On the "available" tab check the box by "TextFX Characters"
  3. Click Install
  4. Restart Notepad++
  5. Enable the auto-close XHTM features as described above.
link|improve this answer
2  
Also, the document language needs to be set to HTML, if it isn't already. – w3d Dec 16 '10 at 10:59
Thanks! Notepad++ is a great tool but looks like the authors are tough guys, such things should be on by default. – axk Nov 25 '11 at 11:31
1  
Which version of Notepad++ does this apply to? Some of the newer versions don't seem to have TextFX anymore (such as the current release version, 5.9.8). – Cold Hawaiian Mar 16 at 19:32
feedback

protected by Diago Oct 19 '10 at 20:24

This question is protected to prevent "thanks!", "me too!", or spam answers by new users. To answer it, you must have earned at least 10 reputation on this site.

Not the answer you're looking for? Browse other questions tagged or ask your own question.