mirror of https://github.com/buggins/dlangui.git
syntax highlight support, continue
This commit is contained in:
parent
c1de71363c
commit
4f03b963d6
|
@ -2774,9 +2774,11 @@ class EditBox : EditWidgetBase {
|
|||
|
||||
protected CustomCharProps[ubyte] _tokenHighlightColors;
|
||||
|
||||
void setTokenHightlightColor(ubyte tokenCategory, uint color, bool underline, bool strikeThrough) {
|
||||
/// set highlight options for particular token category
|
||||
void setTokenHightlightColor(ubyte tokenCategory, uint color, bool underline = false, bool strikeThrough = false) {
|
||||
_tokenHighlightColors[tokenCategory] = CustomCharProps(color, underline, strikeThrough);
|
||||
}
|
||||
/// clear highlight colors
|
||||
void clearTokenHightlightColors() {
|
||||
destroy(_tokenHighlightColors);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue