RichTextLabel as from the script to add the quotes?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By DimitriyPS
:warning: Old Version Published before Godot 3 was released.

RichTextLabel as from the script to add the quotes?

:bust_in_silhouette: Reply From: Julian Murgia

I don’t understand your question. Please reformulate.

:bust_in_silhouette: Reply From: DimitriyPS

I don’t understand your question. Please reformulate.

How do I GDScript to add to RichTextLabel the quote character (")? GDScript will recognize it as marking the beginning of a string constant in the script.

:bust_in_silhouette: Reply From: supaiku

You can escape special characters like " with a prefixed \ character.

E.g

button.set_text(“"Quoted string"”)

Thank you it works.

DimitriyPS | 2016-07-18 13:57