PluginProbe
Wp-Insert / 1.7.1
Wp-Insert v1.7.1
trunk 1.0 1.1 1.2 1.2.1 1.2.2 1.3.0 1.3.1 1.3.3 1.4 1.5.0 1.5.1 1.5.2 1.5.3 1.6.0 1.6.1 1.6.2 1.7 1.7.1 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 2.0 All 63 releases
wp-insert / editarea / reg_syntax / xml.js

xml.js in Wp-Insert 1.7.1, at editarea/reg_syntax/xml.js

58 lines 1.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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 };
58