-
Notifications
You must be signed in to change notification settings - Fork 86
/
dummy.nanorc
39 lines (39 loc) · 1.52 KB
/
dummy.nanorc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
##########################################################################
#
#
# Dummy ruleset
#
#
# If you want to create your own rules you can use this simple example:
#
# syntax "Dummy" "(\.|/)foo$" -> this creates the ruleset "Dummy" and it
# matches all filenames ending with foo
# "foo" -> this matches foo exactly
# "foo.*$" -> this matches files beginning with foo
#
#
#
# After you selected the files you can define rulesets for this file:
#
#
# color blue "#.*$" -> colors all after "#" blue on this line
# color red "\@" -> colors all "@" red, \ means to handle it _not_
# as a special sign
# color yellow "\<(profi)\>" -> colors only the word profi yellow
# color yellow "profi" -> colors all strings "profi" yellow, also in
# profile
# color black "[0-9]" -> colors all numbers black
# color magenta "'(\\.|[^'])*'" -> colors all between ' and ' magenta,
# but only on the same line
# color red "[A-Z0-9\_]+=" -> matches everything folowed by =
# color green "setenv|export" -> matches the string setenv OR export
# color cyan "^.*(foobar).*$" -> colors the whole line cyan, by matching foobar
# on that line
#
# color brightred,blue start="<!--" end="-->"
#
# -> colors all between <!-- and --> brightred on blue
# even if there are more lines between
#
#
###########################################################################