|
19 | 19 | [<a href="doc/README-ru.md">Русский</a>] |
20 | 20 | </p> |
21 | 21 |
|
22 | | -### Sponsors |
23 | | - |
24 | | -A special *thank you* goes to our biggest <a href="doc/sponsors.md">sponsors</a>:<br> |
25 | | - |
26 | | -<p> |
27 | | -<a href="https://www.warp.dev/bat"> |
28 | | - <img src="doc/sponsors/warp-logo.png" width="200" alt="Warp"> |
29 | | - <br> |
30 | | - <strong>Warp, the intelligent terminal</strong> |
31 | | - <br> |
32 | | - <sub>Available on MacOS, Linux, Windows</sub> |
33 | | -</a> |
34 | | -</p> |
35 | | - |
36 | 22 | ### Syntax highlighting |
37 | 23 |
|
38 | 24 | `bat` supports syntax highlighting for a large number of programming and markup |
@@ -208,12 +194,6 @@ Note that the [Manpage syntax](https://raw.githubusercontent.com/sharkdp/bat/mas |
208 | 194 |
|
209 | 195 | The [`prettybat`](https://github.com/eth-p/bat-extras/blob/master/doc/prettybat.md) script is a wrapper that will format code and print it with `bat`. |
210 | 196 |
|
211 | | -#### `Warp` |
212 | | - |
213 | | -<a href="https://app.warp.dev/drive/folder/-Bat-Warp-Pack-lxhe7HrEwgwpG17mvrFSz1"> |
214 | | - <img src="doc/sponsors/warp-pack-header.png" alt="Warp"> |
215 | | -</a> |
216 | | - |
217 | 197 | #### Highlighting `--help` messages |
218 | 198 |
|
219 | 199 | You can use `bat` to colorize help text: `$ cp --help | bat -plhelp` |
@@ -526,6 +506,30 @@ and line numbers but no grid and no file header. Set the `BAT_STYLE` environment |
526 | 506 | variable to make these changes permanent or use `bat`'s |
527 | 507 | [configuration file](https://raw.githubusercontent.com/sharkdp/bat/master/#configuration-file). |
528 | 508 |
|
| 509 | +By default, `bat` enables `changes`, `grid`, `header-filename`, `numbers`, and `snip`. |
| 510 | + |
| 511 | +The available pre-defined styles are: |
| 512 | + |
| 513 | +| Style | Description | |
| 514 | +|-------|-------------| |
| 515 | +| `default` | Enables the recommended style components listed above. | |
| 516 | +| `full` | Enables all available components. | |
| 517 | +| `auto` | Same as `default`, unless the output is piped. | |
| 518 | +| `plain` | Disables all available components. | |
| 519 | + |
| 520 | +The available individual components are: |
| 521 | + |
| 522 | +| Component | Description | |
| 523 | +|-----------|-------------| |
| 524 | +| `changes` | Show Git modification markers. | |
| 525 | +| `header` | Alias for `header-filename`. | |
| 526 | +| `header-filename` | Show filenames before the content. | |
| 527 | +| `header-filesize` | Show file sizes before the content. | |
| 528 | +| `grid` | Vertical/horizontal lines to separate the side bar and header from the content. | |
| 529 | +| `rule` | Horizontal lines to delimit files. | |
| 530 | +| `numbers` | Show line numbers in the side bar. | |
| 531 | +| `snip` | Draw separation lines between distinct line ranges. | |
| 532 | + |
529 | 533 | >[!tip] |
530 | 534 | > If you specify a default style in `bat`'s config file, you can change which components |
531 | 535 | > are displayed during a single run of `bat` using the `--style` command-line argument. |
|
0 commit comments