mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-18 20:11:03 +00:00
Fix minor mistakes in --map-syntax documentation
This commit is contained in:
parent
221c9815a5
commit
0e2bef3b79
@ -481,7 +481,7 @@ You can add new (or change existing) file name patterns using the `--map-syntax`
|
|||||||
command line option. The option takes an argument of the form `pattern:syntax` where
|
command line option. The option takes an argument of the form `pattern:syntax` where
|
||||||
`pattern` is a glob pattern that is matched against the file name and
|
`pattern` is a glob pattern that is matched against the file name and
|
||||||
the absolute file path. The `syntax` part is the full name of a supported language
|
the absolute file path. The `syntax` part is the full name of a supported language
|
||||||
(use `bat --list-languages` for an overview)full .
|
(use `bat --list-languages` for an overview).
|
||||||
|
|
||||||
Note: You probably want to use this option as an entry in `bat`s configuration file instead
|
Note: You probably want to use this option as an entry in `bat`s configuration file instead
|
||||||
of passing it on the command line (see below).
|
of passing it on the command line (see below).
|
||||||
@ -499,7 +499,7 @@ Example: To open all files called `.ignore` (exact match) with the "Git Ignore"
|
|||||||
Example: To open all `.conf` files in subfolders of `/etc/apache2` with the "Apache Conf"
|
Example: To open all `.conf` files in subfolders of `/etc/apache2` with the "Apache Conf"
|
||||||
syntax, use (this mapping is already built in):
|
syntax, use (this mapping is already built in):
|
||||||
```bash
|
```bash
|
||||||
-map-syntax='/etc/apache2/**/*.conf:Apache Conf'
|
--map-syntax='/etc/apache2/**/*.conf:Apache Conf'
|
||||||
```
|
```
|
||||||
|
|
||||||
### Using a different pager
|
### Using a different pager
|
||||||
|
Loading…
x
Reference in New Issue
Block a user