Skip to content

Commit 54492c6

Browse files
committed
Document [hint] tag quote support in BBCode in RichTextLabel
1 parent f86a5dc commit 54492c6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tutorials/ui/bbcode_in_richtextlabel.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,10 @@ Reference
322322
323323
* - | **hint**
324324
| Creates a tooltip hint that is displayed when hovering the text with the mouse.
325-
Tooltip text should not be quoted (quotes will appear as-is in the tooltip otherwise).
326-
- | ``[hint={tooltip text displayed on hover}]{text}[/hint]``
325+
While not required, it's recommended to put tooltip text between double or single quotes.
326+
Note that it is not possible to escape quotes using ``\"`` or ``\'``. To use
327+
single quotes for apostrophes in the hint string, you must use double quotes.
328+
- | ``[hint="{tooltip text displayed on hover}"]{text}[/hint]``
327329

328330
* - | **img**
329331
| Inserts an image from the ``{path}`` (can be any valid :ref:`class_Texture2D` resource).

0 commit comments

Comments
 (0)