class-description NEWS COMMUNITY STORE TUTORIALS SIGN UP LOGIN LOGOUT ROKOJORI NEWSLETTER SIGN UP LOGIN LOGOUT NEWS COMMUNITY STORE TUTORIALS TOGGLE FULLSCREEN VOLLBILD AN/AUS ObjectRefCountedResource SyntaxHighlighter
Base class for syntax highlighters. Provides syntax highlighting data to a TextEdit.

Base class for syntax highlighters. Provides syntax highlighting data to a TextEdit. The associated TextEdit will call into the SyntaxHighlighter on an as-needed basis.

void _clear_highlighting_cache<>():void

Virtual method which can be overridden to clear any local caches.

Dictionary _get_line_syntax_highlighting<>( int line=, line:int=, ):Dictionary

Virtual method which can be overridden to return syntax highlighting data.

See get_line_syntax_highlighting() for more details.

void _update_cache<>():void

Virtual method which can be overridden to update any local caches.

void clear_highlighting_cache<>():void

Clears all cached syntax highlighting data.

Then calls overridable method _clear_highlighting_cache().

Dictionary get_line_syntax_highlighting<>( int line=, line:int=, ):Dictionary

Returns the syntax highlighting data for the line at index line. If the line is not cached, calls _get_line_syntax_highlighting() first to calculate the data.

Each entry is a column number containing a nested Dictionary. The column number denotes the start of a region, the region will end if another region is found, or at the end of the line. The nested Dictionary contains the data for that region. Currently only the key "color" is supported.

Example: Possible return value. This means columns 0 to 4 should be red, and columns 5 to the end of the line should be green:

{ 0: { "color": Color(1, 0, 0) }, 5: { "color": Color(0, 1, 0) } }
TextEdit get_text_edit<>():TextEdit

Returns the associated TextEdit node.

void update_cache<>():void

Clears then updates the SyntaxHighlighter caches. Override _update_cache() for a callback.

Note: This is called automatically when the associated TextEdit node, updates its own cache.




All social media brands are registrated trademarks and belong to their respective owners.





CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
CONTACT IMPRINT TERMS OF USE PRIVACY © ROKOROJI ® 2021 rokojori.com
We are using cookies on this site. Read more... Wir benutzen Cookies auf dieser Seite. Mehr lesen...