Links
EControl Syntax Editor SDK
TTagBlockCondition.HighlightPos Property

Specifies caret position when text range is highlighted.

property HighlightPos: THighlightPos;

HighlightPos specifies dynamic highlighting of the text range. Moving caret will highlight various text ranges. For example, when caret is in function we can highlight current function or when caret is at the bracket we can highlight corresponding brackets. 

 

Default value of the HighlightPos is cpAny, that is highlighting of text range does not depend on caret position. All other cases of HighlightPos cause highlighting of text range depends on caret position. 

 

Value 
Meaning 
cpAny 
Text range is highlighted independently on caret position. 
cpBound 
Text range is highlighted when caret is at the bound of the text range (at the first character of the first token of the range or at the first character after last token of the range). 
cpBoundTag 
Text range is highlighted when caret is within bounding tokens of the text range. 
cpRange 
Text range is highlighted when caret is wherever within text range. 
cpBoundTagBegin 
Text range is highlighted when caret is at the first character of the bounding tokens. 
cpOutOfRange 
Text range is highlighted when caret is wherever out the text range. 
Copyright (c) 2004-2011. All rights reserved.
What do you think about this topic? Send feedback!