Formatting js file
-
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?
-
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.
-
Thank you Peter. I appreciate the quick reply.
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