From 56fdb282d027efc083237beec842733ad24ff51d Mon Sep 17 00:00:00 2001 From: squidfunk Date: Fri, 27 Sep 2024 09:59:54 +0200 Subject: [PATCH] Adjusted code copy button documentation Co-authored-by: thorstenpeter-sophos <86772976+thorstenpeter-sophos@users.noreply.github.com> --- docs/reference/code-blocks.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/reference/code-blocks.md b/docs/reference/code-blocks.md index 4ac278ad848..414057a2597 100644 --- a/docs/reference/code-blocks.md +++ b/docs/reference/code-blocks.md @@ -71,9 +71,9 @@ theme: ``` ```` - Note that the language shortcode which has to come first must now also be - prefixed by a `.`. Similarly, the copy button can also be disabled for a - specific code block: + Note that there must be a language shortcode, which has to come first and + must also be prefixed by a `.`. Similarly, the copy button can also be + disabled for a specific code block: ```` { .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