Is there any way to auto insert tag end in html/php
-
Is there any way to auto-create the end tag (e.g. Auto-Create the </html> tag when I type <html>) in php/html like a plugin or a setting
-
Hello rowan-harley,
this can be achieved by switching between php and html language.
ALT+L+H+H+ENTER -> html
ALT+L+P+P+P+ENTER -> php
(assuming you did not modify your language menu)Cheers
Claudia -
Settings > Preferences > Auto-Completion > html/xml close tags
-
Hello dail,
should this work if a language like php is selected. If so,
than there is a problem, it doesn’t work on my side.Cheers
Claudia -
Hmm…I’m actually not sure…I’ve only ever used it for XML.
-
And there is another one … if I use it and use html or xml language
I get two closing tags. <xml></xml></xml>
When using php I don’t get any closing tag.NPP 6.8.7
Windows 7 x64Cheers
Claudia -
It is probably because you have XML Tools installed to autoclose tags. I’ve never used XML Tools but it may be a better option than the built-in autocomplete for tags
-
@dail,
shame on me - I didn’t do what I always propose to others.
You’re right, when running with noPlugin switch it works but still
only when using html or xml language.In addition I need to see if xml tools has a bug, because I didn’t use the auto close tag feature
or maybe another plugin intersected.Cheers
Claudia -
ok, found TextFX Settings has also a autoclose feature which was, in my case, enabled.
So, XML Tools has been discharged.Cheers
Claudia -
Ok, thanks! I’ll just have to keep switching over from php to html when doing the tags