1
0
mirror of https://github.com/BurntSushi/ripgrep.git synced 2025-06-25 14:22:54 +02:00

doc: add color FAQ entries

This commit adds FAQ entries about how to configure ripgrep's coloring,
and how to get true color support in Windows consoles.
This commit is contained in:
Andrew Gallant
2018-02-10 19:27:55 -05:00
parent 2d68054b1d
commit 3effea0b7c
2 changed files with 104 additions and 5 deletions

View File

@ -684,10 +684,10 @@ provided multiple times. Settings are applied iteratively. Colors are limited
to one of eight choices: red, blue, green, cyan, magenta, yellow, white and
black. Styles are limited to nobold, bold, nointense or intense.
The format of the flag is {type}:{attribute}:{value}. {type} should be one of
path, line, column or match. {attribute} can be fg, bg or style. {value} is
either a color (for fg and bg) or a text style. A special format, {type}:none,
will clear all color settings for {type}.
The format of the flag is `{type}:{attribute}:{value}`. `{type}` should be
one of path, line, column or match. `{attribute}` can be fg, bg or style.
`{value}` is either a color (for fg and bg) or a text style. A special format,
`{type}:none`, will clear all color settings for `{type}`.
For example, the following command will change the match color to magenta and
the background color for line numbers to yellow: