prettyprinter

Jesse Phillips jessekphillips+D at gmail.com
Fri Dec 16 15:58:18 PST 2011


On Fri, 16 Dec 2011 23:59:58 +0100
"Paul D. Anderson" <paul.d.removethis.anderson at comcast.andthis.net>
wrote:

> Does anyone know of a prettyprint program for D code?
> 
> I use a text editor rather than an IDE and it would be nice if I 
> could standardize the format of my code. It's not onerous to do 
> it by hand but it can be tedious.
> 
> My text editor (Boxer) does pretty well on syntax highlighting 
> (other than not recognizing 1_000_000 as a numeric literal and 
> not understanding /+ +/ comment delimiters). But it doesn't 
> reformat code to a particular style.
> 
> Thanks,
> 
> Paul

While this is likely a bad recommendation for Windows, indent is
usable. I haven't figured out what configuration gets me what I want
though.

And depending on your attachment, my recommendation of Vim might not be help.


More information about the Digitalmars-d-learn mailing list