• Login
Community
  • Login

XML Pretty Print and HTML

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
14 Posts 8 Posters 18.7k 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.
  • J
    John Janmaat
    last edited by Oct 27, 2020, 9:33 PM

    Hello,

    I am using the XML Tools plugin to format HTML. When I do so and save the document, Chrome only displays a blank page. I have not changed anything else in the file.

    Suggestions?

    Thanks,

    John.

    E 1 Reply Last reply Oct 27, 2020, 9:36 PM Reply Quote 0
    • E
      Ekopalypse @John Janmaat
      last edited by Oct 27, 2020, 9:36 PM

      @John-Janmaat

      It could be that it broke the html code.
      Does it still look ok, from html point of view, when you open it with npp?

      1 Reply Last reply Reply Quote 1
      • A
        andrecool-68
        last edited by Oct 29, 2020, 5:26 PM

        There is a Tidy plugin for formatting Html

        K 1 Reply Last reply Nov 9, 2020, 4:40 AM Reply Quote 1
        • K
          k3tonan @andrecool-68
          last edited by Nov 9, 2020, 4:40 AM

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

          There is a Tidy plugin for formatting Html

          That would be located where?

          T 1 Reply Last reply Nov 9, 2020, 6:31 AM Reply Quote 0
          • T
            TroshinDV @k3tonan
            last edited by Nov 9, 2020, 6:31 AM

            @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

            A 4 Replies Last reply Nov 9, 2020, 8:57 AM Reply Quote 1
            • A
              andrecool-68 @TroshinDV
              last edited by Nov 9, 2020, 8:57 AM

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

              T 1 Reply Last reply Nov 10, 2020, 1:42 AM Reply Quote 0
              • A
                andrecool-68 @TroshinDV
                last edited by Nov 9, 2020, 9:01 AM

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

                1 Reply Last reply Reply Quote 1
                • A
                  andrecool-68 @TroshinDV
                  last edited by Nov 9, 2020, 9:18 AM

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

                  P 1 Reply Last reply Nov 9, 2020, 2:11 PM Reply Quote 0
                  • P
                    PeterJones @andrecool-68
                    last edited by Nov 9, 2020, 2:11 PM

                    @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)

                    A 1 Reply Last reply Nov 11, 2020, 11:37 AM Reply Quote 2
                    • A
                      andrecool-68 @TroshinDV
                      last edited by Nov 9, 2020, 6:22 PM

                      @Дмитрий-Трошин 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
                      • T
                        TroshinDV @andrecool-68
                        last edited by Nov 10, 2020, 1:42 AM

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

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

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

                        1 Reply Last reply Reply Quote 0
                        • A
                          Adriano Ellero
                          last edited by Nov 11, 2020, 11:33 AM

                          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
                          • A
                            Adriano Ellero @PeterJones
                            last edited by Nov 11, 2020, 11:37 AM

                            @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)…

                            F 1 Reply Last reply Apr 21, 2021, 2:06 PM Reply Quote 0
                            • F
                              Frustrated Surfer @Adriano Ellero
                              last edited by Frustrated Surfer Apr 21, 2021, 2:07 PM Apr 21, 2021, 2:06 PM

                              @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