def visit_snippet(self, node):
lang = self.highlightlang<EOL>linenos = node.rawsource.count('<STR_LIT:\n>') >= self.highlightlinenothreshold - <NUM_LIT:1><EOL>fname = node['<STR_LIT:filename>']<EOL>highlight_args = node.get('<STR_LIT>', {})<EOL>if '<STR_LIT>' in node:<EOL><INDENT>lang = node['<STR_LIT>']<EOL>highlight_args['<STR_LIT>'] = True<EOL><DEDENT>if '<STR_LIT>' in node:<EOL><INDENT>linenos = node['<STR_LIT>']<EOL><DEDENT>def warner(msg):<EOL><INDENT>self.builder.warn(msg, (self.builder.current_docname, node.line))<EOL><DEDENT>highlighted = self.highlighter.highlight_block(node.rawsource, lang,<EOL>warn=warner,<EOL>linenos=linenos,<EOL>**highlight_args)<EOL>starttag = self.starttag(node, '<STR_LIT>', suffix='<STR_LIT>',<EOL>CLASS='<STR_LIT>' % lang)<EOL>self.body.append(starttag)<EOL>self.body.append('<STR_LIT>''<STR_LIT>' % (fname,))<EOL>self.body.append(highlighted)<EOL>self.body.append('<STR_LIT>')<EOL>raise nodes.SkipNode<EOL>
HTML document generator visit handler