matlab.colors Settings
R2026bMATLAB syntax highlighting color settings for light theme
You can customize the colors for syntax highlighting for the light theme using
the matlab.colors settings. Access matlab.colors
settings using the root SettingsGroup object returned by the
settings function. For example, set the temporary value for the
color of comments to [173 235 255] (light blue).
s = settings; s.matlab.colors.CommentColor.TemporaryValue = [173 235 255]
For more information about settings, see Access and Modify Settings Programmatically.
Note
These settings only apply for the light theme. To customize the colors for syntax highlighting for the dark theme, use the Settings window. For more information, see Change Desktop Theme and Colors.
matlab.colors
matlab.colors.commandwindow
matlab.colors.programmingtools
Version History
Introduced in R2018b