From a86fdfaa3b1bb6464cb071a66988d557562458d5 Mon Sep 17 00:00:00 2001 From: Baptiste Mispelon Date: Mon, 4 Jul 2016 15:06:57 +0200 Subject: [PATCH] Added copy-to-clipboard support for all code snippets --- docs/_ext/djangodocs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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('
%s
\n''' % (fname,)) self.body.append(highlighted)