• Login
Community
  • Login

Is there any way to auto insert tag end in html/php

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
phphtml
10 Posts 3 Posters 10.5k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R
    rowan harley
    last edited by Dec 11, 2015, 7:17 PM

    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

    C 1 Reply Last reply Dec 11, 2015, 8:01 PM Reply Quote 0
    • C
      Claudia Frank @rowan harley
      last edited by Claudia Frank Dec 11, 2015, 8:01 PM Dec 11, 2015, 8:01 PM

      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

      1 Reply Last reply Reply Quote 0
      • D
        dail
        last edited by Dec 11, 2015, 8:01 PM

        Settings > Preferences > Auto-Completion > html/xml close tags

        1 Reply Last reply Reply Quote 0
        • C
          Claudia Frank
          last edited by Dec 11, 2015, 8:03 PM

          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

          1 Reply Last reply Reply Quote 0
          • D
            dail
            last edited by Dec 11, 2015, 8:06 PM

            Hmm…I’m actually not sure…I’ve only ever used it for XML.

            1 Reply Last reply Reply Quote 0
            • C
              Claudia Frank
              last edited by Dec 11, 2015, 8:08 PM

              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 x64

              Cheers
              Claudia

              1 Reply Last reply Reply Quote 0
              • D
                dail
                last edited by Dec 11, 2015, 8:13 PM

                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

                1 Reply Last reply Reply Quote 0
                • C
                  Claudia Frank
                  last edited by Dec 11, 2015, 8:20 PM

                  @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

                  1 Reply Last reply Reply Quote 0
                  • C
                    Claudia Frank
                    last edited by Dec 11, 2015, 8:29 PM

                    ok, found TextFX Settings has also a autoclose feature which was, in my case, enabled.
                    So, XML Tools has been discharged.

                    Cheers
                    Claudia

                    1 Reply Last reply Reply Quote 0
                    • R
                      rowan harley
                      last edited by Dec 12, 2015, 8:59 AM

                      Ok, thanks! I’ll just have to keep switching over from php to html when doing the tags

                      1 Reply Last reply Reply Quote 0
                      6 out of 10
                      • First post
                        6/10
                        Last post
                      The Community of users of the Notepad++ text editor.
                      Powered by NodeBB | Contributors