Documentation
¶
Overview ¶
Package CodeHighlighter provides methods for working with CodeHighlighter object instances.
Index ¶
- type Advanced
- type Any
- type Instance
- func (self Instance) AddColorRegion(start_key string, end_key string, color Color.RGBA)
- func (self Instance) AddKeywordColor(keyword string, color Color.RGBA)
- func (self Instance) AddMemberKeywordColor(member_keyword string, color Color.RGBA)
- func (self Instance) AsCodeHighlighter() Instance
- func (self Instance) AsObject() [1]gd.Object
- func (self Instance) AsRefCounted() [1]gd.RefCounted
- func (self Instance) AsResource() Resource.Instance
- func (self Instance) AsSyntaxHighlighter() SyntaxHighlighter.Instance
- func (self Instance) ClearColorRegions()
- func (self Instance) ClearKeywordColors()
- func (self Instance) ClearMemberKeywordColors()
- func (self Instance) ColorRegions() map[any]any
- func (self Instance) FunctionColor() Color.RGBA
- func (self Instance) GetKeywordColor(keyword string) Color.RGBA
- func (self Instance) GetMemberKeywordColor(member_keyword string) Color.RGBA
- func (self Instance) HasColorRegion(start_key string) bool
- func (self Instance) HasKeywordColor(keyword string) bool
- func (self Instance) HasMemberKeywordColor(member_keyword string) bool
- func (self Instance) KeywordColors() map[any]any
- func (self Instance) MemberKeywordColors() map[any]any
- func (self Instance) MemberVariableColor() Color.RGBA
- func (self Instance) NumberColor() Color.RGBA
- func (self Instance) RemoveColorRegion(start_key string)
- func (self Instance) RemoveKeywordColor(keyword string)
- func (self Instance) RemoveMemberKeywordColor(member_keyword string)
- func (self Instance) SetColorRegions(value map[any]any)
- func (self Instance) SetFunctionColor(value Color.RGBA)
- func (self Instance) SetKeywordColors(value map[any]any)
- func (self Instance) SetMemberKeywordColors(value map[any]any)
- func (self Instance) SetMemberVariableColor(value Color.RGBA)
- func (self Instance) SetNumberColor(value Color.RGBA)
- func (self Instance) SetSymbolColor(value Color.RGBA)
- func (self Instance) SymbolColor() Color.RGBA
- func (self *Instance) UnsafePointer() unsafe.Pointer
- func (self Instance) Virtual(name string) reflect.Value
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type Instance ¶
type Instance [1]gdclass.CodeHighlighter
By adjusting various properties of this resource, you can change the colors of strings, comments, numbers, and other text patterns inside a [TextEdit] control.
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AddColorRegion ¶
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.
func (Instance) AddKeywordColor ¶
Sets the color for a keyword. The keyword cannot contain any symbols except '_'.
func (Instance) AddMemberKeywordColor ¶
Sets the color for a member keyword. The member keyword cannot contain any symbols except '_'. It will not be highlighted if preceded by a '.'.
func (Instance) AsCodeHighlighter ¶
func (Instance) AsRefCounted ¶
func (self Instance) AsRefCounted() [1]gd.RefCounted
func (Instance) AsResource ¶
func (Instance) AsSyntaxHighlighter ¶
func (self Instance) AsSyntaxHighlighter() SyntaxHighlighter.Instance
func (Instance) ClearColorRegions ¶
func (self Instance) ClearColorRegions()
Removes all color regions.
func (Instance) ClearKeywordColors ¶
func (self Instance) ClearKeywordColors()
Removes all keywords.
func (Instance) ClearMemberKeywordColors ¶
func (self Instance) ClearMemberKeywordColors()
Removes all member keywords.
func (Instance) ColorRegions ¶
func (Instance) FunctionColor ¶
func (Instance) GetKeywordColor ¶
Returns the color for a keyword.
func (Instance) GetMemberKeywordColor ¶
Returns the color for a member keyword.
func (Instance) HasColorRegion ¶
Returns [code]true[/code] if the start key exists, else [code]false[/code].
func (Instance) HasKeywordColor ¶
Returns [code]true[/code] if the keyword exists, else [code]false[/code].
func (Instance) HasMemberKeywordColor ¶
Returns [code]true[/code] if the member keyword exists, else [code]false[/code].
func (Instance) KeywordColors ¶
func (Instance) MemberKeywordColors ¶
func (Instance) MemberVariableColor ¶
func (Instance) NumberColor ¶
func (Instance) RemoveColorRegion ¶
Removes the color region that uses that start key.
func (Instance) RemoveKeywordColor ¶
Removes the keyword.
func (Instance) RemoveMemberKeywordColor ¶
Removes the member keyword.