matlab.colors Settings

MATLAB syntax highlighting color settings

You can customize the colors for syntax highlighting 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.

matlab.colors

Color of syntax errors, specified as a RGB triplet with values in the range [0,255].

Example: s.matlab.colors.SyntaxErrorColor.TemporaryValue = [173 235 255]

Color of keywords, specified as a RGB triplet with values in the range [0,255].

Example: s.matlab.colors.KeywordColor.TemporaryValue = [173 235 255]

Color of strings, specified as a RGB triplet with values in the range [0,255].

Example: s.matlab.colors.StringColor.TemporaryValue = [173 235 255]

Color of system commands, specified as a RGB triplet with values in the range [0,255].

Example: s.matlab.colors.SystemCommandColor.TemporaryValue = [173 235 255]

Color of unterminated strings, specified as an RGB triplet with values in the range [0,255].

Example: s.matlab.colors.UnterminatedStringColor.TemporaryValue = [173 235 255]

Color of comments, specified as a RGB triplet with values in the range [0,255].

Example: s.matlab.colors.CommentColor.TemporaryValue = [173 235 255]

Color of validation sections, specified as a RGB triplet with values in the range [0,255].

Example: s.matlab.colors.ValidationSectionColor.TemporaryValue = [173 235 255]

Introduced in R2018b