From fd4511e0e5abd73627f1e5fe28fb350e306437db Mon Sep 17 00:00:00 2001 From: Tim Pillinger <26465611+wxtim@users.noreply.github.com> Date: Thu, 28 Aug 2025 10:34:25 +0100 Subject: [PATCH] Update use.md --- docs/use.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/use.md b/docs/use.md index f833200..cd0c220 100644 --- a/docs/use.md +++ b/docs/use.md @@ -335,6 +335,12 @@ print("This won't have a copy button!") ``` ```` +If you wish to remove the copybutton for one or more languages you can use: + +```python +copybutton_selector = "div:not(.highlight-diff, .highlight-python) > div.highlight > pre" +``` + ### A typical code cell HTML structure in Sphinx Using CSS to modify the copy button requires you to know what kind of HTML structure code cells have in your documentation.