Desktop Tools and Development Environment Previous page   Next Page

Java Language Preferences

Select File -> Preferences -> Editor/Debugger -> Language -> Java to specify preferences for editing Java files.

Syntax Highlighting

Select the Enable syntax highlighting check box to show colors that help you identify certain Java constructs, such as methods. Specify the colors used for these elements.

Show methods.   Text style for methods to appear in when you type them: Bold, Italic, or Plain (no special highlighting).

Keywords.   Color for keywords, such as if.

Strings.   Color for terms enclosed in double quotation marks, for example, "alive".

Characters.   Color for terms enclosed in single quotation marks, for example, 'a'.

Comments.   Color for text following the comment indicator, //, as well as for the block comment indicators, /* and */, and the code in between.

Bad characters.   Color for illegal characters.

Indenting for Enter Key

Select the style of indenting you want the Editor/Debugger to use for Java files. The style applies when you press the Enter key to type in a new line. The styles of indenting are the same as those used for M-files. For details and examples, see the M-file preference for indenting.

See Also


Previous page  C/C++ Language Preferences HTML Language Preferences Next page

© 1994-2005 The MathWorks, Inc.