2016-03-21 16:16:02 +00:00
|
|
|
# Micro syntax highlighting files
|
|
|
|
|
|
|
|
|
|
These are the syntax highlighting files for micro. To install them, just
|
2016-04-18 18:04:42 +00:00
|
|
|
put all the syntax files in `~/.config/micro/syntax`.
|
2016-03-21 16:16:02 +00:00
|
|
|
|
|
|
|
|
They are taken from Nano, specifically from [this repository](https://github.com/scopatz/nanorc).
|
|
|
|
|
Micro syntax files are almost identical to Nano's, except for some key differences:
|
|
|
|
|
|
2016-03-22 22:29:56 +00:00
|
|
|
* Micro does not use `icolor`. Instead, for a case insensitive match, use the case insensitive flag (`i`) in the regular expression
|
|
|
|
|
* For example, `icolor green ".*"` would become `color green (i) ".*"`
|
2016-04-08 13:22:36 +00:00
|
|
|
|
|
|
|
|
# Using with colorschemes
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
|
|
Here is a list of the files that have been converted to properly use colorschemes:
|
|
|
|
|
|
|
|
|
|
* vi
|
|
|
|
|
* go
|
|
|
|
|
* c
|
|
|
|
|
* d
|
|
|
|
|
* markdown
|
|
|
|
|
* html
|
|
|
|
|
* lua
|
|
|
|
|
* swift
|
|
|
|
|
* rust
|
|
|
|
|
* java
|
|
|
|
|
* javascript
|
2016-09-05 15:53:49 +00:00
|
|
|
* pascal
|
2016-04-08 13:22:36 +00:00
|
|
|
* python
|
|
|
|
|
* ruby
|
|
|
|
|
* sh
|
|
|
|
|
* git
|
|
|
|
|
|
|
|
|
|
# License
|
|
|
|
|
|
|
|
|
|
Because the nano syntax files I have modified are distributed under the GNU GPLv3 license, these files are also distributed
|
2016-04-08 13:23:24 +00:00
|
|
|
under that license. See [LICENSE](LICENSE).
|