Syntax Coloring

Source code is colored in the DVT editor. Some language constructs are colored based on a syntactical analysis of the code, while others require a more elaborate semantic analysis, as detailed in the table below. Semantic coloring is only performed when the source code is compiled.

Category

Requires compilation

Details

Actions

y

Action Handles

y

Arguments

y

Function arguments

Comment Hyperlinks

Comment Pragmas

y

Compilation is required for Custom Pragmas

Comments

Components

y

Component Instances

y

Default

Any word which does not belong to other categories

Enum Items

y

Fields

y

Functions

y

Inputs

y

Javadoc Tags

Keywords

Labels

y

Labeled sub-activities

Locks

y

Numbers

Outputs

y

Pool of Flow Objects

y

Pool of Resource Objects

y

Shares

y

Static Const Fields

y

Strings

Symbols

y

Task Tags

Template Identifiers

Types

y

Enums, resources, structs etc.

Variables

y

You can change the coloring style for each of the categories. Go to Window > Preferences > DVT > PSS > Editor > Syntax Coloring, select the category you wish to modify from the list and set the color and font style.

../../_images/pss_highlight_prefpage.png

A code sample in the Syntax Coloring preference page helps you preview the changes instantly. The default style is shown below:

../../_images/pss_highlight_preview.png