A syntax highlighter intended for code.
By adjusting various properties of this resource, you can change the colors of strings, comments, numbers, and other text patterns inside a [TextEdit] control.
Adds a color region (such as for comments or strings) from [param start_key] to [param end_key]. Both keys should be symbols, and [param start_key] must not be shared with other delimiters.
If [param line_only] is [code]true[/code] or [param end_key] is an empty [String], the region does not carry over to the next line.
Sets the color for a keyword.
The keyword cannot contain any symbols except '_'.
Sets the color for a member keyword.
The member keyword cannot contain any symbols except '_'.
It will not be highlighted if preceded by a '.'.
Removes all color regions.
Removes all keywords.
Removes all member keywords.
Returns the color for a keyword.
Returns the color for a member keyword.
Returns [code]true[/code] if the start key exists, else [code]false[/code].
Returns [code]true[/code] if the keyword exists, else [code]false[/code].
Returns [code]true[/code] if the member keyword exists, else [code]false[/code].
Removes the color region that uses that start key.
Removes the keyword.
Removes the member keyword.
Sets the color regions. All existing regions will be removed. The [Dictionary] key is the region start and end key, separated by a space. The value is the region color.
Sets color for functions. A function is a non-keyword string followed by a '('.
Sets the keyword colors. All existing keywords will be removed. The [Dictionary] key is the keyword. The value is the keyword color.
Sets the member keyword colors. All existing member keyword will be removed. The [Dictionary] key is the member keyword. The value is the member keyword color.
Sets color for member variables. A member variable is non-keyword, non-function string proceeded with a '.'.
Sets the color for numbers.
Sets the color for symbols.