diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2016-02-17 21:09:28 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2016-02-17 21:17:08 +0100 |
commit | 9e4532d68910873b65fef8616e7ebde180220b5c (patch) | |
tree | 6ed20443ffe75ee8852c0ebf9f4b14da2b7bca1e /tools | |
parent | 54997552922a9eb3b2ca08a6a54add17abc35ff9 (diff) |
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.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/editor/editor_help.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/editor_help.cpp b/tools/editor/editor_help.cpp index 2ece518f8d..ddcb634151 100644 --- a/tools/editor/editor_help.cpp +++ b/tools/editor/editor_help.cpp @@ -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")); |