Added GDScript function definition highlighting
This commit is contained in:
parent
28dfc7f915
commit
4cd16f6ba9
4 changed files with 23 additions and 1 deletions
|
|
@ -583,6 +583,9 @@ void EditorSettings::_load_default_text_editor_theme() {
|
|||
_initial_set("text_editor/highlighting/word_highlighted_color", Color(0.8, 0.9, 0.9, 0.15));
|
||||
_initial_set("text_editor/highlighting/search_result_color", Color(0.05, 0.25, 0.05, 1));
|
||||
_initial_set("text_editor/highlighting/search_result_border_color", Color(0.1, 0.45, 0.1, 1));
|
||||
|
||||
// GDScript highlighter
|
||||
_initial_set("text_editor/highlighting/gdscript/function_definition_color", Color::html("#01e1ff"));
|
||||
}
|
||||
|
||||
bool EditorSettings::_save_text_editor_theme(String p_file) {
|
||||
|
|
@ -619,6 +622,9 @@ bool EditorSettings::_save_text_editor_theme(String p_file) {
|
|||
cf->set_value(theme_section, "search_result_color", ((Color)get("text_editor/highlighting/search_result_color")).to_html());
|
||||
cf->set_value(theme_section, "search_result_border_color", ((Color)get("text_editor/highlighting/search_result_border_color")).to_html());
|
||||
|
||||
//GDScript highlighter
|
||||
cf->set_value(theme_section, "gdscript/function_definition_color", ((Color)get("text_editor/highlighting/gdscript/function_definition_color")).to_html());
|
||||
|
||||
Error err = cf->save(p_file);
|
||||
|
||||
if (err == OK) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue