1 | /* |
---|
2 | * last update: 2006-08-24 |
---|
3 | */ |
---|
4 | |
---|
5 | editAreaLoader.load_syntax["xml"] = { |
---|
6 | 'DISPLAY_NAME' : 'XML' |
---|
7 | ,'COMMENT_SINGLE' : {} |
---|
8 | ,'COMMENT_MULTI' : {'<!--' : '-->'} |
---|
9 | ,'QUOTEMARKS' : {1: "'", 2: '"'} |
---|
10 | ,'KEYWORD_CASE_SENSITIVE' : false |
---|
11 | ,'KEYWORDS' : { |
---|
12 | } |
---|
13 | ,'OPERATORS' :[ |
---|
14 | ] |
---|
15 | ,'DELIMITERS' :[ |
---|
16 | ] |
---|
17 | ,'REGEXPS' : { |
---|
18 | 'xml' : { |
---|
19 | 'search' : '()(<\\?[^>]*?\\?>)()' |
---|
20 | ,'class' : 'xml' |
---|
21 | ,'modifiers' : 'g' |
---|
22 | ,'execute' : 'before' // before or after |
---|
23 | } |
---|
24 | ,'cdatas' : { |
---|
25 | 'search' : '()(<!\\[CDATA\\[.*?\\]\\]>)()' |
---|
26 | ,'class' : 'cdata' |
---|
27 | ,'modifiers' : 'g' |
---|
28 | ,'execute' : 'before' // before or after |
---|
29 | } |
---|
30 | ,'tags' : { |
---|
31 | 'search' : '(<)(/?[a-z][^ \r\n\t>]*)([^>]*>)' |
---|
32 | ,'class' : 'tags' |
---|
33 | ,'modifiers' : 'gi' |
---|
34 | ,'execute' : 'before' // before or after |
---|
35 | } |
---|
36 | ,'attributes' : { |
---|
37 | 'search' : '( |\n|\r|\t)([^ \r\n\t=]+)(=)' |
---|
38 | ,'class' : 'attributes' |
---|
39 | ,'modifiers' : 'g' |
---|
40 | ,'execute' : 'before' // before or after |
---|
41 | } |
---|
42 | } |
---|
43 | ,'STYLES' : { |
---|
44 | 'COMMENTS': 'color: #AAAAAA;' |
---|
45 | ,'QUOTESMARKS': 'color: #6381F8;' |
---|
46 | ,'KEYWORDS' : { |
---|
47 | } |
---|
48 | ,'OPERATORS' : 'color: #E775F0;' |
---|
49 | ,'DELIMITERS' : '' |
---|
50 | ,'REGEXPS' : { |
---|
51 | 'attributes': 'color: #B1AC41;' |
---|
52 | ,'tags': 'color: #E62253;' |
---|
53 | ,'xml': 'color: #8DCFB5;' |
---|
54 | ,'cdata': 'color: #50B020;' |
---|
55 | } |
---|
56 | } |
---|
57 | }; |
---|