Desktop Tools and Development Environment |
C/C++ Language Preferences
Select File -> Preferences -> Editor/Debugger -> Language -> C/C++ to specify preferences for editing C or C++ language files.
Syntax Highlighting
Select the Enable syntax highlighting check box to show colors that help you identify certain C constructs, such as methods. Specify the colors used for these elements.
Show methods. Text style for methods to appear in when you type them: Bold, Italic, or Plain (no special highlighting).
Keywords. Color for keywords, such as if
.
Strings. Color for terms enclosed in double quotation marks, for example, "default"
.
Characters. Color for terms enclosed in single quotation marks, for example, 'a'
.
Comments. Color for text following the comment indicator, //
, as well as for the block comment indicators, /*
and */
, and the code in between.
Preprocessor. Color for text following the preprocessor symbol, #
.
Bad characters. Color for illegal characters.
Indenting for Enter Key
Select the style of indenting you want the Editor/Debugger to use for C/C++ files. The style applies when you press the Enter key to type in a new line. The styles of indenting are the same as those used for M-files. For details and examples, see the M-file preference for indenting.
See Also
M Language Preferences | Java Language Preferences |
© 1994-2005 The MathWorks, Inc.