mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-27 17:00:54 +01:00
Adjusted code copy button documentation
Co-authored-by: thorstenpeter-sophos <86772976+thorstenpeter-sophos@users.noreply.github.com>
This commit is contained in:
parent
aeb9492c08
commit
56fdb282d0
@ -71,9 +71,9 @@ theme:
|
|||||||
```
|
```
|
||||||
````
|
````
|
||||||
|
|
||||||
Note that the language shortcode which has to come first must now also be
|
Note that there must be a language shortcode, which has to come first and
|
||||||
prefixed by a `.`. Similarly, the copy button can also be disabled for a
|
must also be prefixed by a `.`. Similarly, the copy button can also be
|
||||||
specific code block:
|
disabled for a specific code block:
|
||||||
|
|
||||||
```` { .yaml .no-copy }
|
```` { .yaml .no-copy }
|
||||||
``` { .yaml .no-copy }
|
``` { .yaml .no-copy }
|
||||||
@ -81,6 +81,9 @@ theme:
|
|||||||
```
|
```
|
||||||
````
|
````
|
||||||
|
|
||||||
|
To enable or disable the copy button without syntax highlighting, you can
|
||||||
|
use the `.text` language shortcode, which doesn't highlight anything.
|
||||||
|
|
||||||
### Code selection button
|
### Code selection button
|
||||||
|
|
||||||
<!-- md:sponsors -->
|
<!-- md:sponsors -->
|
||||||
|
Loading…
Reference in New Issue
Block a user