mirror of
https://github.com/sharkdp/bat.git
synced 2024-12-28 09:18:53 +01:00
README.md: Improve docs around --map-syntax argument based on feedback
This commit is contained in:
parent
eb4b1eb28f
commit
a05c8ee1a8
@ -515,9 +515,9 @@ command line option. The option takes an argument of the form `pattern:syntax` w
|
|||||||
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).
|
(use `bat --list-languages` for an overview).
|
||||||
|
|
||||||
Note: You probably want to use this option as [an entry in `bat`s configuration file](#configuration-file)
|
*Note:* You probably want to use this option as [an entry in `bat`'s configuration file](#configuration-file)
|
||||||
for persistence, instead of passing it on the command line as a one-off, as generally
|
for persistence, instead of passing it on the command line as a one-off, as generally
|
||||||
you'd just use `-l` unless you are passing multiple filenames as arguments.
|
you'd just use `-l` if you want to manually specify a language for a file.
|
||||||
|
|
||||||
Example: To use "INI" syntax highlighting for all files with a `.conf` file extension, use
|
Example: To use "INI" syntax highlighting for all files with a `.conf` file extension, use
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
Reference in New Issue
Block a user