Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Help wanted · · · – – – · · ·
    4
    4
    951
    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.
    • gev kavorg
      gev kavorg last edited by

      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 ++?

      Alan Kilborn supasillyass 2 Replies Last reply Reply Quote 0
      • Alan Kilborn
        Alan Kilborn @gev kavorg last edited by

        @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
        • supasillyass
          supasillyass @gev kavorg last edited by

          @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
          • PeterJones
            PeterJones last edited by

            @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
            • First post
              Last post
            Copyright © 2014 NodeBB Forums | Contributors