
76
4.11 Syntax Coloring
To enhance code readability, the HEW editor can display specific strings (i.e. keywords) in different colors. For
instance, C source code comments could be shown in green and C types (e.g. int) could be shown in blue.
The coloring method used can be specified on a file group by file group basis. For example, you can define
different color schemes for a C source files, text files, map files or even your own files.
To change existing colors:
1. Select [Tools->Format Views...]. The “Format Views” dialog will be displayed.
2. Select the item underneath the icon in the tree you wish to modify the colour for. This should be the file
type (e.g. C source file) and correct keyword group (e.g. identifier or pre-processor).
3. Select the “Colour” tab.
4. Modify the “Foreground” and “Background” color lists as desired. The color “System” refers to the
current window foreground and background settings in control panel.
5. Click “OK” for the new colors to take effect.
To create new keyword groups:
1. Select [Tools->Format Views...]. The “Format Views” dialog will be displayed.
2. Select the file type in the tree to which you wish to add the new keyword group.
3. Click “Add…” underneath the tree. The “Add Category” dialog box will be displayed (figure 4.11). Enter
the name of the keyword group in the “Category Title” field, then click “OK” to create the new keyword
group.
Figure 4.11: Add Category Dialog
To create new keywords:
1. Select [Tools->Format Views...]. The “Format Views” dialog will be displayed.
2. Select the item underneath the source view icon in the tree you wish to modify the syntax highlighting
for. This should be the file type (e.g. C source file) and correct keyword group (e.g. identifier or pre-
processor).
3. Select the “Keywords” tab (figure 4.12).
Kommentare zu diesen Handbüchern