summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorhenil <dedaniahenil@gmail.com>2020-10-04 01:20:19 +0530
committerDavid Peter <sharkdp@users.noreply.github.com>2020-10-11 20:54:37 +0200
commitaa00e0a6b0d31072a5a6eea54d663d64ec48bb14 (patch)
tree976cdbeaffc3a2e734324cd06953f8a5c56e921d /README.md
parentbb7fae72c9f1a23ced3581edb447d4099d28f155 (diff)
fix section
Diffstat (limited to 'README.md')
-rw-r--r--README.md26
1 files changed, 13 insertions, 13 deletions
diff --git a/README.md b/README.md
index 37678011..1e551df0 100644
--- a/README.md
+++ b/README.md
@@ -490,6 +490,19 @@ and the `GitHub` theme when in the _light mode_.
alias cat="bat --theme=\$(defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo default || echo GitHub)"
```
+### Syntax of a file
+
+You can configure `bat` to change the default syntax of the file using `--map-syntax`.
+
+For example:
+```bash
+# Use INI syntax for .conf files
+--map-syntax "*.conf:INI"
+
+# Use ".gitignore"-style highlighting for ".ignore" files
+--map-syntax ".ignore:Git Ignore"
+```
+
## Configuration file
`bat` can also be customized with a configuration file. The location of the file is dependent
@@ -528,19 +541,6 @@ Example configuration file:
--map-syntax "*.ino:C++"
```
-### Syntax of a file
-
-`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.
-
-For example:
-```bash
-# Use INI syntax for .conf files
---map-syntax "*.conf:INI"
-
-# Use ".gitignore"-style highlighting for ".ignore" files
---map-syntax ".ignore:Git Ignore"
-```
-
## Using `bat` on Windows
`bat` mostly works out-of-the-box on Windows, but a few features may need extra configuration.