Community
    • Login

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

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 4 Posters 4.5k Views 2 Watching
    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 kavorgG Offline
      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 KilbornA supasillyassS 2 Replies Last reply Reply Quote 0
      • Alan KilbornA Offline
        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
        • supasillyassS Offline
          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
          • PeterJonesP Offline
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors