Added copy-to-clipboard support for all code snippets
This commit is contained in:
parent
8be84e2ac4
commit
a86fdfaa3b
|
@ -110,7 +110,7 @@ def visit_snippet(self, node):
|
|||
linenos=linenos,
|
||||
**highlight_args)
|
||||
starttag = self.starttag(node, 'div', suffix='',
|
||||
CLASS='highlight-%s' % lang)
|
||||
CLASS='highlight-%s snippet' % lang)
|
||||
self.body.append(starttag)
|
||||
self.body.append('<div class="snippet-filename">%s</div>\n''' % (fname,))
|
||||
self.body.append(highlighted)
|
||||
|
|
Loading…
Reference in New Issue