def block_code(self, text, lang):
if not lang:<EOL><INDENT>return self._code_no_lexer(text)<EOL><DEDENT>try:<EOL><INDENT>lexer = get_lexer_by_name(lang, stripall=True)<EOL><DEDENT>except ClassNotFound:  <EOL><INDENT>return self._code_no_lexer(text)<EOL><DEDENT>formatter = HtmlFormatter()<EOL>return highlight(text, lexer, formatter)<EOL>
text: unicode text to render