Ken & Mike on the MATLAB Desktop

June 1st, 2009

Changing the error color for visibility

We understand that colors in the editor can cause difficulty for some users or with certain display devices. Each release we try to make the MATLAB UI more friendly in this area. For MATLAB R2009a, we rolled in some minor enhancements in this area with the new M-Lint display. For example, you can set the color of an error underline from the color preferences: File -> Preferences -> Colors -> Errors.

Colors Preference

This preference changes not only the color of error strings in the Command Window, but also the color of the error underline in the editor and the stripe in the M-Lint panel.

Orange error color in editor

In addition to a configurable color, there are new severity icons associated with each m-lint message. For error messages, the icon is a red circle with a white x, and for warnings it is a yellow triangle with an exclamation point. This improves the usability by providing a shape as well as color to identify the severity of the message. Those of you who tried out the pre-release version of R2009a will notice the icons changed from colored dots for this reason.

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Ken & Mike work on the MATLAB Desktop team.
  • Ori: The current folder shortcut used to be alt-y. Now it is alt-o. However, while in the editor window, alt-o opens...
  • Jose Miguel: Hi First of all, thanks for the post, it is really useful. I am trying to develop a Java GUI within...
  • Ken: Hi Siddharth, There isn’t currently any way to move the docking controls. Feel free to submit an...
  • Phil: I have the same problem as described above with UITable working fine in the Matlab environment but showing no...
  • Siddharth: Is there any way to move the position of the docking controls (or eliminate them through some...
  • Chris: Yes, it is a challenge to organize functions into categories, especially with so many functions. Ken and I...
  • Mike: Thanks for fielding that one, Yair.
  • Yair Altman: Jimmy - if you mean that you wish to include hyperlinks in your function’s help comment, that will...
  • OysterEngineer: Thanks for explaining the Function Browser. I fired it up and gave it a try. It appears that it has...
  • Jimmy: Is there any way to include hyperlinks in a comment, such as the standard help at the beginning of a function?

These postings are the author's and don't necessarily represent the opinions of The MathWorks.