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 |
---|---|---|
Arguments |
y |
Function and procedure arguments |
Attributes |
y |
|
Comment Hyperlinks |
||
Comment Pragmas |
y |
Compilation is required for Custom Pragmas |
Comments |
||
Constants |
y |
|
Default |
Any word which does not belong to other categories |
|
End Labels |
y |
|
Enumeration Literals |
y |
|
Functions, Procedures |
y |
|
Javadoc Tags |
||
Keywords |
||
Labels |
y |
|
Numbers |
||
Ports - Input, Inout |
y |
|
Ports - Output |
y |
|
Record Elements |
y |
|
Signals |
y |
|
Strings |
||
Task Tags |
||
Template Identifiers |
||
Types |
y |
Entities, user defined types, components |
Variables |
y |
You can change the coloring style for each of the categories defined in the table above. Go to
, select the category you wish to modify from the list and set the color and font style.
A code sample in the Syntax Coloring preference page helps you preview the changes instantly. The default style is shown below:
