'Output highlighted chunk.
This implementation outputs a list containing a single pair
(:py:class:`pygments.token.Token`,
:py:class:`powerline.lib.unicode.unicode`).'

def hl(self, contents, fg=None, bg=None, attrs=None):

    guifg = None
    guibg = None
    attrs = []
    if ((fg is not None) and (fg is not False)):
        guifg = fg[1]
    if ((bg is not None) and (bg is not False)):
        guibg = bg[1]
    if attrs:
        attrs = []
        if (attrs & ATTR_BOLD):
            attrs.append(u'bold')
        if (attrs & ATTR_ITALIC):
            attrs.append(u'italic')
        if (attrs & ATTR_UNDERLINE):
            attrs.append(u'underline')
    name = (((u'Pl' + u''.join(((u'_a' + attr) for attr in attrs))) + ((u'_f%6x' % guifg) if (guifg is not None) else u'')) + ((u'_b%6x' % guibg) if (guibg is not None) else u''))
    return [(getattr(Token.Generic.Prompt.Powerline, name), contents)]
