docs: document --color-always

This commit is contained in:
rosvi 2026-05-23 08:22:44 -03:00
commit a020293fc2
2 changed files with 10 additions and 0 deletions

View file

@ -173,6 +173,12 @@ either the `dark` or the `light` style for you.
glow -s [dark|light]
```
For piped output, use `--color=always` to keep colorized output even when stdout is not a terminal.
```bash
glow --color=always
```
Alternatively you can also supply a custom JSON stylesheet:
```bash
@ -201,6 +207,8 @@ Here's an example config:
```yaml
# style name or JSON path (default "auto")
style: "light"
# colorize output when piped (auto|always)
color: "auto"
# mouse wheel support (TUI-mode only)
mouse: true
# use pager to display markdown

View file

@ -15,6 +15,8 @@ import (
const defaultConfig = `# style name or JSON path (default "auto")
style: "auto"
# colorize output when piped (auto|always)
color: "auto"
# mouse support (TUI-mode only)
mouse: false
# use pager to display markdown