mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-07 13:41:14 +00:00
fix a typo
This commit is contained in:
parent
4be32cf746
commit
206d3e7b91
@ -492,7 +492,7 @@ alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /de
|
|||||||
|
|
||||||
### Syntax of a file
|
### Syntax of a file
|
||||||
|
|
||||||
You can change the default syntax highlighting of the file using `--map-syntax` option.
|
You can change the default syntax highlighting of the file using the `--map-syntax` option.
|
||||||
It uses glob pattern matching and is matched on full path and filename.
|
It uses glob pattern matching and is matched on full path and filename.
|
||||||
|
|
||||||
Use it like this:
|
Use it like this:
|
||||||
@ -503,7 +503,7 @@ bat --map-syntax='PATTERN:SYNTAX' file-name
|
|||||||
|
|
||||||
For example:
|
For example:
|
||||||
```bash
|
```bash
|
||||||
# Using `INI` file syntax highligting when opening a file with extension `.conf`.
|
# Using `INI` file syntax highlighting when opening a file with extension `.conf`.
|
||||||
bat --map-syntax='*.conf:INI' file.conf
|
bat --map-syntax='*.conf:INI' file.conf
|
||||||
|
|
||||||
# Using `Git Ignore` file syntax highlighting for ".ignore" files
|
# Using `Git Ignore` file syntax highlighting for ".ignore" files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user