mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-21 12:28:30 +00:00
Update README.md
This commit is contained in:
parent
397223374a
commit
a7f4f202cb
17
README.md
17
README.md
@ -52,7 +52,7 @@ Display multiple files at once
|
|||||||
> bat src/*.rs
|
> bat src/*.rs
|
||||||
```
|
```
|
||||||
|
|
||||||
Explicitly specify the language
|
Read from stdin, explicitly specify the language
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
> yaml2json .travis.yml | json_pp | bat -l json
|
> yaml2json .travis.yml | json_pp | bat -l json
|
||||||
@ -118,6 +118,21 @@ some dependencies to be built.
|
|||||||
|
|
||||||
## Customization
|
## Customization
|
||||||
|
|
||||||
|
### Highlighting theme
|
||||||
|
|
||||||
|
Use `bat --list-themes` to get a list of all available themes for syntax
|
||||||
|
highlighting. To select the `TwoDark` theme, for example, call `bat` with
|
||||||
|
the `--theme=TwoDark` option. Use `alias bat="bat --theme=TwoDark"` in your
|
||||||
|
shells startup file to make the change permanent.
|
||||||
|
|
||||||
|
### Output style
|
||||||
|
|
||||||
|
You can use the `--style` option to control the appearance of `bat`s output.
|
||||||
|
You can use `--style=numbers,changes`, for example, to show only Git changes
|
||||||
|
and line numbers but no grid and no file header.
|
||||||
|
|
||||||
|
### Add new syntaxes and highlighting themes
|
||||||
|
|
||||||
`bat` uses the excellent [`syntect`](https://github.com/trishume/syntect/)
|
`bat` uses the excellent [`syntect`](https://github.com/trishume/syntect/)
|
||||||
library for syntax highlighting. `syntect` can read any
|
library for syntax highlighting. `syntect` can read any
|
||||||
[Sublime Text `.sublime-syntax` file](https://www.sublimetext.com/docs/3/syntax.html)
|
[Sublime Text `.sublime-syntax` file](https://www.sublimetext.com/docs/3/syntax.html)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user