pretty-printing

Pretty printing/code butifyer for JSP and XML?

I use a text editor and the commandline for my Java development. I use Artistic Style to format my Java code. I'm looking for a tool that can be run from the commandline that can format JSP pages as well as XML config files such as those used by Spring. ...

Java: Easier pretty printing?

At the end of my computations, I print results: System.out.println("\nTree\t\tOdds of being by the sought author"); for (ParseTree pt : testTrees) { conditionalProbs = reg.classify(pt.features()); System.out.printf("%s\t\t%f", pt.toString(), conditionalProbs[1]); System.out.println(); } This produces, for instance: Tree Odds of...

Does Google Prettifier Supports Syntax highlightation of C#?

I've started working on google prettifier to highlight the syntax. Just had a doubt whether google prettifier supports C# syntax highlightation or not. If yes, which .js file i need to include in my application? ...

How do I move printing position up one line in terminal.

I'm already aware of using \b and \r to move back one character and to the beginning on the line respectively. But is there a way, (specifically in python,) to move the cursor position up 1 line? I'm trying to avoid using curses, but if this is the best option then so be it. ...