Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto close of html tags and jsp, php, asp tags in notepad++ and a semicolon at the end of the line written of scriptlets

I use notepad++ and I like it

I specifically want it to do this :

  1. Close automatically HTML tags. (eg. </div>)
  2. Close tags after starting with proper indention for .jsp, .asp, .php files. (eg.<% %>, <?php ?>)
  3. Put a semicolon at the line end by default (whenever I start a new line inside <?php ?>)

For (1), it is really frustrating for me, when I want to write HTML tags in php files. I upgraded to 6.5.1, and tried the TextFX, but it works only with files which have the extension .html or .htm

Could someone please guide me in achieving these features?

like image 928
Ravi MCA Avatar asked Dec 04 '13 11:12

Ravi MCA


1 Answers

Regarding auto-closing html tags, for me only having html as the language didn't do the trick.

(This answer is incomplete, but is too large for a comment given the images.)


Changing the auto-complete preferences, as below, worked:

  • Settings > Preferences

settings_prefs

  • Auto-Completion tab > Auto-Insert section > html/xml close tag

auto-insert

I use Notepad++ v6.5.2

like image 152
Noha Kareem Avatar answered Oct 16 '22 23:10

Noha Kareem