Incrementally parses marked-up text to create a plain-text string
and an attribute list.
See the Pango Markup docs for details about the
supported markup.
If accel_marker is nonzero, the given character will mark the
character following it as an accelerator. For example, accel_marker
might be an ampersand or underscore. All characters marked
as an accelerator will receive a Pango.Underline.LOW attribute,
and the first character so marked will be returned in accel_char,
when calling markup_parser_finish. Two accel_marker characters
following each other produce a single literal accel_marker character.
This function is designed for applications that read Pango markup
from streams. To simply parse a string containing Pango markup,
the Pango.parse_markup API is recommended instead.
Parameters
accel_marker: string
character that precedes an accelerator, or 0 for none
Incrementally parses marked-up text to create a plain-text string and an attribute list.
See the Pango Markup docs for details about the supported markup.
If
accel_markeris nonzero, the given character will mark the character following it as an accelerator. For example,accel_markermight be an ampersand or underscore. All characters marked as an accelerator will receive a Pango.Underline.LOW attribute, and the first character so marked will be returned inaccel_char, when calling markup_parser_finish. Twoaccel_markercharacters following each other produce a single literalaccel_markercharacter.To feed markup to the parser, use GLib.MarkupParseContext.parse on the returned GLib.MarkupParseContext. When done with feeding markup to the parser, use markup_parser_finish to get the data out of it, and then use GLib.MarkupParseContext.free to free it.
This function is designed for applications that read Pango markup from streams. To simply parse a string containing Pango markup, the Pango.parse_markup API is recommended instead.