mirror of
https://github.com/scopatz/nanorc
synced 2024-11-27 12:25:53 +01:00
Add comments for Mac OSX users
This commit is contained in:
parent
57f37d5428
commit
1718e6b414
5
c.nanorc
5
c.nanorc
|
@ -1,5 +1,10 @@
|
||||||
## Here is an example for C/C++.
|
## Here is an example for C/C++.
|
||||||
##
|
##
|
||||||
|
|
||||||
|
## Mac OSX users: If you use Mac OSX, it might be necessary to perform the following:
|
||||||
|
## 1. Replace \< by [[:<:]]
|
||||||
|
## 2. Replace \> by [[:>:]]
|
||||||
|
|
||||||
syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$"
|
syntax "c" "\.(c(c|pp|xx)?|C)$" "\.(h(h|pp|xx)?|H)$" "\.ii?$" "\.(def)$"
|
||||||
color brightred "\<[A-Z_][0-9A-Z_]+\>"
|
color brightred "\<[A-Z_][0-9A-Z_]+\>"
|
||||||
color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
|
color green "\<(float|double|bool|char|int|short|long|sizeof|enum|void|static|const|struct|union|typedef|extern|(un)?signed|inline)\>"
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
## Here is an example for Java.
|
## Here is an example for Java.
|
||||||
##
|
##
|
||||||
|
|
||||||
|
## Mac OSX users: If you use Mac OSX, it might be necessary to perform the following:
|
||||||
|
## 1. Replace \< by [[:<:]]
|
||||||
|
## 2. Replace \> by [[:>:]]
|
||||||
|
|
||||||
syntax "java" "\.java$"
|
syntax "java" "\.java$"
|
||||||
color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>"
|
color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>"
|
||||||
color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>"
|
color red "\<(break|case|catch|continue|default|do|else|finally|for|if|return|switch|throw|try|while)\>"
|
||||||
|
|
15
js.nanorc
15
js.nanorc
|
@ -1,17 +1,12 @@
|
||||||
### all *js files ( e.g. Firefox user.js, prefs.js )
|
### all *js files ( e.g. Firefox user.js, prefs.js )
|
||||||
|
|
||||||
## Old version
|
|
||||||
|
|
||||||
#syntax "jsfiles" "(\.|/|)js$"
|
|
||||||
#color green "//.*$" start="\/\*" end="\*\/"
|
|
||||||
#color blue "'(\\.|[^'])*'"
|
|
||||||
#color red ""(\\.|[^\"])*""
|
|
||||||
#color brightgreen "\<(true)\>"
|
|
||||||
#color brightred "\<(false)\>" "http\:\/\/.*$"
|
|
||||||
#color brightmagenta "[0-9](\\.|[^\"])*)"
|
|
||||||
|
|
||||||
## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting
|
## New updated taken from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting
|
||||||
|
|
||||||
|
## Mac OSX users: If you use Mac OSX, it might be necessary to perform the following:
|
||||||
|
## 1. Replace \< by [[:<:]]
|
||||||
|
## 2. Replace \> by [[:>:]]
|
||||||
|
## 3. Replace \' by \\'
|
||||||
|
|
||||||
syntax "JavaScript" "\.(js)$"
|
syntax "JavaScript" "\.(js)$"
|
||||||
|
|
||||||
## Default
|
## Default
|
||||||
|
|
|
@ -1,6 +1,11 @@
|
||||||
syntax "json" "\.json$"
|
syntax "json" "\.json$"
|
||||||
header "^\{$"
|
header "^\{$"
|
||||||
|
|
||||||
|
## Mac OSX users: If you use Mac OSX, it might be necessary to perform the following:
|
||||||
|
## 1. Replace \< by [[:<:]]
|
||||||
|
## 2. Replace \> by [[:>:]]
|
||||||
|
## 3. Replace \' by \\'
|
||||||
|
|
||||||
color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>"
|
color blue "\<[-]?[1-9][0-9]*([Ee][+-]?[0-9]+)?\>" "\<[-]?[0](\.[0-9]+)?\>"
|
||||||
color cyan "\<null\>"
|
color cyan "\<null\>"
|
||||||
color brightcyan "\<(true|false)\>"
|
color brightcyan "\<(true|false)\>"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user