Podświetlanie składni w edytorze XML dzięki editArea. Closes #17. Niestety dla tekstó...
[redakcja.git] / project / static / js / reg_syntax / css.js
diff --git a/project/static/js/reg_syntax/css.js b/project/static/js/reg_syntax/css.js
new file mode 100755 (executable)
index 0000000..8dded1b
--- /dev/null
@@ -0,0 +1,84 @@
+editAreaLoader.load_syntax["css"] = {\r
+       'COMMENT_SINGLE' : {1 : '@'}\r
+       ,'COMMENT_MULTI' : {'/*' : '*/'}\r
+       ,'QUOTEMARKS' : ['"', "'"]\r
+       ,'KEYWORD_CASE_SENSITIVE' : false\r
+       ,'KEYWORDS' : {\r
+               'attributes' : [\r
+                       'aqua', 'azimuth', 'background-attachment', 'background-color',\r
+                       'background-image', 'background-position', 'background-repeat',\r
+                       'background', 'border-bottom-color', 'border-bottom-style',\r
+                       'border-bottom-width', 'border-left-color', 'border-left-style',\r
+                       'border-left-width', 'border-right', 'border-right-color',\r
+                       'border-right-style', 'border-right-width', 'border-top-color',\r
+                       'border-top-style', 'border-top-width','border-bottom', 'border-collapse',\r
+                       'border-left', 'border-width', 'border-color', 'border-spacing',\r
+                       'border-style', 'border-top', 'border',  'caption-side',\r
+                       'clear', 'clip', 'color', 'content', 'counter-increment', 'counter-reset',\r
+                       'cue-after', 'cue-before', 'cue', 'cursor', 'direction', 'display',\r
+                       'elevation', 'empty-cells', 'float', 'font-family', 'font-size',\r
+                       'font-size-adjust', 'font-stretch', 'font-style', 'font-variant',\r
+                       'font-weight', 'font', 'height', 'letter-spacing', 'line-height',\r
+                       'list-style', 'list-style-image', 'list-style-position', 'list-style-type',\r
+                       'margin-bottom', 'margin-left', 'margin-right', 'margin-top', 'margin',\r
+                       'marker-offset', 'marks', 'max-height', 'max-width', 'min-height',\r
+                       'min-width', 'opacity', 'orphans', 'outline', 'outline-color', 'outline-style',\r
+                       'outline-width', 'overflow', 'padding-bottom', 'padding-left',\r
+                       'padding-right', 'padding-top', 'padding', 'page', 'page-break-after',\r
+                       'page-break-before', 'page-break-inside', 'pause-after', 'pause-before',\r
+                       'pause', 'pitch', 'pitch-range',  'play-during', 'position', 'quotes',\r
+                       'richness', 'right', 'size', 'speak-header', 'speak-numeral', 'speak-punctuation',\r
+                       'speak', 'speech-rate', 'stress', 'table-layout', 'text-align', 'text-decoration',\r
+                       'text-indent', 'text-shadow', 'text-transform', 'top', 'unicode-bidi',\r
+                       'vertical-align', 'visibility', 'voice-family', 'volume', 'white-space', 'widows',\r
+                       'width', 'word-spacing', 'z-index', 'bottom', 'left'\r
+               ]\r
+               ,'values' : [\r
+                       'above', 'absolute', 'always', 'armenian', 'aural', 'auto', 'avoid',\r
+                       'baseline', 'behind', 'below', 'bidi-override', 'black', 'blue', 'blink', 'block', 'bold', 'bolder', 'both',\r
+                       'capitalize', 'center-left', 'center-right', 'center', 'circle', 'cjk-ideographic', \r
+            'close-quote', 'collapse', 'condensed', 'continuous', 'crop', 'crosshair', 'cross', 'cursive',\r
+                       'dashed', 'decimal-leading-zero', 'decimal', 'default', 'digits', 'disc', 'dotted', 'double',\r
+                       'e-resize', 'embed', 'extra-condensed', 'extra-expanded', 'expanded',\r
+                       'fantasy', 'far-left', 'far-right', 'faster', 'fast', 'fixed', 'fuchsia',\r
+                       'georgian', 'gray', 'green', 'groove', 'hebrew', 'help', 'hidden', 'hide', 'higher',\r
+                       'high', 'hiragana-iroha', 'hiragana', 'icon', 'inherit', 'inline-table', 'inline',\r
+                       'inset', 'inside', 'invert', 'italic', 'justify', 'katakana-iroha', 'katakana',\r
+                       '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
+                       'maroon', 'medium', 'message-box', 'middle', 'mix', 'monospace',\r
+                       'n-resize', 'narrower', 'navy', 'ne-resize', 'no-close-quote', 'no-open-quote', 'no-repeat', 'none', 'normal', 'nowrap', 'nw-resize',\r
+                       'oblique', 'olive', 'once', 'open-quote', 'outset', 'outside', 'overline',\r
+                       'pointer', 'portrait', 'purple', 'px',\r
+                       'red', 'relative', 'repeat-x', 'repeat-y', 'repeat', 'rgb', 'ridge', 'right-side', 'rightwards',\r
+                       '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
+                       'static', 'status-bar', 'super', 'sw-resize',\r
+                       '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
+                       'ultra-condensed', 'ultra-expanded', 'underline', 'upper-alpha', 'upper-latin', 'upper-roman', 'uppercase', 'url',\r
+                       'visible',\r
+                       'w-resize', 'wait', 'white', 'wider',\r
+                       'x-fast', 'x-high', 'x-large', 'x-loud', 'x-low', 'x-small', 'x-soft', 'xx-large', 'xx-small',\r
+                       'yellow', 'yes'\r
+               ]\r
+               ,'specials' : [\r
+                       'important'\r
+               ]\r
+       }\r
+       ,'OPERATORS' :[\r
+               ':', ';', '!', '.', '#'\r
+       ]\r
+       ,'DELIMITERS' :[\r
+               '{', '}'\r
+       ]\r
+       ,'STYLES' : {\r
+               'COMMENTS': 'color: #AAAAAA;'\r
+               ,'QUOTESMARKS': 'color: #6381F8;'\r
+               ,'KEYWORDS' : {\r
+                       'attributes' : 'color: #48BDDF;'\r
+                       ,'values' : 'color: #2B60FF;'\r
+                       ,'specials' : 'color: #FF0000;'\r
+                       }\r
+               ,'OPERATORS' : 'color: #FF00FF;'\r
+               ,'DELIMITERS' : 'color: #60CA00;'\r
+                               \r
+       }\r
+};\r