This article describes format of XML files to be used with CBCGPEditCtrl. The XML parser is invoked by calling to CBCGPEditCtrl::LoadXMLSettings or CBCGPEditCtrl::LoadXMLSettingsFromBuffer.
The overall structure is following:
There are no mandatory tags except the main "SETTINGS" tag.
"OPTIONS" tag describes common settings applied to the edit control.
"COLOR_DATA" tag defines general edit control colors as well as colors for syntax highlighting and blocks.
"KEYWORDS" tag is intended for syntax highlighting definitions. It's usable when you need to define a set of keywords of the same color. For each keyword the XML parser will call CBCGPEditCtrl::SetWordColor.
"WORDS" tag is intended for separate words to be displayed with various color settings. For each word the XML parser will call CBCGPEditCtrl::SetWordColor.
"WORD" tag represents a single word.
"BLOCKS" tag defines a list of color blocks. For each color block the XML parser will call CBCGPEditCtrl::SetBlockColor
"BLOCK" tag represents a single color block
The following is the list of colors recognized by XML parser:
For boolean values you can use "true" or "false".