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.