Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tutorials/ui/bbcode_in_richtextlabel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ multiple options (separated by spaces within the opening tag). The closing tag
delimits the end of the formatted part. In some cases, both the closing tag and
the content can be omitted.

Unlike BBCode in HTML, leading/trailing whitespace is not removed by a
RichTextLabel upon display. Duplicate spaces are also displayed as-is in the
final output. This means that when displaying a code block in a RichTextLabel,
you don't need to use a preformatted text tag.

.. code-block:: none

[tag]content[/tag]
Expand Down Expand Up @@ -618,7 +623,6 @@ the built-in :ref:`class_Color` class. Named classes can be specified in a numbe
styles using different casings: ``DARK_RED``, ``DarkRed``, and ``darkred`` will give
the same exact result.


.. _doc_bbcode_in_richtextlabel_hex_colors:

Hexadecimal color codes
Expand All @@ -633,7 +637,6 @@ e.g. ``[color=#ffffff88]translucent white[/color]``. Note that the alpha channel
is the **last** component of the color code, not the first one. Short RGBA
color codes such as ``#6f28`` (equivalent to ``#66ff2288``) are supported as well.


.. _doc_bbcode_in_richtextlabel_cell_options:

Cell options
Expand Down