Board index » delphi » new experimental version of GExperts with the code formatter
Thomas Mueller
![]() Delphi Developer |
Thomas Mueller
![]() Delphi Developer |
new experimental version of GExperts with the code formatter2006-01-14 09:44:30 PM delphi166 Hi, It took me a week longer than I thought, but it is there now, a new experimental version of GExperts with the Code Formatter. I have fixed the bug that made (* followed by a line feed truncate the source code and also added support for some new Delphi 2006 language extensions, in particular the methods and operators for records. You can download it from www.dummzeuch.de As always I would like to get feedback. regards twm |
Robert Marquardt
![]() Delphi Developer |
2006-01-15 12:00:14 AM
Re:new experimental version of GExperts with the code formatter
Thomas Mueller writes:
QuoteAs always I would like to get feedback. else // wrong indent here if then else Is that bug still alive? Also the {$IFDEF} handing was always inadequate. It needs its own indent position handling separate from the code indent position. {$IFDEF } type blablah = record end; // this should be aligned to the IFDEF {$ENDIF} |
Thomas Mueller
![]() Delphi Developer |
2006-01-15 01:04:20 AM
Re:new experimental version of GExperts with the code formatter
Hi Robert,
Robert Marquardt writes: QuoteDelForEx had a long-standing bug in the if handling. else // wrong indent here if then else Looks OK to me. QuoteAlso the {$IFDEF} handing was always inadequate. twm |
Joe Hendricks
![]() Delphi Developer |
2006-01-15 01:07:52 AM
Re:new experimental version of GExperts with the code formatter
Thomas Mueller writes:
Quoteextensions, in particular the methods and operators for records. problems at all (my comments are all // or plain {}). I'll try some new record members on this new version and let you know. Were there any other speciic things you'd like tested besides records and {* style comments ? JoeH |
Andr?Prins
![]() Delphi Developer |
2006-01-15 01:23:38 AM
Re:new experimental version of GExperts with the code formatter
Thomas Mueller writes:
QuoteAs always I would like to get feedback. -- Andr?Prins Twain Development |
Ian Branch
![]() Delphi Developer |
2006-01-15 11:41:56 AM
Re:new experimental version of GExperts with the code formatter
How does this fit with those that have the original Code Formatter
installed..? Ian |
Robert Marquardt
![]() Delphi Developer |
2006-01-15 02:08:16 PM
Re:new experimental version of GExperts with the code formatter
Thomas Mueller writes:
QuoteIt gets indented like this: QuoteThat's still as it was. Hm, it shouldn't be too difficult to implement this. |
Thomas Mueller
![]() Delphi Developer |
2006-01-15 06:05:49 PM
Re:new experimental version of GExperts with the code formatter
Hi,
Robert Marquardt writes: Quote>It gets indented like this: ... else if ... then ... else if ... then ... possibly with begin ... end sprinkled in like this: if ... then begin ... end else if ... then begin ... end else if ... then begin end; Both are currently possible, use "hanging begin" style for the second one and turn off "linebreak between else and if" for both. twm |
Thomas Mueller
![]() Delphi Developer |
2006-01-15 06:08:06 PM
Re:new experimental version of GExperts with the code formatter
Hi Joe,
Joe Hendricks writes: Quote>...As always I would like to get feedback. QuoteI'll try some new record members on this new version a few Delphi 2006 language enhancements that don't work. twm |
Thomas Mueller
![]() Delphi Developer |
2006-01-15 06:09:27 PM
Re:new experimental version of GExperts with the code formatter
Hi,
Andr?Prins writes: Quote>As always I would like to get feedback. twm |
Thomas Mueller
![]() Delphi Developer |
2006-01-15 06:10:55 PM
Re:new experimental version of GExperts with the code formatter
Hi,
Ian Branch writes: QuoteHow does this fit with those that have the original Code Formatter As for having both installed at the same time: I know of no problems there, as long as you don't assign the same shortcuts. twm |
matthew
![]() Delphi Developer |
2006-01-16 05:44:00 AM
Re:new experimental version of GExperts with the code formatter
I'll try this soon, since I use the "old" one to reformat code I have
inherited. The one thing I would really like is to be able to use real tabs for the indenting. I currently have a thing called "entab" (on my web site) to do this after reformatting, but it can not be hard to change the "insert n-spaces" to have a tab option I would have thought. Thanks for considering it! 8-) /Matthew Jones/ |