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 11.2k Views 2 Watching
    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.
    • rowan harleyR Offline
      rowan harley
      last edited by

      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

      Claudia FrankC 1 Reply Last reply Reply Quote 0
      • Claudia FrankC Offline
        Claudia Frank @rowan harley
        last edited by Claudia Frank

        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
        • dailD Offline
          dail
          last edited by

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

          1 Reply Last reply Reply Quote 0
          • Claudia FrankC Offline
            Claudia Frank
            last edited by

            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
            • dailD Offline
              dail
              last edited by

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

              1 Reply Last reply Reply Quote 0
              • Claudia FrankC Offline
                Claudia Frank
                last edited by

                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
                • dailD Offline
                  dail
                  last edited by

                  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
                  • Claudia FrankC Offline
                    Claudia Frank
                    last edited by

                    @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
                    • Claudia FrankC Offline
                      Claudia Frank
                      last edited by

                      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
                      • rowan harleyR Offline
                        rowan harley
                        last edited by

                        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

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post
                        The Community of users of the Notepad++ text editor.
                        Powered by NodeBB | Contributors