Repository: gohugoio/hugo (language: go)

Issue:
commands: Provide examples for chromastyles `--highlightStyle` and `--linesStyle`
Running `hugo gen chromastyles` without any flags will generate an `.hl` class that sets the background color. But if you attempt to change the background color with the `--highlightStyle` flag, the `color` gets set instead of the `background-color`:
```
$ hugo gen chromastyles | grep LineHighlight
/* LineHighlight */ .chroma .hl { background-color:#d8d8d8 }

$ hugo gen chromastyles --highlightStyle "#abcdef" | grep LineHighlight
/* LineHighlight */ .chroma .hl { color:#abcdef }

```

```
$ hugo version
hugo v0.125.0-a32400b5f4e704daf7de19f44584baf77a4501ab+extended darwin/amd64 BuildDate=2024-04-16T15:04:41Z VendorInfo=brew
```



Discussion / hints:
```text
$ hugo gen chromastyles --highlightStyle "#fff000 bg:#000fff" | grep LineHighlight
/* LineHighlight */ .chroma .hl { color:#fff000;background-color:#000fff }
```

This isn't documented. Changing issue title.

Fix patch:
diff --git a/commands/gen.go b/commands/gen.go
index 88eb1b6fc7f..476457fbeaa 100644
--- a/commands/gen.go
+++ b/commands/gen.go
@@ -78,9 +78,9 @@ See https://xyproto.github.io/splash/docs/all.html for a preview of the availabl
 				cmd.ValidArgsFunction = cobra.NoFileCompletions
 				cmd.PersistentFlags().StringVar(&style, "style", "friendly", "highlighter style (see https://xyproto.github.io/splash/docs/)")
 				_ = cmd.RegisterFlagCompletionFunc("style", cobra.NoFileCompletions)
-				cmd.PersistentFlags().StringVar(&highlightStyle, "highlightStyle", "", "style used for highlighting lines (see https://github.com/alecthomas/chroma)")
+				cmd.PersistentFlags().StringVar(&highlightStyle, "highlightStyle", "", `foreground and background colors for highlighted lines, e.g. --highlightStyle "#fff000 bg:#000fff"`)
 				_ = cmd.RegisterFlagCompletionFunc("highlightStyle", cobra.NoFileCompletions)
-				cmd.PersistentFlags().StringVar(&linesStyle, "linesStyle", "", "style used for line numbers (see https://github.com/alecthomas/chroma)")
+				cmd.PersistentFlags().StringVar(&linesStyle, "linesStyle", "", `foreground and background colors for inline line numbers, e.g. --linesStyle "#fff000 bg:#000fff"`)
 				_ = cmd.RegisterFlagCompletionFunc("linesStyle", cobra.NoFileCompletions)
 			},
 		}


Test patch: