From d01ca4f07bf4652e85fe04abf47115036f5d74d7 Mon Sep 17 00:00:00 2001 From: yuri1969 <1969yuri1969@gmail.com> Date: Thu, 4 Jul 2024 11:15:33 +0200 Subject: [PATCH] Mention copy button config in the guide --- exampleSite/content/docs/guide/syntax-highlighting.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/exampleSite/content/docs/guide/syntax-highlighting.md b/exampleSite/content/docs/guide/syntax-highlighting.md index 018b0a0..45cc50c 100644 --- a/exampleSite/content/docs/guide/syntax-highlighting.md +++ b/exampleSite/content/docs/guide/syntax-highlighting.md @@ -80,7 +80,16 @@ def main(): ### Copy Button -By default, copy button is enabled for code blocks. +By default, copy button is enabled for code blocks. Its behavior can changed by modifying the site configuration file: + +```yaml {linenos=table,linenostart=42,filename="hugo.yaml"} +params: + highlight: + copy: + enable: true + # hover | always + display: hover +``` ## Supported Languages