Gtk.Label.prototype.set_markup
function set_markup(str:String):void { // Gjs wrapper for gtk_label_set_markup() }
Parses str which is marked up with the <link linkend="PangoMarkupFormat">Pango text markup language</link>, setting the label's text and attribute list based on the parse results. If the str is external data, you may need to escape it with GLib.markup_escape_text or GLib.markup_printf_escaped<!-- -->: |[ char *markup;
markup = g_markup_printf_escaped ("<span style=\"italic\">%s</span>", str); gtk_label_set_markup (GTK_LABEL (label), markup); g_free (markup); ]|
- str
a markup string (see <link linkend="PangoMarkupFormat">Pango markup format</link>)