Community
    • Login

    XML Pretty Print and HTML

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    14 Posts 8 Posters 19.0k 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.
    • k3tonanK
      k3tonan @andrecool-68
      last edited by

      @andrecool-68 said in XML Pretty Print and HTML:

      There is a Tidy plugin for formatting Html

      That would be located where?

      TroshinDVT 1 Reply Last reply Reply Quote 0
      • TroshinDVT
        TroshinDV @k3tonan
        last edited by

        @k3tonan said in XML Pretty Print and HTML:

        @andrecool-68 said in XML Pretty Print and HTML:

        There is a Tidy plugin for formatting Html

        That would be located where?

        Screenshot_277.png

        andrecool-68A 4 Replies Last reply Reply Quote 1
        • andrecool-68A
          andrecool-68 @TroshinDV
          last edited by

          @Дмитрий-Трошин Для начала его нужно установить))

          TroshinDVT 1 Reply Last reply Reply Quote 0
          • andrecool-68A
            andrecool-68 @TroshinDV
            last edited by

            @Дмитрий-Трошин https://github.com/geoffmcl/NppTidy2/releases/

            1 Reply Last reply Reply Quote 1
            • andrecool-68A
              andrecool-68 @TroshinDV
              last edited by

              @Дмитрий-Трошин tidy2.png

              PeterJonesP 1 Reply Last reply Reply Quote 0
              • PeterJonesP
                PeterJones @andrecool-68
                last edited by

                @k3tonan and any others reading this, please note:

                The Plugins Admin only has Tidy2 for 32-bit Notepad++, so if you are running 64-bit Notepad++, you cannot install Tidy2 that way. (This is not a “bug” or mistake in the Notepad++ Plugins Admin list. The official archive for that plugin (https://code.google.com/p/npp-tidy2/) only has an ancient 32-bit version, so Notepad++ Plugins Admin has nothing there to link to for 64-bit.)

                The other link that @andrecool-68 provided (https://github.com/geoffmcl/NppTidy2/releases/) is a fork (unofficial modified version) of the original, and has provided a 32-bit and 64-bit zipfiles. However, that is not the official location, and you will have to install manually from there. To do that, download the appropriate .7z archive, unzip, and place the DLL in your 64-bit C:\program files\Notepad++\plugins\Tidy2\Tidy2.dll (or other appropriate folder if you didn’t install Notepad++ in the default location)

                Adriano ElleroA 1 Reply Last reply Reply Quote 2
                • andrecool-68A
                  andrecool-68 @TroshinDV
                  last edited by

                  @Дмитрий-Трошин On the same page there is a file quickref.html this is help for Tidy
                  This file must be placed in the directory:
                  \plugins\doc\Tidy2\quickref.html
                  After that, the help will be available from the plugin menu))

                  1 Reply Last reply Reply Quote 2
                  • TroshinDVT
                    TroshinDV @andrecool-68
                    last edited by

                    @andrecool-68 said in XML Pretty Print and HTML:

                    @Дмитрий-Трошин Для начала его нужно установить))

                    Я его (сам tidy.exe) использую через плагин jN, совестно с css и js форматерами.

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

                      be careful that XML Tools over write “<script></script>” tags into “<script />” and javascript codes don’t work anymore. It would be nice to know how to fix this…

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

                        @PeterJones Interesting! I’ve tried it. It works even with 64bit NP++. But I don’t get he CSS part properly Indented.
                        Indent by fold plugin seems working better (accepting same CSS limitation)…

                        Frustrated SurferF 1 Reply Last reply Reply Quote 0
                        • Frustrated SurferF
                          Frustrated Surfer @Adriano Ellero
                          last edited by Frustrated Surfer

                          @Adriano-Ellero How has your experience been with the Tidy2 solution since you posted Nov 11, 2020? I’ve integrated cmd line Tidy into my process and have no complaints about the output, just that it’s another set of chicanes between me and the finish line. Your initial assessment of the plugin had a caveat.

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