pretty (582)


Pretty printing XML files on Emacs

Pretty printing XML files on Emacs

I use emacs to edit my xml files(nxml-mode) and the files were generated by machine don't have any pretty formatting of the tags. I have searched for pretty printing the entire file with indentation a…


How can I beautify JavaScript code using Command Line?

I am writing a batch script in order to beautify JavaScript code. It needs to work on both Windows and Linux.How can I beautify JavaScript code using the command line tools?…


java - How do I change XML indentation in IntelliJ IDEA?

By default IntelliJ IDEA 7.0.4 seems to use 4 spaces for indentation in XML files. The project I'm working on uses 2 spaces as indentation in all it's XML. Is there a way to configure the indentati…



How can I “pretty” format my JSON output in Ruby on Rails?

I would like my JSON output in Ruby on Rails to be "pretty" or nicely formatted. Right now, I call to_json and my JSON is all on one line. At times this can be difficult to see if there is a problem…


What is the.NET equivalent of PHP var_dump?

I remember seeing a while ago that there is some method in maybe the Reflection namespace that would recursively run ToString() on all of an object's properties and format it nicely for display. Ye…


asp.net - How do you serialize javascript objects with methods using JSON

I am looking for an enhancement to JSON that will also serialize methods. I have an object that acts as a collection of objects, and would like to serialize the methods of the collection object as w…


Directory-tree listing in Python

How do I get a list of all files(and directories) in a given directory in Python?…


JavaScript data formatting/pretty printer

I'm trying to find a way to pretty print a JavaScript data structure in a human-readable form for debugging. I have a rather big and complicated data structure being stored in JS and I need to write…


How to pretty print XML from Java?

I have a Java String that contains XML, with no line feeds or indentations. I would like to turn it into a String with nicely formatted XML. How do I do this? String unformattedXml="<tag><nested>hel…


php - How can I capture the result of var_dump to a string?

I'd like to capture the output of var_dump to a string. The PHP docs say; As with anything that outputs its result directly to the browser, the output-control functions can be used to capture the out…




print json string python array object file php format javascript