Desktop Tools and Development Environment Previous page   Next Page

Syntax Highlighting Colors

In the Command Window, Command History, Editor/Debugger, and Shortcuts callback area, MATLAB conveys syntax information via different colors to help you easily identify elements, such as if/else statements. This is known as syntax highlighting.

In the Command Window, only the input you type is highlighted; output from running MATLAB functions is not highlighted. In the Editor/Debugger, you can specify syntax highlighting preferences for use with files in C/C++, Java, and HTML. For details, click the Help button in the preferences dialog box for the Editor/Debugger to see Language Preferences in the online documentation.

Use preferences to specify the syntax highlighting colors. When you choose a color, the Sample area in the dialog box updates to show you how it will look.

Image of sample area for colors preferences.

The default colors are listed here:

Click Restore Default Colors to return to the default settings for syntax highlighting colors and desktop tool colors.

See Also

For information about other preferences and how MATLAB stores preferences, see About Preferences.


Previous page  Colors Preferences for Desktop Tools General Preferences for MATLAB Next page

© 1994-2005 The MathWorks, Inc.