on master help sign in
add a new syntax section
commitbb7fae72c9f1a23ced3581edb447d4099d28f155 authorhenil <dedaniahenil@gmail.com> dateSun 4 Oct 2020, 00:16 (6 years ago) parent7bd1964
1 file changed+9−2
README.md+9−2
README.md+9−2
@@ -526,12 +526,19 @@ Example configuration file:
526526
527527# Use C++ syntax for .ino files
528528--map-syntax "*.ino:C++"
529+```
529530
530−# Use ".gitignore"-style highlighting for ".ignore" files
531−--map-syntax ".ignore:Git Ignore"
531+### Syntax of a file
532+
533+`bat` can be configured to change the default syntax of the file using `--map-syntax`. For example not all `.conf` file's have `INI` syntax(some do) so it cannot be default. But you can configure it if you want.
532534
535+For example:
536+```bash
533537# Use INI syntax for .conf files
534538--map-syntax "*.conf:INI"
539+
540+# Use ".gitignore"-style highlighting for ".ignore" files
541+--map-syntax ".ignore:Git Ignore"
535542```
536543
537544## Using `bat` on Windows