Top "Pretty-print" questions

Prettyprint (or pretty-print) is the application of any of various stylistic formatting conventions to text, source code, markup, and other similar kinds of content.

Python: limit the width of printed columns of pandas DataFrame

I am trying to print a pandas DataFrame. One of the columns is too wide (it is a very long …

python python-2.7 pandas pretty-print tabular
Printed length of a string in python

Is there any way to find (even a best guess) the "printed" length of a string in python? E.g. …

python string pretty-print tty
Pretty print in lxml is failing when I add tags to a parsed tree

I have an xml file that I'm using etree from lxml to work with, but when I add tags to …

python xml parsing lxml pretty-print
Prevent Visual Studio 2015 from removing line continuation characters (_) in VB.NET files

I'm opening some old VB.NET projects in Visual Studio 2015 and when I edit the code, VS changes the syntax: …

vb.net visual-studio-2015 code-formatting pretty-print line-continuation
pretty print to a file in ruby

I am trying to pretty print a hash to a file. I tried unix redirects [added different flags to it …

ruby file-io pretty-print
MSXML from C++ - pretty print / indent newly created documents

I'm writing out XML files using the MSXML parser, with a wrapper I downloaded from here: http://www.codeproject.com/…

xml msxml pretty-print
How can I pretty-print XML source using VB6 and MSXML?

I've been looking after this for months now and I mostly found sites asking the same question. The answers I …

vb6 msxml pretty-print
Best way to pretty print XML response in grails

Given this in a grails action: def xml = { rss(version: '2.0') { ... } } render(contentType: 'application/rss+xml', xml) I see …

xml grails groovy render pretty-print
How do I pretty-print JSON in Delphi?

I am looking for a function that will take a string of JSON as input and format it with line …

json delphi formatting pascal pretty-print
How do I use Python's pprint module to pretty print out dictionary key value pairs nested with in a list?

I would like to pretty print out each key value pair from dictionaries which are nested in a list. So …

python list dictionary pretty-print pprint