Community
    • Login

    Formatting js file

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 4.2k 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.
    • James JordanJ
      James Jordan
      last edited by

      I have have some .js files that open formatted and others that open as one long line. How can I get the one long line formatted so I can read it?

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @James Jordan
        last edited by

        @James-Jordan ,

        Notepad++ doesn’t have a native re-format for JSON (or anything else).

        However, there are multiple JSON plugins (like JSON Tools and JSON Viewer) available from the Plugins Admin; one or more of those plugins have ways to reformat the JSON to be either one-line-per-item or one-long-line. You will have to play with the plugins to see which one has results you prefer, and which one has the additional features you want (or end up keeping multiple of the JSON plugins), because those are matters of opinion and need, and I cannot tell you which will be best for your needs and preferences.

        James JordanJ 1 Reply Last reply Reply Quote 2
        • James JordanJ
          James Jordan @PeterJones
          last edited by

          Thank you Peter. I appreciate the quick reply.

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