I would like a notepad for Mac OS that pretty prints JSON and XML copied from a server console, just like notepad++ did on pc with JSON and XML plugins.
2 Answers
Have a look at Atom. It provides XML and JSON syntax highlighting.
On the lower right corner click on Plain text if auto-detection does not work (e.g. when copying example XML into the editor) and select XML or JSON.
- I tried atom but if the text I copy is in 1 line, it doesn't pretty print it in multiple lines like notepad++ plugins.papakias– papakias2017-03-27 21:27:13 +00:00Commented Mar 27, 2017 at 21:27
- 2Install the plugin atom-beautify for source beautifying (
apm install atom-beautify). It takes code that is in one line and makes several lines with proper indentation. Is this what you want?Michael S.– Michael S.2017-03-28 13:28:55 +00:00Commented Mar 28, 2017 at 13:28 - 1that is exactly what i want!papakias– papakias2017-03-28 15:32:57 +00:00Commented Mar 28, 2017 at 15:32
CudaText works on macOS, and it has plugins for pretty printing of JSON and XML. They are named JSON Format, and XML Format. Install them via Plugins / Addon Manager.
To enable plugins, you must install Python engine from python.org.
