From 86ed09e0fe61bd6abfe7649d4b4d5f3a42f5f1f0 Mon Sep 17 00:00:00 2001 From: Nour Agha <nour@agha.dev> Date: Wed, 14 Jun 2023 13:28:06 +0000 Subject: [PATCH] Syntax highlighting automatic color scheme switching (#815) --- docs/configurations.md | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/configurations.md b/docs/configurations.md index 3bf79fe..d6e30a2 100644 --- a/docs/configurations.md +++ b/docs/configurations.md @@ -74,16 +74,16 @@ ## Syntax Highlight -The theme uses the Goldmark syntax highlight system. To configure it add to your `config.toml`: +The theme uses the Goldmark syntax highlight system. GitHub light and dark are set as the default styles. To choose a different style, make sure `noClasses` is not set to false (default is true) and add to your `config.toml`: ``` [markup.highlight] -style = "github-dark" +style = "monokai" ``` All `style` are available [here](https://xyproto.github.io/splash/docs/all.html). -It is also possible to use custom styles with generated CSS files. See [here](https://gohugo.io/content-management/syntax-highlighting/#generate-syntax-highlighter-css). +Alternatively, it is possible to use custom styles with generated CSS files. See [here](https://gohugo.io/content-management/syntax-highlighting/#generate-syntax-highlighter-css). ## Theme Parameters -- Gitblit v1.10.0