code-formatter

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. ...

Visual Studio unmanaged C++ code formatter

When I type this line of code: QString newPath = QFileDialog::GetOpenFileName(this, tr("Open Image"), path, tr("Image files (%1)").arg(formats.join(" "))); I typically format it like this: QString newPath = QFileDialog::GetOpenFileName(this, tr("Open Image"), ...

Lyx: Can I beautify JSON inside a document?

I was wondering if anyone knew how to beautify or format JSON inside a Latex document. I am using Lyx as a front-end for writing the latex file. Are there any addons that people use? I tried to search but am not able to get anything relevant. ...

Problem formatting in Eclipse

I have a method in Eclipse as below. public String toString() { return "HouseVo [ " + "Name : " + this.name == null ? "" : this.name + "Address : " + this.address == null ? "" : this.address; } When I format it becomes: return "HouseVo [ " + "Name : " + this.name == null ? "" : this.name + "Address : " + this.ad...

Flexible C code formatter software

I'm looking for a very flexible C code formatting solution. Here's the context: I need to convert some external C code to my organization's "coding rules". For example, these rules demand that I put the type of each variable in its name (int_foo, pfloat_bar, etc.). Most of these rules are completely absurd but I don't have a choice. I ...