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:
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
Block a user