def METHOD_NAME(self, source):
    if self.dest == 'html':
        return '<pre>' + htmlescape(source) + '</pre>\n'
    else:
        # first, escape highlighting characters like Pygments does
        source = source.translate(escape_hl_chars)
        # then, escape all characters nonrepresentable in LaTeX
        source = source.translate(tex_hl_escape_map_new)
        return '\\begin{Verbatim}[commandchars=\\\\\\{\\}]\n' + \
               source + '\\end{Verbatim}\n'