editarea-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE.txt +22 -0
- data/README.md +31 -0
- data/lib/editarea-rails.rb +8 -0
- data/lib/editarea-rails/version.rb +5 -0
- data/vendor/assets/images/autocompletion.gif +0 -0
- data/vendor/assets/images/close.gif +0 -0
- data/vendor/assets/images/fullscreen.gif +0 -0
- data/vendor/assets/images/go_to_line.gif +0 -0
- data/vendor/assets/images/help.gif +0 -0
- data/vendor/assets/images/highlight.gif +0 -0
- data/vendor/assets/images/load.gif +0 -0
- data/vendor/assets/images/move.gif +0 -0
- data/vendor/assets/images/newdocument.gif +0 -0
- data/vendor/assets/images/opacity.png +0 -0
- data/vendor/assets/images/plugins/charmap/charmap.gif +0 -0
- data/vendor/assets/images/plugins/test/css/test.css +3 -0
- data/vendor/assets/images/plugins/test/images/Thumbs.db +0 -0
- data/vendor/assets/images/plugins/test/images/test.gif +0 -0
- data/vendor/assets/images/plugins/test/langs/bg.js +10 -0
- data/vendor/assets/images/plugins/test/langs/cs.js +4 -0
- data/vendor/assets/images/plugins/test/langs/de.js +4 -0
- data/vendor/assets/images/plugins/test/langs/dk.js +4 -0
- data/vendor/assets/images/plugins/test/langs/en.js +4 -0
- data/vendor/assets/images/plugins/test/langs/eo.js +4 -0
- data/vendor/assets/images/plugins/test/langs/es.js +4 -0
- data/vendor/assets/images/plugins/test/langs/fr.js +4 -0
- data/vendor/assets/images/plugins/test/langs/hr.js +4 -0
- data/vendor/assets/images/plugins/test/langs/it.js +4 -0
- data/vendor/assets/images/plugins/test/langs/ja.js +4 -0
- data/vendor/assets/images/plugins/test/langs/mk.js +4 -0
- data/vendor/assets/images/plugins/test/langs/nl.js +4 -0
- data/vendor/assets/images/plugins/test/langs/pl.js +4 -0
- data/vendor/assets/images/plugins/test/langs/pt.js +4 -0
- data/vendor/assets/images/plugins/test/langs/ru.js +4 -0
- data/vendor/assets/images/plugins/test/langs/sk.js +4 -0
- data/vendor/assets/images/plugins/test/langs/zh.js +4 -0
- data/vendor/assets/images/plugins/test/test.js +110 -0
- data/vendor/assets/images/plugins/test/test2.js +1 -0
- data/vendor/assets/images/processing.gif +0 -0
- data/vendor/assets/images/redo.gif +0 -0
- data/vendor/assets/images/reset_highlight.gif +0 -0
- data/vendor/assets/images/save.gif +0 -0
- data/vendor/assets/images/search.gif +0 -0
- data/vendor/assets/images/smooth_selection.gif +0 -0
- data/vendor/assets/images/spacer.gif +0 -0
- data/vendor/assets/images/statusbar_resize.gif +0 -0
- data/vendor/assets/images/undo.gif +0 -0
- data/vendor/assets/images/word_wrap.gif +0 -0
- data/vendor/assets/javascripts/autocompletion.js +491 -0
- data/vendor/assets/javascripts/edit_area.js +527 -0
- data/vendor/assets/javascripts/edit_area_full.js +38 -0
- data/vendor/assets/javascripts/edit_area_functions.js +1202 -0
- data/vendor/assets/javascripts/edit_area_loader.js +1081 -0
- data/vendor/assets/javascripts/elements_functions.js +336 -0
- data/vendor/assets/javascripts/highlight.js +407 -0
- data/vendor/assets/javascripts/keyboard.js +145 -0
- data/vendor/assets/javascripts/langs/bg.js +54 -0
- data/vendor/assets/javascripts/langs/cs.js +48 -0
- data/vendor/assets/javascripts/langs/de.js +48 -0
- data/vendor/assets/javascripts/langs/dk.js +48 -0
- data/vendor/assets/javascripts/langs/en.js +48 -0
- data/vendor/assets/javascripts/langs/eo.js +48 -0
- data/vendor/assets/javascripts/langs/es.js +48 -0
- data/vendor/assets/javascripts/langs/fi.js +48 -0
- data/vendor/assets/javascripts/langs/fr.js +48 -0
- data/vendor/assets/javascripts/langs/hr.js +48 -0
- data/vendor/assets/javascripts/langs/it.js +48 -0
- data/vendor/assets/javascripts/langs/ja.js +48 -0
- data/vendor/assets/javascripts/langs/mk.js +48 -0
- data/vendor/assets/javascripts/langs/nl.js +48 -0
- data/vendor/assets/javascripts/langs/pl.js +48 -0
- data/vendor/assets/javascripts/langs/pt.js +48 -0
- data/vendor/assets/javascripts/langs/ru.js +48 -0
- data/vendor/assets/javascripts/langs/sk.js +48 -0
- data/vendor/assets/javascripts/langs/zh.js +48 -0
- data/vendor/assets/javascripts/manage_area.js +623 -0
- data/vendor/assets/javascripts/plugins/charmap/charmap.js +90 -0
- data/vendor/assets/javascripts/plugins/charmap/jscripts/map.js +373 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/bg.js +12 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/cs.js +6 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/de.js +6 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/dk.js +6 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/en.js +6 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/eo.js +6 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/es.js +6 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/fr.js +6 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/hr.js +6 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/it.js +6 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/ja.js +6 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/mk.js +6 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/nl.js +6 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/pl.js +6 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/pt.js +6 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/ru.js +6 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/sk.js +6 -0
- data/vendor/assets/javascripts/plugins/charmap/langs/zh.js +6 -0
- data/vendor/assets/javascripts/plugins/charmap/popup.html +24 -0
- data/vendor/assets/javascripts/plugins/test/langs/bg.js +10 -0
- data/vendor/assets/javascripts/plugins/test/langs/cs.js +4 -0
- data/vendor/assets/javascripts/plugins/test/langs/de.js +4 -0
- data/vendor/assets/javascripts/plugins/test/langs/dk.js +4 -0
- data/vendor/assets/javascripts/plugins/test/langs/en.js +4 -0
- data/vendor/assets/javascripts/plugins/test/langs/eo.js +4 -0
- data/vendor/assets/javascripts/plugins/test/langs/es.js +4 -0
- data/vendor/assets/javascripts/plugins/test/langs/fr.js +4 -0
- data/vendor/assets/javascripts/plugins/test/langs/hr.js +4 -0
- data/vendor/assets/javascripts/plugins/test/langs/it.js +4 -0
- data/vendor/assets/javascripts/plugins/test/langs/ja.js +4 -0
- data/vendor/assets/javascripts/plugins/test/langs/mk.js +4 -0
- data/vendor/assets/javascripts/plugins/test/langs/nl.js +4 -0
- data/vendor/assets/javascripts/plugins/test/langs/pl.js +4 -0
- data/vendor/assets/javascripts/plugins/test/langs/pt.js +4 -0
- data/vendor/assets/javascripts/plugins/test/langs/ru.js +4 -0
- data/vendor/assets/javascripts/plugins/test/langs/sk.js +4 -0
- data/vendor/assets/javascripts/plugins/test/langs/zh.js +4 -0
- data/vendor/assets/javascripts/plugins/test/test.js +110 -0
- data/vendor/assets/javascripts/plugins/test/test2.js +1 -0
- data/vendor/assets/javascripts/reg_syntax.js +166 -0
- data/vendor/assets/javascripts/reg_syntax/basic.js +70 -0
- data/vendor/assets/javascripts/reg_syntax/brainfuck.js +45 -0
- data/vendor/assets/javascripts/reg_syntax/c.js +63 -0
- data/vendor/assets/javascripts/reg_syntax/coldfusion.js +120 -0
- data/vendor/assets/javascripts/reg_syntax/cpp.js +66 -0
- data/vendor/assets/javascripts/reg_syntax/css.js +85 -0
- data/vendor/assets/javascripts/reg_syntax/html.js +51 -0
- data/vendor/assets/javascripts/reg_syntax/java.js +57 -0
- data/vendor/assets/javascripts/reg_syntax/js.js +94 -0
- data/vendor/assets/javascripts/reg_syntax/pas.js +83 -0
- data/vendor/assets/javascripts/reg_syntax/perl.js +88 -0
- data/vendor/assets/javascripts/reg_syntax/php.js +157 -0
- data/vendor/assets/javascripts/reg_syntax/python.js +145 -0
- data/vendor/assets/javascripts/reg_syntax/robotstxt.js +25 -0
- data/vendor/assets/javascripts/reg_syntax/ruby.js +68 -0
- data/vendor/assets/javascripts/reg_syntax/sql.js +56 -0
- data/vendor/assets/javascripts/reg_syntax/tsql.js +88 -0
- data/vendor/assets/javascripts/reg_syntax/vb.js +53 -0
- data/vendor/assets/javascripts/reg_syntax/xml.js +57 -0
- data/vendor/assets/javascripts/regexp.js +139 -0
- data/vendor/assets/javascripts/resize_area.js +73 -0
- data/vendor/assets/javascripts/search_replace.js +174 -0
- data/vendor/assets/stylesheets/edit_area.css +530 -0
- data/vendor/assets/stylesheets/plugins/charmap/css/charmap.css +64 -0
- data/vendor/assets/stylesheets/plugins/test/css/test.css +3 -0
- metadata +210 -0
@@ -0,0 +1,70 @@
|
|
1
|
+
editAreaLoader.load_syntax["basic"] = {
|
2
|
+
'DISPLAY_NAME' : 'Basic'
|
3
|
+
,'COMMENT_SINGLE' : {1 : "'", 2 : 'rem'}
|
4
|
+
,'COMMENT_MULTI' : { }
|
5
|
+
,'QUOTEMARKS' : {1: '"'}
|
6
|
+
,'KEYWORD_CASE_SENSITIVE' : false
|
7
|
+
,'KEYWORDS' : {
|
8
|
+
'statements' : [
|
9
|
+
'if','then','for','wend','while',
|
10
|
+
'else','elseif','select','case','end select',
|
11
|
+
'until','next','step','to','end if', 'call'
|
12
|
+
]
|
13
|
+
,'keywords' : [
|
14
|
+
'sub', 'end sub', 'function', 'end function', 'exit',
|
15
|
+
'exit function', 'dim', 'redim', 'shared', 'const',
|
16
|
+
'is', 'absolute', 'access', 'any', 'append', 'as',
|
17
|
+
'base', 'beep', 'binary', 'bload', 'bsave', 'chain',
|
18
|
+
'chdir', 'circle', 'clear', 'close', 'cls', 'color',
|
19
|
+
'com', 'common', 'data', 'date', 'declare', 'def',
|
20
|
+
'defdbl', 'defint', 'deflng', 'defsng', 'defstr',
|
21
|
+
'double', 'draw', 'environ', 'erase', 'error', 'field',
|
22
|
+
'files', 'fn', 'get', 'gosub', 'goto', 'integer', 'key',
|
23
|
+
'kill', 'let', 'line', 'list', 'locate', 'lock', 'long',
|
24
|
+
'lprint', 'lset', 'mkdir', 'name', 'off', 'on', 'open',
|
25
|
+
'option', 'out', 'output', 'paint', 'palette', 'pcopy',
|
26
|
+
'poke', 'preset', 'print', 'pset', 'put', 'random',
|
27
|
+
'randomize', 'read', 'reset', 'restore', 'resume',
|
28
|
+
'return', 'rmdir', 'rset', 'run', 'screen', 'seg',
|
29
|
+
'shell', 'single', 'sleep', 'sound', 'static', 'stop',
|
30
|
+
'strig', 'string', 'swap', 'system', 'time', 'timer',
|
31
|
+
'troff', 'tron', 'type', 'unlock', 'using', 'view',
|
32
|
+
'wait', 'width', 'window', 'write'
|
33
|
+
]
|
34
|
+
,'functions' : [
|
35
|
+
'abs', 'asc', 'atn', 'cdbl', 'chr', 'cint', 'clng',
|
36
|
+
'cos', 'csng', 'csrlin', 'cvd', 'cvdmbf', 'cvi', 'cvl',
|
37
|
+
'cvs', 'cvsmbf', 'eof', 'erdev', 'erl', 'err', 'exp',
|
38
|
+
'fileattr', 'fix', 'fre', 'freefile', 'hex', 'inkey',
|
39
|
+
'inp', 'input', 'instr', 'int', 'ioctl', 'lbound',
|
40
|
+
'lcase', 'left', 'len', 'loc', 'lof', 'log', 'lpos',
|
41
|
+
'ltrim', 'mid', 'mkd', 'mkdmbf', 'mki', 'mkl', 'mks',
|
42
|
+
'mksmbf', 'oct', 'peek', 'pen', 'play', 'pmap', 'point',
|
43
|
+
'pos', 'right', 'rnd', 'rtrim', 'seek', 'sgn', 'sin',
|
44
|
+
'space', 'spc', 'sqr', 'stick', 'str', 'tab', 'tan',
|
45
|
+
'ubound', 'ucase', 'val', 'varptr', 'varseg'
|
46
|
+
]
|
47
|
+
,'operators' : [
|
48
|
+
'and', 'eqv', 'imp', 'mod', 'not', 'or', 'xor'
|
49
|
+
]
|
50
|
+
}
|
51
|
+
,'OPERATORS' :[
|
52
|
+
'+', '-', '/', '*', '=', '<', '>', '!', '&'
|
53
|
+
]
|
54
|
+
,'DELIMITERS' :[
|
55
|
+
'(', ')', '[', ']', '{', '}'
|
56
|
+
]
|
57
|
+
,'STYLES' : {
|
58
|
+
'COMMENTS': 'color: #99CC00;'
|
59
|
+
,'QUOTESMARKS': 'color: #333399;'
|
60
|
+
,'KEYWORDS' : {
|
61
|
+
'keywords' : 'color: #3366FF;'
|
62
|
+
,'functions' : 'color: #0000FF;'
|
63
|
+
,'statements' : 'color: #3366FF;'
|
64
|
+
,'operators' : 'color: #FF0000;'
|
65
|
+
}
|
66
|
+
,'OPERATORS' : 'color: #FF0000;'
|
67
|
+
,'DELIMITERS' : 'color: #0000FF;'
|
68
|
+
|
69
|
+
}
|
70
|
+
};
|
@@ -0,0 +1,45 @@
|
|
1
|
+
editAreaLoader.load_syntax["brainfuck"] = {
|
2
|
+
'DISPLAY_NAME' : 'Brainfuck'
|
3
|
+
,'COMMENT_SINGLE' : {}
|
4
|
+
,'COMMENT_MULTI' : {}
|
5
|
+
,'QUOTEMARKS' : {}
|
6
|
+
,'KEYWORD_CASE_SENSITIVE' : true
|
7
|
+
,'OPERATORS' :[
|
8
|
+
'+', '-'
|
9
|
+
]
|
10
|
+
,'DELIMITERS' :[
|
11
|
+
'[', ']'
|
12
|
+
]
|
13
|
+
,'REGEXPS' : {
|
14
|
+
'bfispis' : {
|
15
|
+
'search' : '()(\\.)()'
|
16
|
+
,'class' : 'bfispis'
|
17
|
+
,'modifiers' : 'g'
|
18
|
+
,'execute' : 'before'
|
19
|
+
}
|
20
|
+
,'bfupis' : {
|
21
|
+
'search' : '()(\\,)()'
|
22
|
+
,'class' : 'bfupis'
|
23
|
+
,'modifiers' : 'g'
|
24
|
+
,'execute' : 'before'
|
25
|
+
}
|
26
|
+
,'bfmemory' : {
|
27
|
+
'search' : '()([<>])()'
|
28
|
+
,'class' : 'bfmemory'
|
29
|
+
,'modifiers' : 'g'
|
30
|
+
,'execute' : 'before'
|
31
|
+
}
|
32
|
+
}
|
33
|
+
,'STYLES' : {
|
34
|
+
'COMMENTS': 'color: #AAAAAA;'
|
35
|
+
,'QUOTESMARKS': 'color: #6381F8;'
|
36
|
+
,'OPERATORS' : 'color: #88AA00;'
|
37
|
+
,'DELIMITERS' : 'color: #00C138;'
|
38
|
+
,'REGEXPS' : {
|
39
|
+
'bfispis' : 'color: #EE0000;'
|
40
|
+
,'bfupis' : 'color: #4455ee;'
|
41
|
+
,'bfmemory' : 'color: #DD00DD;'
|
42
|
+
}
|
43
|
+
}
|
44
|
+
};
|
45
|
+
|
@@ -0,0 +1,63 @@
|
|
1
|
+
editAreaLoader.load_syntax["c"] = {
|
2
|
+
'DISPLAY_NAME' : 'C'
|
3
|
+
,'COMMENT_SINGLE' : {1 : '//'}
|
4
|
+
,'COMMENT_MULTI' : {'/*' : '*/'}
|
5
|
+
,'QUOTEMARKS' : {1: "'", 2: '"'}
|
6
|
+
,'KEYWORD_CASE_SENSITIVE' : true
|
7
|
+
,'KEYWORDS' : {
|
8
|
+
'constants' : [
|
9
|
+
'NULL', 'false', 'stdin', 'stdout', 'stderr', 'true'
|
10
|
+
]
|
11
|
+
,'types' : [
|
12
|
+
'FILE', 'auto', 'char', 'const', 'double',
|
13
|
+
'extern', 'float', 'inline', 'int', 'long', 'register',
|
14
|
+
'short', 'signed', 'size_t', 'static', 'struct',
|
15
|
+
'time_t', 'typedef', 'union', 'unsigned', 'void',
|
16
|
+
'volatile'
|
17
|
+
]
|
18
|
+
,'statements' : [
|
19
|
+
'do', 'else', 'enum', 'for', 'goto', 'if', 'sizeof',
|
20
|
+
'switch', 'while'
|
21
|
+
]
|
22
|
+
,'keywords' : [
|
23
|
+
'break', 'case', 'continue', 'default', 'delete',
|
24
|
+
'return'
|
25
|
+
]
|
26
|
+
}
|
27
|
+
,'OPERATORS' :[
|
28
|
+
'+', '-', '/', '*', '=', '<', '>', '%', '!', '?', ':', '&'
|
29
|
+
]
|
30
|
+
,'DELIMITERS' :[
|
31
|
+
'(', ')', '[', ']', '{', '}'
|
32
|
+
]
|
33
|
+
,'REGEXPS' : {
|
34
|
+
'precompiler' : {
|
35
|
+
'search' : '()(#[^\r\n]*)()'
|
36
|
+
,'class' : 'precompiler'
|
37
|
+
,'modifiers' : 'g'
|
38
|
+
,'execute' : 'before'
|
39
|
+
}
|
40
|
+
/* ,'precompilerstring' : {
|
41
|
+
'search' : '(#[\t ]*include[\t ]*)([^\r\n]*)([^\r\n]*[\r\n])'
|
42
|
+
,'class' : 'precompilerstring'
|
43
|
+
,'modifiers' : 'g'
|
44
|
+
,'execute' : 'before'
|
45
|
+
}*/
|
46
|
+
}
|
47
|
+
,'STYLES' : {
|
48
|
+
'COMMENTS': 'color: #AAAAAA;'
|
49
|
+
,'QUOTESMARKS': 'color: #6381F8;'
|
50
|
+
,'KEYWORDS' : {
|
51
|
+
'constants' : 'color: #EE0000;'
|
52
|
+
,'types' : 'color: #0000EE;'
|
53
|
+
,'statements' : 'color: #60CA00;'
|
54
|
+
,'keywords' : 'color: #48BDDF;'
|
55
|
+
}
|
56
|
+
,'OPERATORS' : 'color: #FF00FF;'
|
57
|
+
,'DELIMITERS' : 'color: #0038E1;'
|
58
|
+
,'REGEXPS' : {
|
59
|
+
'precompiler' : 'color: #009900;'
|
60
|
+
,'precompilerstring' : 'color: #994400;'
|
61
|
+
}
|
62
|
+
}
|
63
|
+
};
|
@@ -0,0 +1,120 @@
|
|
1
|
+
editAreaLoader.load_syntax["coldfusion"] = {
|
2
|
+
'DISPLAY_NAME' : 'Coldfusion'
|
3
|
+
,'COMMENT_SINGLE' : {1 : '//', 2 : '#'}
|
4
|
+
,'COMMENT_MULTI' : {'<!--' : '-->'}
|
5
|
+
,'COMMENT_MULTI2' : {'<!---' : '--->'}
|
6
|
+
,'QUOTEMARKS' : {1: "'", 2: '"'}
|
7
|
+
,'KEYWORD_CASE_SENSITIVE' : false
|
8
|
+
,'KEYWORDS' : {
|
9
|
+
'statements' : [
|
10
|
+
'include', 'require', 'include_once', 'require_once',
|
11
|
+
'for', 'foreach', 'as', 'if', 'elseif', 'else', 'while', 'do', 'endwhile',
|
12
|
+
'endif', 'switch', 'case', 'endswitch',
|
13
|
+
'return', 'break', 'continue'
|
14
|
+
]
|
15
|
+
,'reserved' : [
|
16
|
+
'AND', 'break', 'case', 'CONTAIN', 'CONTAINS', 'continue', 'default', 'do',
|
17
|
+
'DOES', 'else', 'EQ', 'EQUAL', 'EQUALTO', 'EQV', 'FALSE', 'for', 'GE',
|
18
|
+
'GREATER', 'GT', 'GTE', 'if', 'IMP', 'in', 'IS', 'LE', 'LESS', 'LT', 'LTE',
|
19
|
+
'MOD', 'NEQ', 'NOT', 'OR', 'return', 'switch', 'THAN', 'TO', 'TRUE', 'var',
|
20
|
+
'while', 'XOR'
|
21
|
+
]
|
22
|
+
,'functions' : [
|
23
|
+
'Abs', 'ACos', 'ArrayAppend', 'ArrayAvg', 'ArrayClear', 'ArrayDeleteAt', 'ArrayInsertAt',
|
24
|
+
'ArrayIsEmpty', 'ArrayLen', 'ArrayMax', 'ArrayMin', 'ArrayNew', 'ArrayPrepend', 'ArrayResize',
|
25
|
+
'ArraySet', 'ArraySort', 'ArraySum', 'ArraySwap', 'ArrayToList', 'Asc', 'ASin', 'Atn', 'AuthenticatedContext',
|
26
|
+
'AuthenticatedUser', 'BitAnd', 'BitMaskClear', 'BitMaskRead', 'BitMaskSet', 'BitNot', 'BitOr',
|
27
|
+
'BitSHLN', 'BitSHRN', 'BitXor', 'Ceiling', 'Chr', 'CJustify', 'Compare', 'CompareNoCase', 'Cos',
|
28
|
+
'CreateDate', 'CreateDateTime', 'CreateODBCDate', 'CreateODBCDateTime', 'CreateODBCTime',
|
29
|
+
'CreateTime', 'CreateTimeSpan', 'DateAdd', 'DateCompare', 'DateConvert', 'DateDiff',
|
30
|
+
'DateFormat', 'DatePart', 'Day', 'DayOfWeek', 'DayOfWeekAsString', 'DayOfYear', 'DaysInMonth',
|
31
|
+
'DaysInYear', 'DE', 'DecimalFormat', 'DecrementValue', 'Decrypt', 'DeleteClientVariable',
|
32
|
+
'DirectoryExists', 'DollarFormat', 'Duplicate', 'Encrypt', 'Evaluate', 'Exp', 'ExpandPath',
|
33
|
+
'FileExists', 'Find', 'FindNoCase', 'FindOneOf', 'FirstDayOfMonth', 'Fix', 'FormatBaseN',
|
34
|
+
'GetBaseTagData', 'GetBaseTagList', 'GetBaseTemplatePath', 'GetClientVariablesList',
|
35
|
+
'GetCurrentTemplatePath', 'GetDirectoryFromPath', 'GetException', 'GetFileFromPath',
|
36
|
+
'GetFunctionList', 'GetHttpTimeString', 'GetHttpRequestData', 'GetLocale', 'GetMetricData',
|
37
|
+
'GetProfileString', 'GetTempDirectory', 'GetTempFile', 'GetTemplatePath', 'GetTickCount',
|
38
|
+
'GetTimeZoneInfo', 'GetToken', 'Hash', 'Hour', 'HTMLCodeFormat', 'HTMLEditFormat', 'IIf',
|
39
|
+
'IncrementValue', 'InputBaseN', 'Insert', 'Int', 'IsArray', 'IsAuthenticated', 'IsAuthorized',
|
40
|
+
'IsBoolean', 'IsBinary', 'IsCustomFunction', 'IsDate', 'IsDebugMode', 'IsDefined', 'IsLeapYear',
|
41
|
+
'IsNumeric', 'IsNumericDate', 'IsProtected', 'IsQuery', 'IsSimpleValue', 'IsStruct', 'IsWDDX',
|
42
|
+
'JavaCast', 'JSStringFormat', 'LCase', 'Left', 'Len', 'ListAppend', 'ListChangeDelims',
|
43
|
+
'ListContains', 'ListContainsNoCase', 'ListDeleteAt', 'ListFind', 'ListFindNoCase', 'ListFirst',
|
44
|
+
'ListGetAt', 'ListInsertAt', 'ListLast', 'ListLen', 'ListPrepend', 'ListQualify', 'ListRest',
|
45
|
+
'ListSetAt', 'ListSort', 'ListToArray', 'ListValueCount', 'ListValueCountNoCase', 'LJustify',
|
46
|
+
'Log', 'Log10', 'LSCurrencyFormat', 'LSDateFormat', 'LSEuroCurrencyFormat', 'LSIsCurrency',
|
47
|
+
'LSIsDate', 'LSIsNumeric', 'LSNumberFormat', 'LSParseCurrency', 'LSParseDateTime', 'LSParseNumber',
|
48
|
+
'LSTimeFormat', 'LTrim', 'Max', 'Mid', 'Min', 'Minute', 'Month', 'MonthAsString', 'Now', 'NumberFormat',
|
49
|
+
'ParagraphFormat', 'ParameterExists', 'ParseDateTime', 'Pi', 'PreserveSingleQuotes', 'Quarter',
|
50
|
+
'QueryAddRow', 'QueryNew', 'QuerySetCell', 'QuotedValueList', 'Rand', 'Randomize', 'RandRange',
|
51
|
+
'REFind', 'REFindNoCase', 'RemoveChars', 'RepeatString', 'Replace', 'ReplaceList', 'ReplaceNoCase',
|
52
|
+
'REReplace', 'REReplaceNoCase', 'Reverse', 'Right', 'RJustify', 'Round', 'RTrim', 'Second', 'SetLocale',
|
53
|
+
'SetProfileString', 'SetVariable', 'Sgn', 'Sin', 'SpanExcluding', 'SpanIncluding', 'Sqr', 'StripCR',
|
54
|
+
'StructAppend', 'StructClear', 'StructCopy', 'StructCount', 'StructDelete', 'StructFind', 'StructFindKey',
|
55
|
+
'StructFindValue', 'StructGet', 'StructInsert', 'StructIsEmpty', 'StructKeyArray', 'StructKeyExists',
|
56
|
+
'StructKeyList', 'StructNew', 'StructSort', 'StructUpdate', 'Tan', 'TimeFormat', 'ToBase64', 'ToBinary',
|
57
|
+
'ToString', 'Trim', 'UCase', 'URLDecode', 'URLEncodedFormat', 'Val', 'ValueList', 'Week', 'WriteOutput',
|
58
|
+
'XMLFormat', 'Year', 'YesNoFormat'
|
59
|
+
]
|
60
|
+
}
|
61
|
+
,'OPERATORS' :[
|
62
|
+
'+', '-', '/', '*', '%', '!', '&&', '||'
|
63
|
+
]
|
64
|
+
,'DELIMITERS' :[
|
65
|
+
'(', ')', '[', ']', '{', '}'
|
66
|
+
]
|
67
|
+
,'REGEXPS' : {
|
68
|
+
'doctype' : {
|
69
|
+
'search' : '()(<!DOCTYPE[^>]*>)()'
|
70
|
+
,'class' : 'doctype'
|
71
|
+
,'modifiers' : ''
|
72
|
+
,'execute' : 'before' // before or after
|
73
|
+
}
|
74
|
+
,'cftags' : {
|
75
|
+
'search' : '(<)(/cf[a-z][^ \r\n\t>]*)([^>]*>)'
|
76
|
+
,'class' : 'cftags'
|
77
|
+
,'modifiers' : 'gi'
|
78
|
+
,'execute' : 'before' // before or after
|
79
|
+
}
|
80
|
+
,'cftags2' : {
|
81
|
+
'search' : '(<)(cf[a-z][^ \r\n\t>]*)([^>]*>)'
|
82
|
+
,'class' : 'cftags2'
|
83
|
+
,'modifiers' : 'gi'
|
84
|
+
,'execute' : 'before' // before or after
|
85
|
+
}
|
86
|
+
,'tags' : {
|
87
|
+
'search' : '(<)(/?[a-z][^ \r\n\t>]*)([^>]*>)'
|
88
|
+
,'class' : 'tags'
|
89
|
+
,'modifiers' : 'gi'
|
90
|
+
,'execute' : 'before' // before or after
|
91
|
+
}
|
92
|
+
,'attributes' : {
|
93
|
+
'search' : '( |\n|\r|\t)([^ \r\n\t=]+)(=)'
|
94
|
+
,'class' : 'attributes'
|
95
|
+
,'modifiers' : 'g'
|
96
|
+
,'execute' : 'before' // before or after
|
97
|
+
}
|
98
|
+
}
|
99
|
+
,'STYLES' : {
|
100
|
+
'COMMENTS': 'color: #AAAAAA;'
|
101
|
+
,'QUOTESMARKS': 'color: #6381F8;'
|
102
|
+
,'KEYWORDS' : {
|
103
|
+
'reserved' : 'color: #48BDDF;'
|
104
|
+
,'functions' : 'color: #0000FF;'
|
105
|
+
,'statements' : 'color: #60CA00;'
|
106
|
+
}
|
107
|
+
,'OPERATORS' : 'color: #E775F0;'
|
108
|
+
,'DELIMITERS' : ''
|
109
|
+
,'REGEXPS' : {
|
110
|
+
'attributes': 'color: #990033;'
|
111
|
+
,'cftags': 'color: #990033;'
|
112
|
+
,'cftags2': 'color: #990033;'
|
113
|
+
,'tags': 'color: #000099;'
|
114
|
+
,'doctype': 'color: #8DCFB5;'
|
115
|
+
,'test': 'color: #00FF00;'
|
116
|
+
}
|
117
|
+
}
|
118
|
+
};
|
119
|
+
|
120
|
+
|
@@ -0,0 +1,66 @@
|
|
1
|
+
editAreaLoader.load_syntax["cpp"] = {
|
2
|
+
'DISPLAY_NAME' : 'CPP'
|
3
|
+
,'COMMENT_SINGLE' : {1 : '//'}
|
4
|
+
,'COMMENT_MULTI' : {'/*' : '*/'}
|
5
|
+
,'QUOTEMARKS' : {1: "'", 2: '"'}
|
6
|
+
,'KEYWORD_CASE_SENSITIVE' : true
|
7
|
+
,'KEYWORDS' : {
|
8
|
+
'constants' : [
|
9
|
+
'NULL', 'false', 'std', 'stdin', 'stdout', 'stderr',
|
10
|
+
'true'
|
11
|
+
]
|
12
|
+
,'types' : [
|
13
|
+
'FILE', 'auto', 'char', 'class', 'const', 'double',
|
14
|
+
'extern', 'float', 'friend', 'inline', 'int',
|
15
|
+
'iterator', 'long', 'map', 'operator', 'queue',
|
16
|
+
'register', 'short', 'signed', 'size_t', 'stack',
|
17
|
+
'static', 'string', 'struct', 'time_t', 'typedef',
|
18
|
+
'union', 'unsigned', 'vector', 'void', 'volatile'
|
19
|
+
]
|
20
|
+
,'statements' : [
|
21
|
+
'catch', 'do', 'else', 'enum', 'for', 'goto', 'if',
|
22
|
+
'sizeof', 'switch', 'this', 'throw', 'try', 'while'
|
23
|
+
]
|
24
|
+
,'keywords' : [
|
25
|
+
'break', 'case', 'continue', 'default', 'delete',
|
26
|
+
'namespace', 'new', 'private', 'protected', 'public',
|
27
|
+
'return', 'using'
|
28
|
+
]
|
29
|
+
}
|
30
|
+
,'OPERATORS' :[
|
31
|
+
'+', '-', '/', '*', '=', '<', '>', '%', '!', '?', ':', '&'
|
32
|
+
]
|
33
|
+
,'DELIMITERS' :[
|
34
|
+
'(', ')', '[', ']', '{', '}'
|
35
|
+
]
|
36
|
+
,'REGEXPS' : {
|
37
|
+
'precompiler' : {
|
38
|
+
'search' : '()(#[^\r\n]*)()'
|
39
|
+
,'class' : 'precompiler'
|
40
|
+
,'modifiers' : 'g'
|
41
|
+
,'execute' : 'before'
|
42
|
+
}
|
43
|
+
/* ,'precompilerstring' : {
|
44
|
+
'search' : '(#[\t ]*include[\t ]*)([^\r\n]*)([^\r\n]*[\r\n])'
|
45
|
+
,'class' : 'precompilerstring'
|
46
|
+
,'modifiers' : 'g'
|
47
|
+
,'execute' : 'before'
|
48
|
+
}*/
|
49
|
+
}
|
50
|
+
,'STYLES' : {
|
51
|
+
'COMMENTS': 'color: #AAAAAA;'
|
52
|
+
,'QUOTESMARKS': 'color: #6381F8;'
|
53
|
+
,'KEYWORDS' : {
|
54
|
+
'constants' : 'color: #EE0000;'
|
55
|
+
,'types' : 'color: #0000EE;'
|
56
|
+
,'statements' : 'color: #60CA00;'
|
57
|
+
,'keywords' : 'color: #48BDDF;'
|
58
|
+
}
|
59
|
+
,'OPERATORS' : 'color: #FF00FF;'
|
60
|
+
,'DELIMITERS' : 'color: #0038E1;'
|
61
|
+
,'REGEXPS' : {
|
62
|
+
'precompiler' : 'color: #009900;'
|
63
|
+
,'precompilerstring' : 'color: #994400;'
|
64
|
+
}
|
65
|
+
}
|
66
|
+
};
|
@@ -0,0 +1,85 @@
|
|
1
|
+
editAreaLoader.load_syntax["css"] = {
|
2
|
+
'DISPLAY_NAME' : 'CSS'
|
3
|
+
,'COMMENT_SINGLE' : {1 : '@'}
|
4
|
+
,'COMMENT_MULTI' : {'/*' : '*/'}
|
5
|
+
,'QUOTEMARKS' : ['"', "'"]
|
6
|
+
,'KEYWORD_CASE_SENSITIVE' : false
|
7
|
+
,'KEYWORDS' : {
|
8
|
+
'attributes' : [
|
9
|
+
'aqua', 'azimuth', 'background-attachment', 'background-color',
|
10
|
+
'background-image', 'background-position', 'background-repeat',
|
11
|
+
'background', 'border-bottom-color', 'border-bottom-style',
|
12
|
+
'border-bottom-width', 'border-left-color', 'border-left-style',
|
13
|
+
'border-left-width', 'border-right', 'border-right-color',
|
14
|
+
'border-right-style', 'border-right-width', 'border-top-color',
|
15
|
+
'border-top-style', 'border-top-width','border-bottom', 'border-collapse',
|
16
|
+
'border-left', 'border-width', 'border-color', 'border-spacing',
|
17
|
+
'border-style', 'border-top', 'border', 'caption-side',
|
18
|
+
'clear', 'clip', 'color', 'content', 'counter-increment', 'counter-reset',
|
19
|
+
'cue-after', 'cue-before', 'cue', 'cursor', 'direction', 'display',
|
20
|
+
'elevation', 'empty-cells', 'float', 'font-family', 'font-size',
|
21
|
+
'font-size-adjust', 'font-stretch', 'font-style', 'font-variant',
|
22
|
+
'font-weight', 'font', 'height', 'letter-spacing', 'line-height',
|
23
|
+
'list-style', 'list-style-image', 'list-style-position', 'list-style-type',
|
24
|
+
'margin-bottom', 'margin-left', 'margin-right', 'margin-top', 'margin',
|
25
|
+
'marker-offset', 'marks', 'max-height', 'max-width', 'min-height',
|
26
|
+
'min-width', 'opacity', 'orphans', 'outline', 'outline-color', 'outline-style',
|
27
|
+
'outline-width', 'overflow', 'padding-bottom', 'padding-left',
|
28
|
+
'padding-right', 'padding-top', 'padding', 'page', 'page-break-after',
|
29
|
+
'page-break-before', 'page-break-inside', 'pause-after', 'pause-before',
|
30
|
+
'pause', 'pitch', 'pitch-range', 'play-during', 'position', 'quotes',
|
31
|
+
'richness', 'right', 'size', 'speak-header', 'speak-numeral', 'speak-punctuation',
|
32
|
+
'speak', 'speech-rate', 'stress', 'table-layout', 'text-align', 'text-decoration',
|
33
|
+
'text-indent', 'text-shadow', 'text-transform', 'top', 'unicode-bidi',
|
34
|
+
'vertical-align', 'visibility', 'voice-family', 'volume', 'white-space', 'widows',
|
35
|
+
'width', 'word-spacing', 'z-index', 'bottom', 'left'
|
36
|
+
]
|
37
|
+
,'values' : [
|
38
|
+
'above', 'absolute', 'always', 'armenian', 'aural', 'auto', 'avoid',
|
39
|
+
'baseline', 'behind', 'below', 'bidi-override', 'black', 'blue', 'blink', 'block', 'bold', 'bolder', 'both',
|
40
|
+
'capitalize', 'center-left', 'center-right', 'center', 'circle', 'cjk-ideographic',
|
41
|
+
'close-quote', 'collapse', 'condensed', 'continuous', 'crop', 'crosshair', 'cross', 'cursive',
|
42
|
+
'dashed', 'decimal-leading-zero', 'decimal', 'default', 'digits', 'disc', 'dotted', 'double',
|
43
|
+
'e-resize', 'embed', 'extra-condensed', 'extra-expanded', 'expanded',
|
44
|
+
'fantasy', 'far-left', 'far-right', 'faster', 'fast', 'fixed', 'fuchsia',
|
45
|
+
'georgian', 'gray', 'green', 'groove', 'hebrew', 'help', 'hidden', 'hide', 'higher',
|
46
|
+
'high', 'hiragana-iroha', 'hiragana', 'icon', 'inherit', 'inline-table', 'inline',
|
47
|
+
'inset', 'inside', 'invert', 'italic', 'justify', 'katakana-iroha', 'katakana',
|
48
|
+
'landscape', 'larger', 'large', 'left-side', 'leftwards', 'level', 'lighter', 'lime', 'line-through', 'list-item', 'loud', 'lower-alpha', 'lower-greek', 'lower-roman', 'lowercase', 'ltr', 'lower', 'low',
|
49
|
+
'maroon', 'medium', 'message-box', 'middle', 'mix', 'monospace',
|
50
|
+
'n-resize', 'narrower', 'navy', 'ne-resize', 'no-close-quote', 'no-open-quote', 'no-repeat', 'none', 'normal', 'nowrap', 'nw-resize',
|
51
|
+
'oblique', 'olive', 'once', 'open-quote', 'outset', 'outside', 'overline',
|
52
|
+
'pointer', 'portrait', 'purple', 'px',
|
53
|
+
'red', 'relative', 'repeat-x', 'repeat-y', 'repeat', 'rgb', 'ridge', 'right-side', 'rightwards',
|
54
|
+
'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',
|
55
|
+
'static', 'status-bar', 'super', 'sw-resize',
|
56
|
+
'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',
|
57
|
+
'ultra-condensed', 'ultra-expanded', 'underline', 'upper-alpha', 'upper-latin', 'upper-roman', 'uppercase', 'url',
|
58
|
+
'visible',
|
59
|
+
'w-resize', 'wait', 'white', 'wider',
|
60
|
+
'x-fast', 'x-high', 'x-large', 'x-loud', 'x-low', 'x-small', 'x-soft', 'xx-large', 'xx-small',
|
61
|
+
'yellow', 'yes'
|
62
|
+
]
|
63
|
+
,'specials' : [
|
64
|
+
'important'
|
65
|
+
]
|
66
|
+
}
|
67
|
+
,'OPERATORS' :[
|
68
|
+
':', ';', '!', '.', '#'
|
69
|
+
]
|
70
|
+
,'DELIMITERS' :[
|
71
|
+
'{', '}'
|
72
|
+
]
|
73
|
+
,'STYLES' : {
|
74
|
+
'COMMENTS': 'color: #AAAAAA;'
|
75
|
+
,'QUOTESMARKS': 'color: #6381F8;'
|
76
|
+
,'KEYWORDS' : {
|
77
|
+
'attributes' : 'color: #48BDDF;'
|
78
|
+
,'values' : 'color: #2B60FF;'
|
79
|
+
,'specials' : 'color: #FF0000;'
|
80
|
+
}
|
81
|
+
,'OPERATORS' : 'color: #FF00FF;'
|
82
|
+
,'DELIMITERS' : 'color: #60CA00;'
|
83
|
+
|
84
|
+
}
|
85
|
+
};
|