on master help sign in
add a new syntax section
bb7fae7henil
README.md+9−2
@@ -526,12 +526,19 @@ Example configuration file:
526
526
527# Use C++ syntax for .ino files
527# Use C++ syntax for .ino files
528--map-syntax "*.ino:C++"
528--map-syntax "*.ino:C++"
529+```
529
530
530−# Use ".gitignore"-style highlighting for ".ignore" files
531+### Syntax of a file
531−--map-syntax ".ignore:Git Ignore"
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.
532
534
535+For example:
536+```bash
533# Use INI syntax for .conf files
537# Use INI syntax for .conf files
534--map-syntax "*.conf:INI"
538--map-syntax "*.conf:INI"
539+
540+# Use ".gitignore"-style highlighting for ".ignore" files
541+--map-syntax ".ignore:Git Ignore"
535```
542```
536
543
537## Using `bat` on Windows
544## Using `bat` on Windows