Partager via


Using Text Markers with the Legacy API

A text marker is a floating range of text in a buffer that can affect the display and behavior of a region of text. Markers include breakpoints, bookmarks, wavy underlines, and read-only regions. Text markers are basically different from syntax coloring. Syntax coloring is a quick way to communicate the language syntax that is associated with a region of text. Syntax coloring is generally requested when Windows repaints the screen, when speed is important. Syntax coloring changes only the color of text. Text markers can change many other text properties. Text markers can "float" and apply special behavior and coloring.

Because of the performance overhead associated with text markers, do not create many markers for your text buffers. Each marker is updated every time that a user edits the buffer contents.

Note

Users can change the color of a visible marker type but not its shape and style. For more information, see Fonts and Colors, Environment, Options Dialog Box.

Title

Description

How to: Add Standard Text Markers

Describes how to add a standard text marker type provided by the Visual Studio core editor to a text view.

How to: Implement Error Markers

Describes how to implement an instance of the Visual Studio marker that is used to indicate errors by using red wavy underlines.

How to: Create Custom Text Markers

Describes how to create and add a custom text marker type to a text view.

How to: Use Text Markers

Explains how to add text markers.

Inside the Core Editor

Describes the features of the core editor and provides details about how to customize the core editor.

Editor Features

Describes the features available in the Visual Studio core editor.

Reference