Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
February 05, 2006 code beautifier | ||||
---|---|---|---|---|
| ||||
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 Re: code beautifier | ||||
---|---|---|---|---|
| ||||
Posted in reply to pragma | 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 Re: code beautifier | ||||
---|---|---|---|---|
| ||||
Posted in reply to pragma | 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 Re: code beautifier | ||||
---|---|---|---|---|
| ||||
Posted in reply to A | 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 Re: code beautifier | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jari-Matti Mäkelä | 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 Re: code beautifier | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ilya Zaitseff | 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 Re: code beautifier | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jari-Matti Mäkelä | 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.
|
Copyright © 1999-2021 by the D Language Foundation