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.
1 Answer
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++
- Click Plugins > Plugin Manager > Show Plugin Manager
- On the "available" tab check the box by "TextFX Characters"
- Click Install
- Restart Notepad++
- Enable the auto-close XHTM features as described above.
-
4Also, the document language needs to be set to HTML, if it isn't already.– MrWhiteCommented Dec 16, 2010 at 10:59
-
Thanks! Notepad++ is a great tool but looks like the authors are tough guys, such things should be on by default.– axkCommented Nov 25, 2011 at 11:31
-
3Which 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). Commented Mar 16, 2012 at 19:32
-
David do you know of a plugin which will auto-complete XHTML in php files?– AnagioCommented Jan 19, 2013 at 21:51
-
2@DavidEbbo the auto-complete word setting built into Notepad++ does it– AnagioCommented Jan 20, 2013 at 3:15