MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / add_syntax_highlighter

Method add_syntax_highlighter

editor/script/text_editor.cpp:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45#include "scene/gui/split_container.h"
46
47void TextEditor::add_syntax_highlighter(Ref<EditorSyntaxHighlighter> p_highlighter) {
48 ERR_FAIL_COND(p_highlighter.is_null());
49
50 highlighters[p_highlighter->_get_name()] = p_highlighter;
51 highlighter_menu->add_radio_check_item(p_highlighter->_get_name());
52}
53
54void TextEditor::set_syntax_highlighter(Ref<EditorSyntaxHighlighter> p_highlighter) {
55 ERR_FAIL_COND(p_highlighter.is_null());

Callers 1

editMethod · 0.45

Calls 3

is_nullMethod · 0.45
_get_nameMethod · 0.45
add_radio_check_itemMethod · 0.45

Tested by

no test coverage detected