Share via


Syntax Coloration in the Transact-SQL Editor

The text within the Transact-SQL editor is color-coded based on the nature of the text. This coloration helps you identify whether text is a comment, part of a string, a keyword, and so on.

You can view the complete list of categories and their colors and configure a custom color scheme by opening the Tools menu and clicking Options.

Default Colors and Categories

The Transact-SQL editor uses the standard text editor colors for Visual Studio. The following table lists the default colors that are used in the Transact-SQL editor and the text category for each.

Color

Text category

Red

Character string

Dark green

Comment

Blue

Keyword

Teal

Line numbers

Black

Plain text, numbers, operators

For more information about how to customize fonts or colors, see Fonts and Colors, Environment, Options Dialog Box.

See Also

Concepts

Editing Database Scripts and Objects with the Transact-SQL Editor