Coloring syntax automatically

When you develop code in the Code window, the editor colorizes each word according to its classification:

• VBA keywords and programming statements are usually displayed in blue.

• Comments are displayed in green.

• All other text is displayed in black.

This colorization makes the code much easier to read.

Syntax highlighting and coloring

The Code window also uses the following colorization techniques:

• Lines of code containing errors are displayed in red.

• Selected text is white on blue.

• The line where execution paused for debugging is shown as a yellow highlight.

• Breakpoints that you set for debugging purposes are shown as a red dot in the left margin with the code in white on a red background.

Bookmarks (which you set in the code) are indicated by a blue dot in the left margin.

^r Breakpoints (along with bookmarks) are lost when you quit the application. For more information on them, see "Setting breakpoints" on page 35.

r^ you can modify the default colors for syntax highlighting by clicking Tools ► Options, clicking the Editor format tab, and making your changes.

0 0

Post a comment

  • Receive news updates via email from this site