public String highlight ( String code , Lexer lexer , Formatter formatter ) { PyFunction function = pythonInterpreter . get ( "highlight" , PyFunction . class ) ; PyString pyCode = new PyString ( code ) ; PyObject pyLexer = lexer . getLexer ( ) ; PyObject pyFormatter = formatter . getFormatter ( ) ; return function . __call__ ( pyCode , pyLexer , pyFormatter ) . asString ( ) ; }
Highlight the given code piece using the provided lexer and formatter .