summaryrefslogtreecommitdiffstats
path: root/editor/plugins/text_editor.cpp
diff options
context:
space:
mode:
authorPaulb23 <p_batty@hotmail.co.uk>2020-03-07 14:29:44 +0000
committerPaulb23 <p_batty@hotmail.co.uk>2020-07-11 15:40:00 +0100
commit156daddaaf16e36eb932452d1e30f4f77d29aae6 (patch)
tree942c5f0fe5bf8cbab99ca5534ecef4f76ea8d6b9 /editor/plugins/text_editor.cpp
parent2f1080be9b032b1cf5086201e45057baa6b1a179 (diff)
downloadredot-engine-156daddaaf16e36eb932452d1e30f4f77d29aae6.tar.gz
Expose Syntax highlighter for editor plugins
Diffstat (limited to 'editor/plugins/text_editor.cpp')
-rw-r--r--editor/plugins/text_editor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/text_editor.cpp b/editor/plugins/text_editor.cpp
index 071a46b5ee..25c0da90ad 100644
--- a/editor/plugins/text_editor.cpp
+++ b/editor/plugins/text_editor.cpp
@@ -471,6 +471,7 @@ void TextEditor::_convert_case(CodeTextEditor::CaseStyle p_case) {
}
void TextEditor::_bind_methods() {
+ ClassDB::bind_method(D_METHOD("add_syntax_highlighter", "highlighter"), &TextEditor::add_syntax_highlighter);
}
static ScriptEditorBase *create_editor(const RES &p_resource) {