pretty print XML

1 view
Skip to first unread message

ain.v...@gmail.com

unread,
Dec 20, 2012, 3:50:22 AM12/20/12
to node-...@googlegroups.com
Hi

When dropping an XML file to the nw window the XML is pretty printed, ie syntax hilighted XML is shown where nodes are expandable / collapsible. Looks like there is some built in CSS and XSLT which is used for that... Is this functionality available to the users as well (as a API call), ie can one generate pretty printed html from string or DOM object?


TIA
ain

Jonathan Chayce Dickinson

unread,
Dec 21, 2012, 3:35:42 AM12/21/12
to node-...@googlegroups.com
Apparently devtools uses CodeMirror, it's not a massive stretch of imagination to assume that the browser uses it too.

Jonathan

Jonathan Chayce Dickinson

unread,
Dec 21, 2012, 3:36:27 AM12/21/12
to node-...@googlegroups.com
Linky: http://codemirror.net/

Jonathan
Reply all
Reply to author
Forward
0 new messages