Display content in reStructuredText format like Godot's help viewer

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By potatofre4k

I’d like to make a plugin and add a built in helper/viewer (press F1 → click on any file there). This will help people to get started on the plugin (something many plugins overlook). I like how Godot’s help tool is shown within the engine and would like to have something similar if possible / not too difficult.

I tried opening a file I have in *.rst format within the editor and the text was not displayed nicely and in read-only mode, but instead it was on ‘edit mode’ (which makes completely sense - I was just trying it out).

Thanks in advance!

:bust_in_silhouette: Reply From: Zylann

Godot does not have rst support per se. What it uses instead is BBCode, using the RichTextLabel node. If your text is in rst format you may have to convert it yourself into BBCode.