Merge pull request #116532 from dalexeev/editor-help-make-codeblocks-full-width

Editor Help: Make codeblocks full-width
This commit is contained in:
Thaddeus Crews 2026-02-25 09:27:37 -06:00
commit c73b13cd8b
No known key found for this signature in database
GPG key ID: 8C6E5FEB5FC03CCC

View file

@ -2739,6 +2739,7 @@ static void _add_text_to_rt(const String &p_bbcode, RichTextLabel *p_rt, const C
p_rt->push_font(doc_code_font);
p_rt->push_font_size(doc_code_font_size);
p_rt->push_table(2);
p_rt->set_table_column_expand(0, true, 1, false);
p_rt->push_cell();
p_rt->set_cell_row_background_color(code_bg_color, Color(code_bg_color, 0.99));