Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Notepad++ auto-close HTML tags in PHP files

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?

like image 503
Headshota Avatar asked Apr 15 '11 07:04

Headshota


People also ask

How do I close HTML tags in PHP?

The strip_tags() function strips a string from HTML, XML, and PHP tags. Note: HTML comments are always stripped. This cannot be changed with the allow parameter. Note: This function is binary-safe.


1 Answers

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

like image 175
msmafra Avatar answered Oct 06 '22 00:10

msmafra