diff options
author | Joe Mooring <[email protected]> | 2024-04-18 12:16:36 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2024-04-18 12:16:36 -0700 |
commit | 11aa893198e1fe79134a0c4857116e987f29a40a (patch) | |
tree | 519156b4ce6a020afebf069c760eb31141e04941 /commands | |
parent | d88cb5269afcf1e3e9530cc11c23cafe94616694 (diff) | |
download | hugo-11aa893198e1fe79134a0c4857116e987f29a40a.tar.gz hugo-11aa893198e1fe79134a0c4857116e987f29a40a.zip |
commands: Provide examples for chromastyles flags
Closes #12387
Diffstat (limited to 'commands')
-rw-r--r-- | commands/gen.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/gen.go b/commands/gen.go index 88eb1b6fc..476457fbe 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) }, } |