pretty-print Questions
1
Solved
I'm new to haskell, and i read through and digested Learn You A Haskell For Great Good, trying out a couple of things along the way. For my first project i wanted to try the classic: FizzBuzz. So i...
Overprint asked 6/1, 2010 at 21:44
2
Solved
I'm fairly new to ruby, and am configuring IRB. I like pretty print (require 'pp'), but it seems a hassle to always type pp for it to pretty print it. What I'd like to do is make it pretty print by...
Nevis asked 13/11, 2009 at 20:48
1
Solved
In Python I can use locale.format to pretty-print numbers according to locale setting:
>>> import locale
>>> locale.setlocale(locale.LC_ALL, "en_US.UTF-8")
'en_US.UTF-8'
>>...
Shirtwaist asked 7/9, 2009 at 8:31
1
Solved
I've been looking after this for months now and I mostly found sites asking the same question.
The answers I did found were always for .NET or C++ or involved XSLT.
Gabrielson asked 13/7, 2009 at 9:54
1
Solved
A problem that has frequently come up in my career is I have some kind of data structure (perhaps an s-expression) and I want to print it in a human readable form complete with reasonable indentati...
Allow asked 29/4, 2009 at 13:20
0
I'd like to reformat some SQL statements that are a single string with newlines in to something that's much easier to read.
I don't personally know of a good coding style for indenting SQL -...
Weanling asked 28/4, 2009 at 14:14
63
Is there a (Unix) shell script to format JSON in human-readable form?
Basically, I want it to transform the following:
{ "foo": "lorem", "bar": "ipsum" }
.....
Knotty asked 9/12, 2008 at 8:20
34
Solved
I might be one anal programmer, but I like code that looks good from a distance. I just found myself lining up a CSS style so that instead of this:
#divPreview {
text-align: center;
ver...
Detector asked 14/11, 2008 at 17:36
2
Solved
I'm hoping that someone has found a way of doing this already or that there is a library already in existence. It's one of those things that would be nice but is in no way necessary for the time be...
Minaret asked 6/11, 2008 at 12:9
5
I'm looking for a tool that can pretty-print (AKA tidy or beautify) source code in as many languages as possible. Those I'm particularly keen on include:
Java
JSP
HTML
JavaScript
SQL
JSON
XML...
Ganda asked 30/10, 2008 at 20:22
5
Solved
Anyone got a ready made function that will take an XML string and return a correctly indented string?
eg
<XML><TAG1>A</TAG1><TAG2><Tag3></Tag3></TAG2><...
Pleo asked 24/10, 2008 at 15:38
2
When I run indent with various options I want against my source, it does what I want but also messes with the placement of *s in pointer types:
-int send_pkt(tpkt_t* pkt, void* opt_data);
-void ...
Manny asked 19/9, 2008 at 13:30
© 2022 - 2024 — McMap. All rights reserved.