DelphiXPG Configuration

DelphiXPG allows configuration of,

You can configure these items by selecting File/Options from the main menu.

Delphi Version Information

Delphi version information allows you to define details specific to a version of Delphi, these include,

  • Name used to identify this version of Delphi.
  • VCL source root area, used with "Deep Parse" and "Include VCL Source".
  • Compiler defines.
  • Is .NET, required when adding profiling code.

To add a new item enter a unique "Name" and optionally set the other details, then click the "Add" button.

To amend an item select it in the list and modify the desired items, once complete click the "Replace" button.

To delete an item select it in the list and click the "Delete" button.

The "Browse" button may be used to navigate to the VCL Source area.

To add a new define type the new conditional and click the ">" button.

To remove a define select it from the list and click the "<" button.

To modify a define item, first remove it from the list then modify it and finally add it back in.

Editor Options and Syntax HighHighting

This tab allows you to configure the look and feel of the editor, it is divided in two sub-tabs dealing with general items and syntax highlighting colors.

General

The general tab of the Editor configuration allows you to set input and visual characteristics of the editor.

 

Option Description
Auto Indent When set a new line will indent to the same level as the first preceding non-blank line.
Smart Tab Tabs to the first non-blank character based on the preceding line. Ideal for entering columnar data. This option only applies when "Use Tab Character" is set.
Use Tab Character If this option is not set then spaces are inserted instead of a tab character.
Trim Trailing Spaces Removes trailing spaces from end of a line when moving to another line or jump to end of line.
Tab Width Width of a tab character in spaces.
Font and Font Size May be selected from a list of Fixed Pitch fonts.
Show Gutter When selected a gutter appears in the editor allowing bookmarks and line numbers to be displayed.
Line Numbers When set line numbers are displayed in the gutter.
Color Defines the color for non-code elements.

Note: You can try out the settings in the edit region before committing any changes.

Colors

The colors tab allows you to define syntax highlighting within the editor.

Colors for specific language code elements can be customized by selecting an item from the list. Current settings are shown in the color grid and in the style list. Foreground colors are indicated using "FG" while background use "BG". Custom colors can be chosen by clicking the "Foreground" and "Background" buttons.

Compare Colors

The compare colors tab allows you to set the colors used to indicate changes in modifed source.

Colors for different change elements can be customized by selecting an item from the list or clicking an item in the sample. Current settings are shown in the color grid and in the style list. Foreground colors are indicated using "FG" while background use "BG". Custom colors can be chosen by clicking the "Foreground" and "Background" buttons.

Binary DFMs

DelphiXPG can be configured to automatically convert binary DFMs to text format, this is done be defining the location of the command-line utility convert.exe.

Either type the location in the edit box or use the browse button to locate the folder.

Note: DelphiXPG converts binary DFMs in-place, the original binary file is backed up to the same location but with a ".[dfm]" extension.

<< Global Edit Contents Editor >>
Copyright © 2005-2010, Simon Cox