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. You can change the coloring style for each of the categories defined in the table above.
Go to
Window > Preferences > DVT > SystemVerilog > Editor > Syntax Coloring, 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:
Note: Inside macro definitions, macro calls and PSL vunits, only syntactic coloring is performed.
|