diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2016-07-28 17:01:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-28 17:01:53 +0200 |
commit | 0d53ee274c3cecc2cb8fc1e3a8831bfc5a8988a8 (patch) | |
tree | 67e5658eb9ce9dca090e6847e6e8dc70ced3cb4f | |
parent | 0dc2adad46590f2c9b34624e4a5b60dca768c9ae (diff) | |
parent | 740dea7de7ca9df8034076ee2c83fe7c0203b087 (diff) |
Merge pull request #5951 from Paulb23/syntax_highlighting_properties
Exposed enable syntax highlighting to properties
-rw-r--r-- | scene/gui/text_edit.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp index af04fbd201..b265ef840a 100644 --- a/scene/gui/text_edit.cpp +++ b/scene/gui/text_edit.cpp @@ -4508,6 +4508,7 @@ void TextEdit::_bind_methods() { ObjectTypeDB::bind_method(_MD("menu_option"),&TextEdit::menu_option); ObjectTypeDB::bind_method(_MD("get_menu:PopupMenu"),&TextEdit::get_menu); + ADD_PROPERTY(PropertyInfo(Variant::BOOL, "syntax_highlighting"), _SCS("set_syntax_coloring"), _SCS("is_syntax_coloring_enabled")); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "show_line_numbers"), _SCS("set_show_line_numbers"), _SCS("is_show_line_numbers_enabled")); ADD_PROPERTY(PropertyInfo(Variant::BOOL, "highlight_all_occurrences"), _SCS("set_highlight_all_occurrences"), _SCS("is_highlight_all_occurrences_enabled")); |