@@ -32,3 +32,38 @@ Make sure that you have the devel-version of libopenssl installed (see instructi
3232``` bash
3333cargo install bat
3434```
35+
36+## Customization
37+
38+`bat` uses the excellent [`syntect`](https://github.com/trishume/syntect/) library for syntax highlighting. `syntect` can read any Sublime Text language definitions and highlighting theme.
39+
40+To build your own syntax-set and theme, follow these steps:
41+
42+Create a folder with syntax highlighting theme:
43+``` bash
44+mkdir -p ~/.config/bat/themes
45+cd ~/.config/bat/themes
46+
47+# Download a theme, for example:
48+git clone https://github.com/jonschlinkert/sublime-monokai-extended
49+
50+# Create a 'Default.tmTheme' link
51+ln -s "sublime-monokai-extended/Monokai Extended.tmTheme" Default.tmTheme
52+```
53+
54+Create a folder with language definition files:
55+``` bash
56+mkdir -p ~/.config/bat/syntax
57+cd ~/.config/bat/syntax
58+
59+# Download some language definition files, for example:
60+git clone https://github.com/sublimehq/Packages/
61+rm -rf Packages/Markdown
62+git clone https://github.com/jonschlinkert/sublime-markdown-extended
63+```
64+
65+Finally, use the following command to parse all these files into a binary
66+cache:
67+``` bash
68+bat init-cache
69+```