Skip to content

Commit 5d1ce7b

Browse files
authored
Enable copy button for shell sessions and consoles (#295)
1 parent 3434208 commit 5d1ce7b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

python_docs_theme/static/copybutton.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ const loadCopyButton = () => {
6262
+ ".highlight-python3 .highlight,"
6363
+ ".highlight-pycon .highlight,"
6464
+ ".highlight-pycon3 .highlight,"
65+
+ ".highlight-bash .highlight,"
66+
+ ".highlight-console .highlight,"
67+
+ ".highlight-doscon .highlight,"
68+
+ ".highlight-ps1con .highlight,"
69+
+ ".highlight-sh .highlight,"
70+
+ ".highlight-shell-session .highlight,"
6571
+ ".highlight-default .highlight"
6672
)
6773

0 commit comments

Comments
 (0)