You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Implement support for [codeblock] tag in help
It allows to define a multiline space-indented code block that will be properly parsed by the reST converter for the online docs. The in-editor help understand the [codeblock] tag as it supposedly understand [code] already (i.e. it just seems to discard it, though the code was supposed to switch it to a monospace font, but that's likely another issue.
This commit is contained in:
@@ -1201,7 +1201,7 @@ void EditorHelp::_add_text(const String& p_bbcode) {
|
||||
class_desc->push_font(get_font("italic","Fonts"));
|
||||
pos=brk_end+1;
|
||||
tag_stack.push_front(tag);
|
||||
} else if (tag=="code") {
|
||||
} else if (tag=="code" || tag=="codeblock") {
|
||||
|
||||
//use monospace font
|
||||
class_desc->push_font(get_font("source","EditorFonts"));
|
||||
|
||||
Reference in New Issue
Block a user