On Mon, 19 Mar 2007 09:49:42 +0200
"Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:
> On 3/17/07, Vincent Snijders <[EMAIL PROTECTED]> wrote:
>
> > There is prettyformat in the lazarus\components directory. It is an
> > IDE plug-in. It doesn't work too well in my experience though, but
> > that might be just that its default settings are not good enough.
>
>
> I forgot about that, and it's exactly what I want. I had a look at
> the prettyformat package and it uses 'ptop', or at least the code of
> 'ptop'.
>
> I agree with you, the default formatting settings suck! :-)
> I'm working on a config file to format code as per Borland's Object
> Pascal coding standards.
>
> The other problem I have, is duplication. Why does Lazarus have a copy
> of the ptopu.pp unit?
Because the .ppu file is not part of fpc 2.0.4 and the ptopu.pp are
different.
> Yes there are some minor changes, but that is
> something that should rather go to the FPC code as well.
Minor? I got a quite big diff.
> Why can't we
> just use the unit that is part of FPC in the /utils directory? That
> way if we or anybody else for that matter makes future changes or
> improvements to the unit, both Lazarus and FPC benefits from it.
> Can Lazarus find/reference units in the FPC's /utils directory?
Sure. Add $(FPCSrcDir)/utils/ to the unit path.
Mattias
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives