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 comments or strings. Both the start and end keys must be symbols. Only the start key has to be unique. [param line_only] denotes if the region should continue until the end of the line or carry over on to the next line. If the end key is blank this is automatically set to [code]true[/code].
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.