class_docstr: Format tokens as Pango Markup code. It can then be rendered to an SVG.
  
  .. versionadded:: 2.9
class_docstr_tok: ["Format","tokens","as","Pango","Markup","code",".","It","can","then","be","rendered","to","an","SVG",".","..","versionadded",":",":","2.9"]
code: def __init__(self, **options):
      Formatter.__init__(self, **options)
  
      self.styles = {}
  
      for token, style in self.style:
          start = ""
          end = ""
          if style["color"]:
              start += '<span fgcolor="#%s">' % style["color"]
              end = "</span>" + end
          if style["bold"]:
              start += "<b>"
              end = "</b>" + end
          if style["italic"]:
              start += "<i>"
              end = "</i>" + end
          if style["underline"]:
              start += "<u>"
              end = "</u>" + end
          self.styles[token] = (start, end)
  
imports: from pygments.formatter import Formatter
label_desc: Use image node_id 1 to create a new PangoMarkupFormatter object from inherited base classes: Formatter with example: obj = PangoMarkupFormatter()