Skip to content

Commit 56fdb28

Browse files
Adjusted code copy button documentation
Co-authored-by: thorstenpeter-sophos <[email protected]>
1 parent aeb9492 commit 56fdb28

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

docs/reference/code-blocks.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -71,16 +71,19 @@ theme:
7171
```
7272
````
7373

74-
Note that the language shortcode which has to come first must now also be
75-
prefixed by a `.`. Similarly, the copy button can also be disabled for a
76-
specific code block:
74+
Note that there must be a language shortcode, which has to come first and
75+
must also be prefixed by a `.`. Similarly, the copy button can also be
76+
disabled for a specific code block:
7777

7878
```` { .yaml .no-copy }
7979
``` { .yaml .no-copy }
8080
# Code block content
8181
```
8282
````
8383

84+
To enable or disable the copy button without syntax highlighting, you can
85+
use the `.text` language shortcode, which doesn't highlight anything.
86+
8487
### Code selection button
8588

8689
<!-- md:sponsors -->

0 commit comments

Comments
 (0)