]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/README.md
Merge branch 'cross-compile'
[micro.git] / runtime / syntax / README.md
1 # Micro syntax highlighting files
2
3 These are the syntax highlighting files for micro. To install them, just
4 put all the syntax files in `~/.micro/syntax`.
5
6 They are taken from Nano, specifically from [this repository](https://github.com/scopatz/nanorc).
7 Micro syntax files are almost identical to Nano's, except for some key differences:
8
9 * Micro does not use `icolor`. Instead, for a case insensitive match, use the case insensitive flag (`i`) in the regular expression
10     * For example, `icolor green ".*"` would become `color green (i) ".*"`
11 * Micro does not support `start="..." end="..."`. Instead use the `s` flag to match newlines and put `.*?` in the middle
12     * For example `color green start="hello" end="world"` would become `color green (s) "hello.*?world"`