Colors Preferences for Desktop Tools

Setting Colors Used in Desktop Tools

Desktop color preferences specify the colors used in MATLAB® desktop tools and the colors that convey syntax highlighting. Select File > Preferences > Colors to set color preferences for desktop tools. You can set some color options differently for printing — see Printing and Page Setup Options for Desktop Tools.

Desktop Tool Colors

Use Desktop tool colors to change the color of the text and background in the desktop tools. The colors also apply to the Import Wizard. The colors do not apply to the HTML display pane nor to the Web Browser.

Select the check box Use system colors if you want the desktop to use the same text and background colors that your platform (for example, Microsoft® Windows®) uses for other applications.

To specify different text and background colors, follow these steps:

  1. Clear the Use system colors check box.

  2. Click the arrow next to the Text color and choose a new color from the palette shown.

    When you choose a color, the Sample area in the dialog box updates to show you how it will look.

  3. Click the arrow next to the Background color and choose a new color.

    If you use a gray background color, a selection in an inactive window will not be visible.

  4. Click Apply or OK to see the changes in the desktop tools.

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

The following illustration shows how the Current Directory browser looks with blue-green text and a beige background. These colors are only discernible in the online version of this documentation.

Image of Current Directory browser with custom colors.

Gray Background Color

For some UNIX® platforms, there is a gray background color for desktop tools, such as the Editor. This occurs when the preference for Desktop tool colors is set to Use system colors, and the system's window manager uses gray as the background color default. To change the color, clear the check box for Use system colors and then select a new Background color from the palette.

M-File Syntax Highlighting Colors

In the Command Window, Command History, Editor, 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; the output from running MATLAB functions is not highlighted.

When you choose a color under the M-file syntax highlighting colors area, 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.

Other Colors

Specify the color for Hyperlinks, which applies to links in the Command Window and Help browser Index pane. If you use a dark background color for those tools, be sure to use a light or other contrasting color for hyperlinks so that you can see them.

With the M-Lint autofix highlight preference selected, code that M-Lint can automatically correct is highlighted in the Editor. Use the palette to change the highlight color. For more information, see M-Lint Automatic Code Analyzer in the Editor.

See Also

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

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS