For a while I have been offering experimental versions of GExperts. These versions are always based on the current SubVersion repository code of the GExperts project. In addition to the normal functionality they include the code formatter formerly known as DelForEx (link no longer available). The code has kindly been donated by Egbert van Nes.
Apart from integrating it into GExperts I have also done a lot of cleanup and bugfixing to the formatter code. It also knows some of the “new” (with Delphi 200x) language constructs. Also, this version tries to preserve the bookmarks and breakpoints (which unfortunately does not always work).
NOTE: As of 2016-05-07 I am providing installers for each supported Delphi versions. So you no longer need the official installer to install my experimental GExperts version.
So, the below only applies to the older archives.
It is planned that the code formatter will be part of the next official GExperts release. Until then (and probably after that) I will be offering experimental versions. Those versions are a patch for an existing GExperts installation. The archive contains:
- GExperts for the supported Delphi versions (6, 7, 2005-2010, XE1-XE8, 10) where the formatter is implemented as an editor expert
- Several predefined settings for use in the formatter, the default is FormatterSettings-Borland
- A sample sourcecode file that is used inside the configuration dialog for previewing the formatting
- A bunch of Register-GExperts-Xxx.cmd scripts for registering the GExperts DLL for the various windows version if it hasn’t be done by the official installer. (see !Readme-Install.txt for an explanation)
To install it, you must first download and install the corresponding release of GExperts (currently GExperts 1.38 Beta). To install manually without the official installer, see the included !ReadMe-Install.txt file. Afterwards you copy the file preview.pas and all the .ini files to the GExperts installation directory. In addition you need one of the .dlls. Choose the one that corresponds to your Delphi version and replace the existing GExpertsXxxx.dll file with the one from the ZIP archive.
The code formatter is an editor expert. Editor experts are listed on their own tab page of the GExperts configuration dialog. There you can define a shortcut key and open the configuration dialog.
(Click the picture to get an animated gif showing you how to configure and use it.)
Editor experts are listed under the GExperts menu’s Editor Experts entry but are usually activated using the configured shortcut.
Download current version:
- GExperts 1.38 experimental twm 2016-07-24
- GExperts 1.38 experimental twm 2016-06-05
- GExperts 1.38 experimental twm 2016-05-26
- GExperts 1.38 experimental twm 2016-05-07
- GExperts-1.38-experimental-twm-2016-01-09.zip WARNING: This versionis buggy!
- GExperts-1.37-experimental-twm-2012-11-04.zip WARNING: This version is buggy!
even older versions are available from my old home page.
Several people have asked me to provide the source code. It has always been available from the GExperts SubVersion repository
Look into the formatter branch (old versions were based on the CVS repository.).