Community
    • Login

    auto-ident on html page does not work

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    auto identidentauto-identhtml auto-ident
    6 Posts 2 Posters 1.2k 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.
    • Adriano ElleroA
      Adriano Ellero
      last edited by

      Hi all, the auto-ident function does not work on my simple html page.
      Any hint?

      Meta ChuhM 1 Reply Last reply Reply Quote 0
      • Meta ChuhM
        Meta Chuh moderator @Adriano Ellero
        last edited by Meta Chuh

        @Adriano-Ellero

        the built in auto indent of notepad++ does not indent your html tags, but it keeps the indentation at the tab level you used on the previous line.
        if you want to automatically indent, or clean up your indents, you will need to use one of the indentation or tidy up plugins.

        in this example i use indent by fold 0.7.1, which you can install either manually, or automatically using the built in “plugins admin” of the current notepad++ version 7.6.3, or “plugin manager” on versions 7.5.9 and below.

        • install the plugin “ident by fold”
        • open a html file, or create any unformatted html code
          here is a screenshot of unindented html code:

        Imgur

        • now go to the menu plugins > indent by fold > reindent file, and your code will be correctly indented

        Imgur

        note: indent by fold works completely without an own parser, independent of any programming languages, as it uses the folding information of any built in or custom lexer or even user defined languages. it will work on any language, as long as the folding structure of the lexer or udl is set correctly. 👍

        side note: there is no need for double posting.
        all community members who can help, will read your request, regardless of if it is at help wanted, or at general discussion.

        1 Reply Last reply Reply Quote 0
        • Adriano ElleroA
          Adriano Ellero
          last edited by

          Thanks twice than :-)

          by the way, wrong instruction on plugin installation. According to my today experience, inside plugin directory, create new folder with same name of dll file.

          Meta ChuhM 1 Reply Last reply Reply Quote 0
          • Meta ChuhM
            Meta Chuh moderator @Adriano Ellero
            last edited by Meta Chuh

            @Adriano-Ellero

            by the way, wrong instruction on plugin installation. According to my today experience, inside plugin directory, create new folder with same name of dll file.

            which version are you on ?
            which of my installation instructions were wrong ?

            if you follow my guide, it clearly states:

            in this example i use indent by fold 0.7.1, which you can install either manually, or automatically using the built in “plugins admin” of the current notepad++ version 7.6.3, or “plugin manager” on versions 7.5.9 and below.

            which also means that you must not use plugin manager to install anything on 7.6 and above
            and no manual installation method was given.

            please share your experiences of today here at the community, as none of them seem to have been guided by us.

            1 Reply Last reply Reply Quote 0
            • Adriano ElleroA
              Adriano Ellero
              last edited by

              latest version 32bit
              now Indent by fold works
              after creating IndentByFold folder within plugins one, and copying the dll file inside IndentByFold folder.

              now works with 32 bits

              but I have a huge question for you :-)

              I have to code huge file in HTML and SVG tags. HTML works selecting HTML language. For checking SVG code I have to pass to XML language.

              Is there a way to combine both languages?

              Meta ChuhM 1 Reply Last reply Reply Quote 0
              • Meta ChuhM
                Meta Chuh moderator @Adriano Ellero
                last edited by Meta Chuh

                glad it works for you, @Adriano-Ellero 👍

                latest version 32bit
                now Indent by fold works
                after creating IndentByFold folder within plugins one, and copying the dll file inside IndentByFold folder.

                what i still don’t understand is, why you had to create any folders or did a manual install, because on the latest notepad++ 7.6.3 32 bit, or following my instructions, you just go to plugins > plugins adminsearch for fold, select “indent by fold” or any other available plugin, and press install, like seen at the screenshot below.

                Imgur

                I have to code huge file in HTML and SVG tags. HTML works selecting HTML language. For checking SVG code I have to pass to XML language.
                Is there a way to combine both languages?

                i don’t know if an udl (user defined language) which combines both has already been made yet, as i don’t work with svg.

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