Thread overview
code beautifier
Feb 05, 2006
pragma
Feb 05, 2006
James Dunne
Feb 05, 2006
A
Feb 07, 2006
Ilya Zaitseff
Feb 12, 2006
Ilya Zaitseff
February 05, 2006
Out of curiosity, is anyone around here using a code beautifier for D sourcecode?

If so, what works and what doesnt?

- Eric Anderton at yahoo
February 05, 2006
pragma wrote:
> Out of curiosity, is anyone around here using a code beautifier for D
> sourcecode?
> 
> If so, what works and what doesnt?
> 
> - Eric Anderton at yahoo

Nah, I'm anal-retentive enough about my coding style that I rarely use code beautifiers.  I'll literally make up a phase of development where I run back over my source; fixing up spaces and removing empty lines.

You know the old saying: coding styles are like a$$holes... everyone's got one and nobody likes anyone else's. =P

But to answer your question, I suppose GNU indent would do the trick? I'm not sure how hard-wired it is for C/C++ code specifically... It might choke on /+ +/ comments.
February 05, 2006
On Sun, 05 Feb 2006 15:34:20 +1000, pragma <pragma_member@pathlink.com> wrote:

> Out of curiosity, is anyone around here using a code beautifier for D
> sourcecode?
>
> If so, what works and what doesnt?
>
> - Eric Anderton at yahoo

I have an incomplete automatic indenter for D sources in DDT project.
It is located in DIndenter.java (in eclipseD repository).
I think it can be easily ported to D.
February 06, 2006
A wrote:
> On Sun, 05 Feb 2006 15:34:20 +1000, pragma <pragma_member@pathlink.com> wrote:
> 
>> Out of curiosity, is anyone around here using a code beautifier for D sourcecode?
>>
>> If so, what works and what doesnt?
>>
>> - Eric Anderton at yahoo
> 
> I have an incomplete automatic indenter for D sources in DDT project.
> It is located in DIndenter.java (in eclipseD repository).
> I think it can be easily ported to D.

BTW, how do I install the newest DDT? Installing 0.2.2 is trivial, but the latest version isn't.
February 07, 2006
On Mon, 06 Feb 2006 21:14:55 +1000, Jari-Matti Mäkelä <jmjmak@utu.fi.invalid> wrote:

> A wrote:
>> On Sun, 05 Feb 2006 15:34:20 +1000, pragma <pragma_member@pathlink.com>
>> wrote:
>>
>>> Out of curiosity, is anyone around here using a code beautifier for D
>>> sourcecode?
>>>
>>> If so, what works and what doesnt?
>>>
>>> - Eric Anderton at yahoo
>>
>> I have an incomplete automatic indenter for D sources in DDT project.
>> It is located in DIndenter.java (in eclipseD repository).
>> I think it can be easily ported to D.
>
> BTW, how do I install the newest DDT? Installing 0.2.2 is trivial, but
> the latest version isn't.

Did you tried "find & install" eclipse feature through DDT update site?

Also possible that the last version is broken.
I just have no time to work on DDT now.
February 08, 2006
Ilya Zaitseff wrote:
> On Mon, 06 Feb 2006 21:14:55 +1000, Jari-Matti Mäkelä <jmjmak@utu.fi.invalid> wrote:

>> BTW, how do I install the newest DDT? Installing 0.2.2 is trivial, but the latest version isn't.
> 
> Did you tried "find & install" eclipse feature through DDT update site?
> 
> Also possible that the last version is broken.
> I just have no time to work on DDT now.

Ok, I guess it didn't work since I tried to manually install those jar-packages from dsource. Now that I tried the "official" installer, it complains that the plugin requires a win32 operating system. Too bad I'm running Linux. Is it hard to port DDT to Linux? At least the good old EclipseD-plugin worked fine here.

-- 
Jari-Matti
February 12, 2006
On Thu, 09 Feb 2006 01:52:50 +1000, Jari-Matti Mäkelä <jmjmak@utu.fi.invalid> wrote:

> Ilya Zaitseff wrote:
>> On Mon, 06 Feb 2006 21:14:55 +1000, Jari-Matti Mäkelä
>> <jmjmak@utu.fi.invalid> wrote:
>
>>> BTW, how do I install the newest DDT? Installing 0.2.2 is trivial, but
>>> the latest version isn't.
>>
>> Did you tried "find & install" eclipse feature through DDT update site?
>>
>> Also possible that the last version is broken.
>> I just have no time to work on DDT now.
>
> Ok, I guess it didn't work since I tried to manually install those
> jar-packages from dsource. Now that I tried the "official" installer, it
> complains that the plugin requires a win32 operating system. Too bad I'm
> running Linux. Is it hard to port DDT to Linux? At least the good old
> EclipseD-plugin worked fine here.
>

Maybe win3 requirements have no sense, I dont know it since I dont use linux.
DDT interaction with dmd was written by Eugene Pelekhay.

I didnt write anything platform-specific.