diff options
author | Baptiste Mispelon <bmispelon@gmail.com> | 2016-07-04 15:06:57 +0200 |
---|---|---|
committer | Baptiste Mispelon <bmispelon@gmail.com> | 2016-07-06 17:11:59 +0200 |
commit | a86fdfaa3b1bb6464cb071a66988d557562458d5 (patch) | |
tree | 0a424761de159673e3b3b2ff2c08eebde9d5ac44 /docs/_ext | |
parent | 8be84e2ac42b2556fd6fa07794b3708b143ef341 (diff) | |
download | django-a86fdfaa3b1bb6464cb071a66988d557562458d5.tar.gz |
Added copy-to-clipboard support for all code snippets
Diffstat (limited to 'docs/_ext')
-rw-r--r-- | docs/_ext/djangodocs.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/_ext/djangodocs.py b/docs/_ext/djangodocs.py index 048363122f..0f29341c34 100644 --- a/docs/_ext/djangodocs.py +++ b/docs/_ext/djangodocs.py @@ -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) |