source: trunk/plugins/LocalFilesEditor/editarea/reg_syntax/xml.js @ 5160

Last change on this file since 5160 was 5160, checked in by patdenice, 14 years ago

Editor
Update editarea to 0.8.2.
Remove CSS tab.
Fix jQuery path.

File size: 1.3 KB
Line 
1/*
2* last update: 2006-08-24
3*/
4
5editAreaLoader.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};
Note: See TracBrowser for help on using the repository browser.