POSITION CBCGPEditCtrl::SetBlockColor | ( | CString | strBlockOpen, |
CString | strBlockClose, | ||
BOOL | bWholeText = FALSE , |
||
COLORREF | clrFrgnd = (COLORREF)-1 , |
||
COLORREF | clrBkgnd = (COLORREF)-1 , |
||
BOOL | bCaseSensitive = FALSE , |
||
BOOL | bWholeWord = FALSE |
||
) |
Adds a new color block definition to the list of color block definitions.
An example of color block can be the C++ comment definition: open block - /*, close block - */, bWholeText - TRUE (meaning that this block may take several lines).
Because of nested blocks problems you can't define more than one block with bWholeText set to TRUE (it can't be more than one multiline block).
You can use the returned value for calling on RemoveBlockColor.
strBlockOpen | Specifies the opening block pattern. |
strBlockClose | Specifies the closing block pattern. Can be empty for single line blocks (like // in C++). |
bWholeText | If TRUE, the block is multiline. If FALSE, the block is single line. |
clrFrgnd | Specifies the block foreground color. |
clrBkgnd | Specifies the block background color. |
bCaseSensitive | If TRUE, the editor syntax highlighting for this block will be case sensitive. |
bWholeWord | If TRUE, the function looks for the exact word. |