TCustomHighlighter is the base class for external highlighting classes.
TCustomHighlighter = class(TComponent, IUnknown, IecTextClient, IecSyntMemoPlugIn, IecExternalFormatter);
ecExtHighLight
TCustomHighlighter introduces base algorithms of highlighting.
Use Analyze method to analyze text immediately. Use RunAnalysis method to analyze range in background, that is with idle priority.
Use AddHltRange to add new range for highlighting.
Use ValidateRange method to analyze part of a text for highlighting.
Topic |
Description |
The methods of the IecExternalFormatter class are listed here. |
Topic |
Description |
The methods of the IecSyntMemoPlugIn class are listed here. |
Topic |
Description |
The methods of the IecTextClient class are listed here. |
Topic |
Description |
The methods of the TCustomHighlighter class are listed here. | |
The properties of the TCustomHighlighter class are listed here. |
|
Method |
|
virtual |
|
protected |
|
Property |
|
read only |
IecExternalFormatter Methods |
Description |
Says to analyze text up to the position APos. | |
Adds entries to list of styles at the CurPos position. |
IecSyntMemoPlugIn Interface |
Description |
Handles keystroke that is inputted in the editor. | |
Handles mouse event of the syntax memo. | |
Provides ability to change mouse cursor. |
IecTextClient Interface |
Description |
Called after text have been changed. |
TCustomHighlighter Class |
Description |
Adds a new highlighted range. | |
Analyzes all text in editor. | |
Analyzes editor's text up to the APos position. | |
Deletes all ranges for highlighting. | |
Creates and initializes a TCustomHighlighter instance. | |
Destroys an instance of TCustomHighlighter. | |
Adds entries to list of styles at the CurPos position. | |
Returns text from range containing character with Pos position. | |
Returns range containing Pos position. | |
Returns highlighting region object at specified position. | |
Starts analysis process. | |
Analyzes part of a text for highlighting. |
TCustomHighlighter Class |
Description |
Specifies whether or not the text analysis is active. | |
Allows automatic execution of analysis. | |
Specifies whether analysis is in progress or completed. | |
Identifies the SyntaxMemo component associated with the TCustomHighlighter object. | |
Specifies whether highlighting is shown in editor. | |
Specifies display properties of the highlighted text. | |
Specifies styles collection to be used for highlighting ranges. These styles are used when style index of highlighted region is not equal to -1. |
Copyright (c) 2004-2011. All rights reserved.
|
What do you think about this topic? Send feedback!
|