Desktop Tools and Development Environment Previous page   Next Page

Syntax Highlighting

Some entries appear in different colors to help you better find elements, such as matching if/else statements. This is known as syntax highlighting. You can change the colors using preferences. Note that output does not appear with syntax highlighting, except for errors. For more information, see Colors Preferences for Desktop Tools.

Image of Command Window showing example of syntax highlighting with the default colors.

You can set Command Window preferences that cause MATLAB to notify you about matched and unmatched delimiters. For example, when you type a parenthesis or another delimiter, MATLAB highlights the matched parenthesis or delimiter in the pair. To set these preferences, select File -> Preferences -> Command Window -> Keyboard and Indenting. This feature operates like parentheses matching in the Editor/Debugger. For a description, see Parentheses Matching Preferences for the Editor/Debugger in the online documentation.


Previous page  Case and Space Sensitivity Cut, Copy, Paste, and Undo Features Next page

© 1994-2005 The MathWorks, Inc.