]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/README.md
Update syntax files
[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"`
13
14 # Using with colorschemes
15
16 Not all of these files have been converted to use micro's colorscheme feature. Most of them just hardcode the colors, which
17 can be problematic depending on the colorscheme you use.
18
19 Here is a list of the files that have been converted to properly use colorschemes:
20
21 * vi
22 * go
23 * c
24 * d
25 * markdown
26 * html
27 * lua
28 * swift
29 * rust
30 * java
31 * javascript
32 * python
33 * ruby
34 * sh
35 * git
36
37 # License
38
39 Because the nano syntax files I have modified are distributed under the GNU GPLv3 license, these files are also distributed
40 under that license. See [LICENSE](runtime/syntax/LICENSE).