Go to Glossary Search VisualAge C++ Help Go to VisualAge C++ Help Home Page Go to WWW VisualAge C++ Site

Token Attributes

Use this dialog box to change the display attributes assigned to the tokens available in the current file view. Controls found in this dialog box are listed below:

Sample code box shows how the various tokens in the current file type are highlighted. You can select a token type from the sample code box by clicking on an example of the desired token type. Changes to the color and text highlighting of a token are reflected immediately in the sample code box.
Note: The Editor includes sample code for a variety of language profiles. The samples are found in the macros directory.
Uses the /usr/vatools/macros directory.
Uses the product_installation\macros directory.
The file name of a sample file is the same as its corresponding language load profile, but with a file name extension of .smp. You can modify these samples, or add your own samples to accompany language load profiles that you create.
Token type displays changes made to display attributes. If you want to change the display attributes for another type of token, click on the down arrow to scroll through a list of token types recognized by the language profile associated with the current file.
Note: The list includes a default token type, which represents any other tokens not listed.
Foreground previews and changes the foreground color used for the current token type. The name of the current token type is shown in the Token type field.

Available foreground colors are shown with the current background color in the color button area, with the button corresponding to the current foreground color outlined in black. To choose a different foreground color for the selected token type, click one of the color buttons. Text in the sample code box corresponding to that token type changes to show the new foreground color.
To choose a foreground color for a different token type, you must first select another choice from the Token type field.

Background changes the background color used for the current token type. The name of the current token type is shown in the Token type field.

Available background colors are shown with the current foreground color in the color button area, with the button corresponding to the current background color outlined in black. To choose a different background color for the selected token type, click one of the color buttons. Text in the sample code box corresponding to that token type changes to show the new background color.
To choose a background color for a different token type, you must first select another choice from the Token type field.

Font requests you to select one or more of these options to set the type style for the item selected in the Token type list:
  • Reverse
  • Italic
  • Bold
  • Underline.

Changes to the font, for the selected token, are reflected immediately in examples of that token type in the sample pane.

OK applies changes you have made in this dialog box, and returns you to the Editor.
Undo any changes you have made. Token attributes are restored to those in effect when you first opened this dialog box.
Defaults changes all token display attributes to the Editor installation defaults.
Cancel closes this dialog box without applying any changes to token attributes, and returns to the Editor.