def highlight(code, lexer, formatter, outfile=None):
 return format(lex(code, lexer), formatter, outfile)

def highlight ( code , lexer , formatter , outfile = None ) : return format ( lex ( code , lexer ) , formatter , outfile )
takes a block of text and highlights words from a provided query within that block of text .