Delforexp


DelForExp, a freeware Pascal source code formatter for Delphi




New: The source of the formatter engine is now available for download.


Description

DelForExp is a FREEWARE Delphi source code formatter that really works.
It improves:
  • the indentation
  • spacing
  • capitalization
  • use of blank lines of Delphi source code.
To do so the source code is parsed and lots of special constructs are tested. At default, the style of the Borland source code is followed closely, since this is the most widely accepted style. But formatting of Pascal code is much a matter of taste and debate (see below). Therefore, some alternative rules are included. DelForExp is available as Delphi 2/3/4/5/6/7/9/2007 expert. It can optionally process the whole currently opened project. 

 
The box with the additional options



DelFor, the standalone version of DelForExp


There is also a standalone version of the program available. It includes a Delphi look-and-feel editor, with a high capacity. It is easy to open and processing many files by automatically loading whole projects or by selecting multiple files in the open file dialog.
The formatter engine is the same as DelForExp.

You can use this program as a standalone program or add it to the Tools menu of the Delphi IDE:
  1. press in Delphi Configure Tools
  2. press Add
  3. Enter a Title
  4. Enter the full path of the program (or use browse button)
  5. Enter in the parameter field: $EDNAME $SAVE (Delphi saves the topmost editor window and DelFor opens with that file)
  6. OK and Close

The editor makes use of a freeware component that was created by Marten Waldenburg and participants of the mwEdit project (recently changed in SynEdit, you still can download the latest version there) .



Questions about DelForExp? See the DelForExp FAQ


Downloads



What is new?

  • Version 2.4.2 (August 2001):
    • Instead of moving //-comments (being a continuous source of bugs) these comments are changed in {}-comments
      i.e. the code:
      if t // comment
      then k;

      is now changed into:
      if t {// comment} then
      k;


  • Version 2.4.1 (June 2001):
    • Delphi 6 support (thanks to Antti Lukas)
  • Version 2.4.1:
    • 'Borland style' button
    • New option: always add a break after then etc. including single lines
    • Some bug fixes
  • Version 2.4:
    • The engine is in a DLL now, other source code is free.
    • Some bug fixes
  • Version 2.3.1:
    • Some bug fixes
  • Version 2.3:
    • Delphi 5 support
    • More detailed options for spacing
    • Preview window
    • Break between every unit in "uses"
    • Some bug fixes
  • Version 2.2.3:
    • Added "use and add" mode to file with capitalization of identifiers
    • Created editor of file with identifiers
    • Some bug fixes
  • Version 2.2.2:
    • Link to this web page
    • Remove double blank lines option
    • Some bug fixes
  • Version 2.2.1:
    • Customizable menu shortcuts
    • Some more bug fixes
  • Version 2.2:
    • Delphi 4 support
    • New language elements of Delphi 4 supported
    • Some bug fixes


Contact with the author

author: Egbert van Nes
other component: TExpressionParser, a freeware expression parser with source.

  
Print this page

Aquatic Ecology and Water Quality Management Group
  News
  About
  Education
  Research
  Publications
  Staff
  Contact details