diff options
| author | Paulb23 <p_batty@hotmail.co.uk> | 2020-05-03 17:08:15 +0100 |
|---|---|---|
| committer | Paulb23 <p_batty@hotmail.co.uk> | 2020-07-11 17:09:58 +0100 |
| commit | bc4cee44582d2a90d0792d6b213f00be1043000b (patch) | |
| tree | 001ab82ed2bd7c6b59a7cc06807cce988c484d66 /editor/plugins/visual_shader_editor_plugin.h | |
| parent | 156daddaaf16e36eb932452d1e30f4f77d29aae6 (diff) | |
| download | redot-engine-bc4cee44582d2a90d0792d6b213f00be1043000b.tar.gz | |
Extract Syntax highlighting from TextEdit and add EditorSyntaxHighlighter
- Extacted all syntax highlighting code from text edit
- Removed enable syntax highlighting from text edit
- Added line_edited_from signal to text_edit
- Renamed get/set_syntax_highlighting to get/set_syntax_highlighter
- Added EditorSyntaxHighligher
Diffstat (limited to 'editor/plugins/visual_shader_editor_plugin.h')
| -rw-r--r-- | editor/plugins/visual_shader_editor_plugin.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/plugins/visual_shader_editor_plugin.h b/editor/plugins/visual_shader_editor_plugin.h index dd9144c567..0601b35131 100644 --- a/editor/plugins/visual_shader_editor_plugin.h +++ b/editor/plugins/visual_shader_editor_plugin.h @@ -72,6 +72,7 @@ class VisualShaderEditor : public VBoxContainer { bool shader_error; VBoxContainer *preview_vbox; TextEdit *preview_text; + Ref<CodeHighlighter> syntax_highlighter; Label *error_text; UndoRedo *undo_redo; |
