mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
Use new syntax highlighting engine from zyedidia/highlight
This changes all the syntax files in the runtime directory and also changes how syntax highlighting is done from inside micro.
This commit is contained in:
@@ -1,41 +1,5 @@
|
||||
# Micro syntax highlighting files
|
||||
# Syntax Files
|
||||
|
||||
These are the syntax highlighting files for micro. To install them, just
|
||||
put all the syntax files in `~/.config/micro/syntax`.
|
||||
|
||||
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:
|
||||
|
||||
* 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) ".*"`
|
||||
|
||||
# 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
|
||||
* pascal
|
||||
* python
|
||||
* ruby
|
||||
* sh
|
||||
* git
|
||||
* tex
|
||||
* solidity
|
||||
|
||||
# License
|
||||
|
||||
Because the nano syntax files I have modified are distributed under the GNU GPLv3 license, these files are also distributed
|
||||
under that license. See [LICENSE](LICENSE).
|
||||
Here are highlight's syntax files. If you would like to make a new syntax file, you should first check it
|
||||
with the `syntax_checker.go` program. Just place it in this directory and run the program (`go run syntax_checker.go`)
|
||||
and it will let you know if there are issues with any of the files in the directory.
|
||||
Reference in New Issue
Block a user