[Tagn] Sections
The tags in the [Tagn] sections, where n = 1,2,3,..., represent items that need to be colored but aren't simple matches, such as regular keywords. Items of text that aren't simple matches are called token keywords in Objective Edit. These items include quotes and comments. Here are some sample settings:
 
[Tag1]
ColorGroup = Comment
BeginTag = /*
EndTag = */
MultiLine = 1
 
[Tag2]
ColorGroup = String
BeginTag = "
EndTag = "
EscapeChar = \
 
[Tag3]
ColorGroup = String
BeginTag = '
EndTag = '
EscapeChar = \
 
[Tag4]
ColorGroup = Comment
BeginTag = //
The keys for the Token Keyword groups are given in Table 14:
Table 14 – Key descriptions for the Token Keyword [Tagn] groups 
Key
Description
ColorGroup
The color group that this token keyword uses when rendered. Required.
BeginTag
The character sequence that begins this token keyword. May be a single character or multiple characters. Required.
EndTag
The sequence of characters that terminates this token keyword. For single line token keywords, this may be blank, which indicates that the token keyword extends to the end of the line. May be a single character or multiple characters. Required for multiline token keywords. Default: none.
EscapeChar
When this character is found in a token keyword, it instructs the parser to disregard the next character when searching for the EndTag. Must be a single character. Applicable only to single line token keywords.
Default: none.
MultiLine
If 0, the token keyword is a single line token keyword. If nonzero, the token keyword can span multiple lines. Default: 0.
In the example above, Tag1 is a C++ multiline comment, Tag2 and Tag3 are strings, and Tag4 is a C++ single-line comment. Note that some entries are omitted, and may be omitted when the desired value is the default value.
Token keywords are not restricted to non-alphanumeric characters; for example, a VBScript configuration file may have the following entries:
 
[Tag1]
ColorGroup = Comment
BeginTag = rem
 
[Tag2]
ColorGroup = Comment
BeginTag = '
 
[Tag3]
ColorGroup = String
BeginTag = "
EndTag = "
Note that if the language definition specifies case insensitivity, this setting will apply to the token keyword matching as well.
Also note that token keywords can start with the same character sequences, as long as a BeginTag entry is not a complete subset of another BeginTag. For example, you can use /* and // as BeginTag entries, but you cannot use // and //{{, because the first example is a subset of the beginning characters of the second example.