Alex Rivera | Logout

Notepad++ auto-close HTML tags in PHP files

Asked 2011-04-15T07:30:35.663
16

In Notepad++, how can I enable to auto-close HTML tags in PHP files?

I'm able to do this in HTML and XML files (I think the TextFX plugin does it), but in PHP files it doesn't work. Is there a plugin (or built-in functionality) to enable auto-close HTML tags in PHP files?

Edit
Report

2 Answers

9

Install the TextFX plugin and go to menu TextFX → TextFX Settings → +Autoclose XHTML/XML <Tag>.

answered 2011-04-26T02:35:01.743
8

This is a bit annoying, but you could temporarily switch to HTML language, and when you're done, switch back to PHP language.

answered 2011-04-25T04:36:26.997

Your Answer