![]() |
Nilorea Library
C utilities for networking, threading, graphics
|
Lexical pretty-printers for JSON, XML/HTML and JavaScript text. More...
#include "nilorea/n_str.h"
Include dependency graph for n_pretty.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| N_STR * | n_pretty_js (const char *text) |
| Conservatively re-indent JavaScript (newlines at top-level braces and semicolons, two-space indent by brace depth). | |
| N_STR * | n_pretty_json (const char *text) |
| Reformat a JSON document with cJSON (parse + print). | |
| N_STR * | n_pretty_xml (const char *text) |
| Re-indent an XML or HTML document (one tag or text run per line). | |
Lexical pretty-printers for JSON, XML/HTML and JavaScript text.
Definition in file n_pretty.h.