Podświetlanie składni w edytorze XML dzięki editArea. Closes #17. Niestety dla tekstó...
[redakcja.git] / project / static / js / reg_syntax / css.js
1 editAreaLoader.load_syntax["css"] = {\r
2         'COMMENT_SINGLE' : {1 : '@'}\r
3         ,'COMMENT_MULTI' : {'/*' : '*/'}\r
4         ,'QUOTEMARKS' : ['"', "'"]\r
5         ,'KEYWORD_CASE_SENSITIVE' : false\r
6         ,'KEYWORDS' : {\r
7                 'attributes' : [\r
8                         'aqua', 'azimuth', 'background-attachment', 'background-color',\r
9                         'background-image', 'background-position', 'background-repeat',\r
10                         'background', 'border-bottom-color', 'border-bottom-style',\r
11                         'border-bottom-width', 'border-left-color', 'border-left-style',\r
12                         'border-left-width', 'border-right', 'border-right-color',\r
13                         'border-right-style', 'border-right-width', 'border-top-color',\r
14                         'border-top-style', 'border-top-width','border-bottom', 'border-collapse',\r
15                         'border-left', 'border-width', 'border-color', 'border-spacing',\r
16                         'border-style', 'border-top', 'border',  'caption-side',\r
17                         'clear', 'clip', 'color', 'content', 'counter-increment', 'counter-reset',\r
18                         'cue-after', 'cue-before', 'cue', 'cursor', 'direction', 'display',\r
19                         'elevation', 'empty-cells', 'float', 'font-family', 'font-size',\r
20                         'font-size-adjust', 'font-stretch', 'font-style', 'font-variant',\r
21                         'font-weight', 'font', 'height', 'letter-spacing', 'line-height',\r
22                         'list-style', 'list-style-image', 'list-style-position', 'list-style-type',\r
23                         'margin-bottom', 'margin-left', 'margin-right', 'margin-top', 'margin',\r
24                         'marker-offset', 'marks', 'max-height', 'max-width', 'min-height',\r
25                         'min-width', 'opacity', 'orphans', 'outline', 'outline-color', 'outline-style',\r
26                         'outline-width', 'overflow', 'padding-bottom', 'padding-left',\r
27                         'padding-right', 'padding-top', 'padding', 'page', 'page-break-after',\r
28                         'page-break-before', 'page-break-inside', 'pause-after', 'pause-before',\r
29                         'pause', 'pitch', 'pitch-range',  'play-during', 'position', 'quotes',\r
30                         'richness', 'right', 'size', 'speak-header', 'speak-numeral', 'speak-punctuation',\r
31                         'speak', 'speech-rate', 'stress', 'table-layout', 'text-align', 'text-decoration',\r
32                         'text-indent', 'text-shadow', 'text-transform', 'top', 'unicode-bidi',\r
33                         'vertical-align', 'visibility', 'voice-family', 'volume', 'white-space', 'widows',\r
34                         'width', 'word-spacing', 'z-index', 'bottom', 'left'\r
35                 ]\r
36                 ,'values' : [\r
37                         'above', 'absolute', 'always', 'armenian', 'aural', 'auto', 'avoid',\r
38                         'baseline', 'behind', 'below', 'bidi-override', 'black', 'blue', 'blink', 'block', 'bold', 'bolder', 'both',\r
39                         'capitalize', 'center-left', 'center-right', 'center', 'circle', 'cjk-ideographic', \r
40             'close-quote', 'collapse', 'condensed', 'continuous', 'crop', 'crosshair', 'cross', 'cursive',\r
41                         'dashed', 'decimal-leading-zero', 'decimal', 'default', 'digits', 'disc', 'dotted', 'double',\r
42                         'e-resize', 'embed', 'extra-condensed', 'extra-expanded', 'expanded',\r
43                         'fantasy', 'far-left', 'far-right', 'faster', 'fast', 'fixed', 'fuchsia',\r
44                         'georgian', 'gray', 'green', 'groove', 'hebrew', 'help', 'hidden', 'hide', 'higher',\r
45                         'high', 'hiragana-iroha', 'hiragana', 'icon', 'inherit', 'inline-table', 'inline',\r
46                         'inset', 'inside', 'invert', 'italic', 'justify', 'katakana-iroha', 'katakana',\r
47                         'landscape', 'larger', 'large', 'left-side', 'leftwards', 'level', 'lighter', 'lime', 'line-through', 'list-item', 'loud', 'lower-alpha', 'lower-greek', 'lower-roman', 'lowercase', 'ltr', 'lower', 'low',\r
48                         'maroon', 'medium', 'message-box', 'middle', 'mix', 'monospace',\r
49                         'n-resize', 'narrower', 'navy', 'ne-resize', 'no-close-quote', 'no-open-quote', 'no-repeat', 'none', 'normal', 'nowrap', 'nw-resize',\r
50                         'oblique', 'olive', 'once', 'open-quote', 'outset', 'outside', 'overline',\r
51                         'pointer', 'portrait', 'purple', 'px',\r
52                         'red', 'relative', 'repeat-x', 'repeat-y', 'repeat', 'rgb', 'ridge', 'right-side', 'rightwards',\r
53                         's-resize', 'sans-serif', 'scroll', 'se-resize', 'semi-condensed', 'semi-expanded', 'separate', 'serif', 'show', 'silent', 'silver', 'slow', 'slower', 'small-caps', 'small-caption', 'smaller', 'soft', 'solid', 'spell-out', 'square',\r
54                         'static', 'status-bar', 'super', 'sw-resize',\r
55                         'table-caption', 'table-cell', 'table-column', 'table-column-group', 'table-footer-group', 'table-header-group', 'table-row', 'table-row-group', 'teal', 'text', 'text-bottom', 'text-top', 'thick', 'thin', 'transparent',\r
56                         'ultra-condensed', 'ultra-expanded', 'underline', 'upper-alpha', 'upper-latin', 'upper-roman', 'uppercase', 'url',\r
57                         'visible',\r
58                         'w-resize', 'wait', 'white', 'wider',\r
59                         'x-fast', 'x-high', 'x-large', 'x-loud', 'x-low', 'x-small', 'x-soft', 'xx-large', 'xx-small',\r
60                         'yellow', 'yes'\r
61                 ]\r
62                 ,'specials' : [\r
63                         'important'\r
64                 ]\r
65         }\r
66         ,'OPERATORS' :[\r
67                 ':', ';', '!', '.', '#'\r
68         ]\r
69         ,'DELIMITERS' :[\r
70                 '{', '}'\r
71         ]\r
72         ,'STYLES' : {\r
73                 'COMMENTS': 'color: #AAAAAA;'\r
74                 ,'QUOTESMARKS': 'color: #6381F8;'\r
75                 ,'KEYWORDS' : {\r
76                         'attributes' : 'color: #48BDDF;'\r
77                         ,'values' : 'color: #2B60FF;'\r
78                         ,'specials' : 'color: #FF0000;'\r
79                         }\r
80                 ,'OPERATORS' : 'color: #FF00FF;'\r
81                 ,'DELIMITERS' : 'color: #60CA00;'\r
82                                 \r
83         }\r
84 };\r