• Login
Community
  • Login

Some XML files won't open decently in Notepad ++

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 4 Posters 3.4k 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.
  • G
    gev kavorg
    last edited by Aug 23, 2019, 7:55 PM

    Some XML files in Notepad ++ open as 1 line, although the same file is opened perfectly (showing it’s structure) in Internet explorer, or Ultra edit after clicking on FIle menu/Format/XML Convert to CR/LFs. Is there a way to open it as expected in Notepad ++?

    A S 2 Replies Last reply Aug 23, 2019, 8:00 PM Reply Quote 0
    • A
      Alan Kilborn @gev kavorg
      last edited by Aug 23, 2019, 8:00 PM

      @gev-kavorg

      decently

      Decently?
      Notepad++ is just showing you what is there, textually.
      Perhaps the XML Tools plugin will help you?

      1 Reply Last reply Reply Quote 2
      • S
        supasillyass @gev kavorg
        last edited by Aug 23, 2019, 8:37 PM

        @gev-kavorg

        I suspect the file actually is just one looooong line. I don’t know about UltraEdit, but I know Internet Explorer automatically pretty prints single-line XML files. The plugin suggested by @Alan-Kilborn can do it for you (select “with line breaks”), but I don’t think it can be done automatically upon opening a file (anyone?).

        1 Reply Last reply Reply Quote 2
        • P
          PeterJones
          last edited by Aug 23, 2019, 9:15 PM

          @supasillyass said:

          I don’t think it can be done automatically upon opening a file (anyone?).

          Natively, no. But with one of the scripting plugins (like PythonScript), you could create a callback on the file-open event, and have it run the appropriate XML Tools command when it sees the right extension or right file type.

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