You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
CodeEditor: Make possible to select and copy error text
This commit is contained in:
committed by
Rémi Verschelde
parent
03bd8ba9c2
commit
db9b8ff003
@@ -200,7 +200,7 @@ void TextEditor::_validate_script() {
|
||||
code_editor->set_error("");
|
||||
|
||||
if (json_file->parse(te->get_text(), true) != OK) {
|
||||
code_editor->set_error(json_file->get_error_message());
|
||||
code_editor->set_error(json_file->get_error_message().replace("[", "[lb]"));
|
||||
code_editor->set_error_pos(json_file->get_error_line(), 0);
|
||||
te->set_line_background_color(code_editor->get_error_pos().x, EDITOR_GET("text_editor/theme/highlighting/mark_color"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user