Actipro SyntaxEditor - Windows Forms .NET Control
Span Indicators
Span indicators are indicators that apply to a range of text.
Spelling errors (indicated by wavy lines) and breakpoints are excellent examples.
Span indicators flow with text as it is modified.
If characters are added within the span, the span indicator is expanded to hold the new characters.
If all the characters within a span indicator are removed, the span indicator is removed from the document.
Each indicator can draw a glyph within the indicator margin, can specify a highlighting style to use for drawing
text that the indicator contains, and can draw custom marks over the text contained by the indicator.
The breakpoint and current statement span indicators
Built-in span indicators include:
- Breakpoint - used to mark a breakpoint in red and draws a red circle in the indicator margin... the breakpoint can be enabled and disabled
- Disappearing - draws text in bold and disappears after a certain amount of time
- Compiler error - draws a blue wave line under text
- Current statement - used to mark the current executing statement in yellow and draws a yellow arrow in the indicator margin
- Grammar error - draws a green wave line under text
- Highlighting style - uses a highlighting style object to determine how to format the contained text
- Read-only - draws a gray background and is generally used in a special span indicator layer that marks read-only regions of text
- Spelling error - draws a blue wave line under text
- Syntax error - draws a red wave line under text
Mechanisms are built into the SyntaxEditor object model that allow you to dynamically add and remove indicators to,
as well as search for, existing indicators within a document.
|