Added copy-to-clipboard support for all code snippets

This commit is contained in:
Baptiste Mispelon 2016-07-04 15:06:57 +02:00
parent 8be84e2ac4
commit a86fdfaa3b
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ def visit_snippet(self, node):
linenos=linenos, linenos=linenos,
**highlight_args) **highlight_args)
starttag = self.starttag(node, 'div', suffix='', starttag = self.starttag(node, 'div', suffix='',
CLASS='highlight-%s' % lang) CLASS='highlight-%s snippet' % lang)
self.body.append(starttag) self.body.append(starttag)
self.body.append('<div class="snippet-filename">%s</div>\n''' % (fname,)) self.body.append('<div class="snippet-filename">%s</div>\n''' % (fname,))
self.body.append(highlighted) self.body.append(highlighted)