Project

General

Profile

1
/*
2
* last update: 2006-08-24
3
*/
4

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