@@ -490,6 +490,19 @@ and the `GitHub` theme when in the _light mode_.
490alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo GitHub)"
490alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo GitHub)"
495+You can configure `bat` to change the default syntax of the file using `--map-syntax`.
499+# Use INI syntax for .conf files
500+--map-syntax "*.conf:INI"
502+# Use ".gitignore"-style highlighting for ".ignore" files
503+--map-syntax ".ignore:Git Ignore"
493## Configuration file
506## Configuration file
495`bat` can also be customized with a configuration file. The location of the file is dependent
508`bat` can also be customized with a configuration file. The location of the file is dependent
@@ -528,19 +541,6 @@ Example configuration file:
528--map-syntax "*.ino:C++"
541--map-syntax "*.ino:C++"
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.
537−# Use INI syntax for .conf files
538−--map-syntax "*.conf:INI"
540−# Use ".gitignore"-style highlighting for ".ignore" files
541−--map-syntax ".ignore:Git Ignore"
544## Using `bat` on Windows
544## Using `bat` on Windows
546`bat` mostly works out-of-the-box on Windows, but a few features may need extra configuration.
546`bat` mostly works out-of-the-box on Windows, but a few features may need extra configuration.