def xml(text): tree = minidom.parseString(text) print(highlight(tree.toprettyxml(), XmlLexer(), TerminalFormatter())) return text