Development Environment |
Syntax Highlighting and Parentheses Matching
Some entries appear in different colors to help you better find elements, such as matching if/else
statements, which is known as syntax highlighting. Additional features allow you to easily see the matched pair for a parenthesis or other delimiter.
The colors and parentheses matching options listed here are the defaults. You can change them using preferences. See Font & Colors Preferences for the Command Window, and Parentheses Matching Preferences.
for
, or a continuation (ellipsis ...
), and it is colored blue. Lines you enter between the opening and closing flow control functions are indented.
%
, and what follows on the line appears in green. That information is treated by MATLAB as a comment.
!
(shell escape), and the line appears in gold.
Note that output does not appear with syntax highlighting, except for errors.
Entering Multiple Functions in a Line | Command Line Editing |