1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

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

View File

@ -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)