syntax highlight support, continue

This commit is contained in:
Vadim Lopatin 2015-01-19 22:34:28 +03:00
parent c1de71363c
commit 4f03b963d6
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}