]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/README.md
Legacy syntax overhaul 2 (#577)
[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 `~/.config/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
12 # Using with colorschemes
13
14 Not all of these files have been converted to use micro's colorscheme feature. Most of them just hardcode the colors, which can be problematic depending on the colorscheme you use.
15
16 Here is a list of the files that have been converted to properly use colorschemes:
17
18 * vi
19 * go
20 * c
21 * d
22 * markdown
23 * html
24 * lua
25 * swift
26 * rust
27 * java
28 * javascript
29 * pascal
30 * python
31 * ruby
32 * sh
33 * git
34 * tex
35 * solidity
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](LICENSE).