Skip to content

Commit af6183e

Browse files
authored
Merge pull request #10944 from Calinou/bbcode-in-richtextlabel-hint-quotes
Document `[hint]` tag quote support in BBCode in RichTextLabel
2 parents 38ae512 + 0dcc22f commit af6183e

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tutorials/ui/bbcode_in_richtextlabel.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,8 +322,11 @@ 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+
to surround the string.
329+
- | ``[hint="{tooltip text displayed on hover}"]{text}[/hint]``
327330

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

0 commit comments

Comments
 (0)