w2tags 0.9.55 → 0.9.56
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest.txt +31 -0
- data/lib/w2tags/parser.rb +2 -5
- data/lib/w2tags/try/public/css/csscolors.css +47 -0
- data/lib/w2tags/try/public/css/jquery.cluetip.css +130 -0
- data/lib/w2tags/try/public/css/jscolors.css +55 -0
- data/lib/w2tags/try/public/css/rubycolors.css +82 -0
- data/lib/w2tags/try/public/css/xmlcolors.css +51 -0
- data/lib/w2tags/try/public/img/loading.gif +0 -0
- data/lib/w2tags/try/public/js/codemirror.js +308 -0
- data/lib/w2tags/try/public/js/editor.js +1340 -0
- data/lib/w2tags/try/public/js/highlight.js +68 -0
- data/lib/w2tags/try/public/js/jquery.cluetip.js +470 -0
- data/lib/w2tags/try/public/js/jquery.js +4376 -0
- data/lib/w2tags/try/public/js/mirrorframe.js +81 -0
- data/lib/w2tags/try/public/js/parsecss.js +155 -0
- data/lib/w2tags/try/public/js/parsehtmlmixed.js +74 -0
- data/lib/w2tags/try/public/js/parsejavascript.js +350 -0
- data/lib/w2tags/try/public/js/parsew2tags.js +157 -0
- data/lib/w2tags/try/public/js/parsexml.js +292 -0
- data/lib/w2tags/try/public/js/select.js +607 -0
- data/lib/w2tags/try/public/js/stringstream.js +140 -0
- data/lib/w2tags/try/public/js/tokenize.js +57 -0
- data/lib/w2tags/try/public/js/tokenizejavascript.js +175 -0
- data/lib/w2tags/try/public/js/undo.js +404 -0
- data/lib/w2tags/try/public/js/util.js +134 -0
- data/lib/w2tags/try/public/w2/basic.w2erb +8 -2
- data/lib/w2tags/try/public/w2/erb_base.hot.html +167 -0
- data/lib/w2tags/try/public/w2/erb_rails.hot.html +59 -0
- data/lib/w2tags/try/public/w2/html.hot.html +1 -0
- data/lib/w2tags/try/public/w2/rails.hot.html +37 -0
- data/lib/w2tags/try/public/w2/try.rb.hot.html +50 -0
- data/lib/w2tags/try/try.rb +3 -2
- data/lib/w2tags/try/views/index.erb +85 -15
- data/lib/w2tags/try/views/layout.erb +4 -5
- data/lib/w2tags/try/views/parse.erb +1 -0
- data/tasks/setup.rb +1 -1
- metadata +58 -2
data/Manifest.txt
CHANGED
@@ -24,9 +24,35 @@ lib/w2tags/try
|
|
24
24
|
lib/w2tags/try/public
|
25
25
|
lib/w2tags/try/try.rb
|
26
26
|
lib/w2tags/try/views
|
27
|
+
lib/w2tags/try/public/css
|
28
|
+
lib/w2tags/try/public/img
|
27
29
|
lib/w2tags/try/public/javascripts
|
30
|
+
lib/w2tags/try/public/js
|
28
31
|
lib/w2tags/try/public/w2
|
32
|
+
lib/w2tags/try/public/css/csscolors.css
|
33
|
+
lib/w2tags/try/public/css/jquery.cluetip.css
|
34
|
+
lib/w2tags/try/public/css/jscolors.css
|
35
|
+
lib/w2tags/try/public/css/rubycolors.css
|
36
|
+
lib/w2tags/try/public/css/xmlcolors.css
|
37
|
+
lib/w2tags/try/public/img/loading.gif
|
29
38
|
lib/w2tags/try/public/javascripts/jquery.js
|
39
|
+
lib/w2tags/try/public/js/codemirror.js
|
40
|
+
lib/w2tags/try/public/js/editor.js
|
41
|
+
lib/w2tags/try/public/js/highlight.js
|
42
|
+
lib/w2tags/try/public/js/jquery.cluetip.js
|
43
|
+
lib/w2tags/try/public/js/jquery.js
|
44
|
+
lib/w2tags/try/public/js/mirrorframe.js
|
45
|
+
lib/w2tags/try/public/js/parsecss.js
|
46
|
+
lib/w2tags/try/public/js/parsehtmlmixed.js
|
47
|
+
lib/w2tags/try/public/js/parsejavascript.js
|
48
|
+
lib/w2tags/try/public/js/parsew2tags.js
|
49
|
+
lib/w2tags/try/public/js/parsexml.js
|
50
|
+
lib/w2tags/try/public/js/select.js
|
51
|
+
lib/w2tags/try/public/js/stringstream.js
|
52
|
+
lib/w2tags/try/public/js/tokenize.js
|
53
|
+
lib/w2tags/try/public/js/tokenizejavascript.js
|
54
|
+
lib/w2tags/try/public/js/undo.js
|
55
|
+
lib/w2tags/try/public/js/util.js
|
30
56
|
lib/w2tags/try/public/w2/basic.w2erb
|
31
57
|
lib/w2tags/try/public/w2/basic1.w2erb
|
32
58
|
lib/w2tags/try/public/w2/basic2.w2erb
|
@@ -37,6 +63,8 @@ lib/w2tags/try/public/w2/diet.w2erb
|
|
37
63
|
lib/w2tags/try/public/w2/diet1.w2erb
|
38
64
|
lib/w2tags/try/public/w2/each.w2erb
|
39
65
|
lib/w2tags/try/public/w2/each2.w2erb
|
66
|
+
lib/w2tags/try/public/w2/erb_base.hot.html
|
67
|
+
lib/w2tags/try/public/w2/erb_rails.hot.html
|
40
68
|
lib/w2tags/try/public/w2/html.hot.html
|
41
69
|
lib/w2tags/try/public/w2/if.w2erb
|
42
70
|
lib/w2tags/try/public/w2/layout.w2erb
|
@@ -47,9 +75,12 @@ lib/w2tags/try/public/w2/params.erb
|
|
47
75
|
lib/w2tags/try/public/w2/params.w2erb
|
48
76
|
lib/w2tags/try/public/w2/popup.w2erb
|
49
77
|
lib/w2tags/try/public/w2/popup2.w2erb
|
78
|
+
lib/w2tags/try/public/w2/rails.hot.html
|
79
|
+
lib/w2tags/try/public/w2/try.rb.hot.html
|
50
80
|
lib/w2tags/try/public/w2/upload.w2erb
|
51
81
|
lib/w2tags/try/views/index.erb
|
52
82
|
lib/w2tags/try/views/layout.erb
|
83
|
+
lib/w2tags/try/views/parse.erb
|
53
84
|
hot/erb.hot
|
54
85
|
hot/erb_base.hot
|
55
86
|
hot/erb_form.hot
|
data/lib/w2tags/parser.rb
CHANGED
@@ -615,11 +615,11 @@ module W2Tags
|
|
615
615
|
#p keys
|
616
616
|
if @key.gsub!(/([&:#.=])([\/\t\w\-#.= ]*$)/,'')
|
617
617
|
keys = $1+$2
|
618
|
+
@mem_var['$$'] = keys.clone
|
618
619
|
if keys.gsub!(/^&([\/\w\-.]*)/,'')
|
619
620
|
if $1!=''
|
620
621
|
@mem_var['$&' ] = "&#{$1}"
|
621
622
|
@mem_var['*&' ] = $1
|
622
|
-
@mem_var['$$' ]<< "&#{$1}"
|
623
623
|
end
|
624
624
|
end
|
625
625
|
if keys.gsub!(/^:([\w\-.]*)/,'')
|
@@ -628,7 +628,6 @@ module W2Tags
|
|
628
628
|
@mem_var['*:' ] = $1
|
629
629
|
@mem_var['*name*' ] = "name=\"#{$1}\" "
|
630
630
|
@mem_var['*all*' ]<< "name=\"#{$1}\" "
|
631
|
-
@mem_var['$$' ]<< ":#{$1}"
|
632
631
|
end
|
633
632
|
end
|
634
633
|
if keys.gsub!(/^#([\w\-]*)/,'')
|
@@ -637,7 +636,6 @@ module W2Tags
|
|
637
636
|
@mem_var['*#' ] = $1
|
638
637
|
@mem_var['*id*' ] = "id=\"#{$1}\" "
|
639
638
|
@mem_var['*all*' ]<< "id=\"#{$1}\" "
|
640
|
-
@mem_var['$$' ]<< "##{$1}"
|
641
639
|
end
|
642
640
|
end
|
643
641
|
if keys.gsub!(/^\.([\w\-\.]*)/,'')
|
@@ -648,14 +646,13 @@ module W2Tags
|
|
648
646
|
@mem_var['*.' ] = cx
|
649
647
|
@mem_var['*class*'] = "class=\"#{cx}\" "
|
650
648
|
@mem_var['*all*' ]<< "class=\"#{cx}\" "
|
651
|
-
@mem_var['$$' ]<< ".#{cl}"
|
652
649
|
end
|
653
650
|
end
|
654
651
|
@key << keys
|
655
652
|
end
|
656
653
|
@mem_var['$$' ] << @mem_var['$@']
|
657
654
|
@mem_var['*all*'] << @mem_var['*@']
|
658
|
-
@mem_var['*att*']
|
655
|
+
@mem_var['*att*'] = @mem_var['*@']
|
659
656
|
if @key[0,1]!='='
|
660
657
|
if @key.gsub!(/==$/,'')
|
661
658
|
@mem_var['*code*'] = '<%= "$*" %>'
|
@@ -0,0 +1,47 @@
|
|
1
|
+
.editbox {
|
2
|
+
margin: .4em;
|
3
|
+
padding: 0;
|
4
|
+
font-family: monospace;
|
5
|
+
font-size: 10pt;
|
6
|
+
color: black;
|
7
|
+
}
|
8
|
+
|
9
|
+
pre.code, .editbox {
|
10
|
+
color: #666666;
|
11
|
+
}
|
12
|
+
|
13
|
+
.editbox p {
|
14
|
+
margin: 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
span.css-at {
|
18
|
+
color: #770088;
|
19
|
+
}
|
20
|
+
|
21
|
+
span.css-unit {
|
22
|
+
color: #228811;
|
23
|
+
}
|
24
|
+
|
25
|
+
span.css-value {
|
26
|
+
color: #770088;
|
27
|
+
}
|
28
|
+
|
29
|
+
span.css-identifier {
|
30
|
+
color: black;
|
31
|
+
}
|
32
|
+
|
33
|
+
span.css-important {
|
34
|
+
color: #0000FF;
|
35
|
+
}
|
36
|
+
|
37
|
+
span.css-colorcode {
|
38
|
+
color: #004499;
|
39
|
+
}
|
40
|
+
|
41
|
+
span.css-comment {
|
42
|
+
color: #AA7700;
|
43
|
+
}
|
44
|
+
|
45
|
+
span.css-string {
|
46
|
+
color: #AA2222;
|
47
|
+
}
|
@@ -0,0 +1,130 @@
|
|
1
|
+
/* global */
|
2
|
+
#cluetip-close img {
|
3
|
+
border: 0;
|
4
|
+
}
|
5
|
+
#cluetip-title #cluetip-close {
|
6
|
+
float: right;
|
7
|
+
position: relative;
|
8
|
+
}
|
9
|
+
#cluetip-waitimage {
|
10
|
+
width: 43px;
|
11
|
+
height: 11px;
|
12
|
+
position: absolute;
|
13
|
+
background-image: url(../images/ajax_wait/wait.gif);
|
14
|
+
}
|
15
|
+
/***************************************
|
16
|
+
=cluetipClass: 'default'
|
17
|
+
-------------------------------------- */
|
18
|
+
|
19
|
+
.cluetip-default {
|
20
|
+
background-color: #d9d9c2;
|
21
|
+
}
|
22
|
+
.cluetip-default #cluetip-outer {
|
23
|
+
position: relative;
|
24
|
+
margin: 0;
|
25
|
+
background-color: #d9d9c2;
|
26
|
+
}
|
27
|
+
.cluetip-default h3#cluetip-title {
|
28
|
+
margin: 0 0 5px;
|
29
|
+
padding: 8px 10px 4px;
|
30
|
+
font-size: 1.1em;
|
31
|
+
font-weight: normal;
|
32
|
+
background-color: #87876a;
|
33
|
+
color: #fff;
|
34
|
+
}
|
35
|
+
.cluetip-default #cluetip-title a {
|
36
|
+
color: #d9d9c2;
|
37
|
+
font-size: 0.95em;
|
38
|
+
}
|
39
|
+
.cluetip-default #cluetip-inner {
|
40
|
+
padding: 10px;
|
41
|
+
}
|
42
|
+
.cluetip-default div#cluetip-close {
|
43
|
+
text-align: right;
|
44
|
+
margin: 0 5px 5px;
|
45
|
+
color: #900;
|
46
|
+
}
|
47
|
+
|
48
|
+
/***************************************
|
49
|
+
=cluetipClass: 'jtip'
|
50
|
+
-------------------------------------- */
|
51
|
+
.cluetip-jtip {
|
52
|
+
background-color: #fff;
|
53
|
+
}
|
54
|
+
.clue-right-jtip {
|
55
|
+
background-image: url(arrowleft.gif);
|
56
|
+
background-repeat: no-repeat;
|
57
|
+
padding-left: 10px;
|
58
|
+
}
|
59
|
+
.clue-left-jtip {
|
60
|
+
background-image: url(arrowright.gif);
|
61
|
+
background-repeat: no-repeat;
|
62
|
+
padding-right: 10px;
|
63
|
+
}
|
64
|
+
|
65
|
+
.cluetip-jtip #cluetip-outer {
|
66
|
+
border: 2px solid #ccc;
|
67
|
+
position: relative;
|
68
|
+
background-color: #fff;
|
69
|
+
}
|
70
|
+
|
71
|
+
.cluetip-jtip h3#cluetip-title {
|
72
|
+
margin: 0 0 5px;
|
73
|
+
padding: 2px 5px;
|
74
|
+
font-size: 16px;
|
75
|
+
font-weight: normal;
|
76
|
+
background-color: #ccc;
|
77
|
+
color: #333;
|
78
|
+
}
|
79
|
+
|
80
|
+
.cluetip-jtip #cluetip-inner {
|
81
|
+
padding: 0 5px 5px;
|
82
|
+
display: inline-block;
|
83
|
+
}
|
84
|
+
.cluetip-jtip div#cluetip-close {
|
85
|
+
text-align: right;
|
86
|
+
margin: 0 5px 5px;
|
87
|
+
color: #900;
|
88
|
+
}
|
89
|
+
|
90
|
+
/***************************************
|
91
|
+
=cluetipClass: 'rounded'
|
92
|
+
-------------------------------------- */
|
93
|
+
|
94
|
+
.cluetip-rounded {
|
95
|
+
background: transparent url(bl.gif) no-repeat 0 100%;
|
96
|
+
margin-top: 10px;
|
97
|
+
}
|
98
|
+
|
99
|
+
.cluetip-rounded #cluetip-outer {
|
100
|
+
background: transparent url(tl.gif) no-repeat 0 0;
|
101
|
+
margin-top: -12px;
|
102
|
+
}
|
103
|
+
|
104
|
+
.cluetip-rounded #cluetip-title {
|
105
|
+
background: transparent url(tr.gif) no-repeat 100% 0;
|
106
|
+
padding: 12px 12px 0;
|
107
|
+
margin: 0 -12px 0 0;
|
108
|
+
position: relative;
|
109
|
+
}
|
110
|
+
.cluetip-rounded #cluetip-inner {
|
111
|
+
background: url(br.gif) no-repeat 100% 100%;
|
112
|
+
padding: 5px 12px 12px;
|
113
|
+
margin: 0 -12px 0 0;
|
114
|
+
position: relative;
|
115
|
+
}
|
116
|
+
|
117
|
+
.cluetip-rounded div#cluetip-close {
|
118
|
+
text-align: right;
|
119
|
+
margin: 0 5px 5px;
|
120
|
+
color: #009;
|
121
|
+
background: transparent;
|
122
|
+
}
|
123
|
+
.cluetip-rounded div#cluetip-close a {
|
124
|
+
color: #777;
|
125
|
+
}
|
126
|
+
/* stupid IE6 HasLayout hack */
|
127
|
+
.cluetip-rounded #cluetip-title,
|
128
|
+
.cluetip-rounded #cluetip-inner {
|
129
|
+
zoom: 1;
|
130
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
.editbox {
|
2
|
+
margin: .4em;
|
3
|
+
padding: 0;
|
4
|
+
font-family: monospace;
|
5
|
+
font-size: 10pt;
|
6
|
+
color: black;
|
7
|
+
}
|
8
|
+
|
9
|
+
pre.code, .editbox {
|
10
|
+
color: #666666;
|
11
|
+
}
|
12
|
+
|
13
|
+
.editbox p {
|
14
|
+
margin: 0;
|
15
|
+
}
|
16
|
+
|
17
|
+
span.js-punctuation {
|
18
|
+
color: #666666;
|
19
|
+
}
|
20
|
+
|
21
|
+
span.js-operator {
|
22
|
+
color: #666666;
|
23
|
+
}
|
24
|
+
|
25
|
+
span.js-keyword {
|
26
|
+
color: #770088;
|
27
|
+
}
|
28
|
+
|
29
|
+
span.js-atom {
|
30
|
+
color: #228811;
|
31
|
+
}
|
32
|
+
|
33
|
+
span.js-variable {
|
34
|
+
color: black;
|
35
|
+
}
|
36
|
+
|
37
|
+
span.js-variabledef {
|
38
|
+
color: #0000FF;
|
39
|
+
}
|
40
|
+
|
41
|
+
span.js-localvariable {
|
42
|
+
color: #004499;
|
43
|
+
}
|
44
|
+
|
45
|
+
span.js-property {
|
46
|
+
color: black;
|
47
|
+
}
|
48
|
+
|
49
|
+
span.js-comment {
|
50
|
+
color: #AA7700;
|
51
|
+
}
|
52
|
+
|
53
|
+
span.js-string {
|
54
|
+
color: #AA2222;
|
55
|
+
}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
.editbox {
|
2
|
+
padding: .4em;
|
3
|
+
margin: 0;
|
4
|
+
font-family: inconsolata, consolas, monospace;
|
5
|
+
font-size: 12pt;
|
6
|
+
line-height: 1.1em;
|
7
|
+
color: black;
|
8
|
+
background-color:#000000;
|
9
|
+
color:#F8F8F8;
|
10
|
+
}
|
11
|
+
|
12
|
+
.editbox .rb-linenum {
|
13
|
+
background-color:#EEEEEE;
|
14
|
+
color:#888888;
|
15
|
+
padding:0.1em 1em 0.2em 0;
|
16
|
+
width:75px;
|
17
|
+
}
|
18
|
+
.editbox .rb-pan {
|
19
|
+
padding-bottom:0.1em;
|
20
|
+
padding-top:0.2em;
|
21
|
+
}
|
22
|
+
|
23
|
+
.editbox .rb-comment, .editbox .rb-long-comment {
|
24
|
+
color:#AEAEAE;
|
25
|
+
font-style:italic;
|
26
|
+
}
|
27
|
+
|
28
|
+
.editbox .rb-method-parameter {
|
29
|
+
color:#8AA6C1;
|
30
|
+
}
|
31
|
+
|
32
|
+
.editbox .rb-variable, .editbox .rb-method-call {
|
33
|
+
color:#f0f0f0;
|
34
|
+
}
|
35
|
+
|
36
|
+
.editbox .rb-long-comment-whitespace {}
|
37
|
+
|
38
|
+
.editbox .rb-symbol, .editbox .rb-fixnum, .editbox .rb-ascii {
|
39
|
+
color:#6FB1FF;
|
40
|
+
}
|
41
|
+
.editbox .rb-hexnum, .editbox .rb-binary {
|
42
|
+
color:#DFC745;
|
43
|
+
}
|
44
|
+
.editbox .rb-float {
|
45
|
+
color:#7FDF61;
|
46
|
+
}
|
47
|
+
.editbox .rb-entity {
|
48
|
+
color:#89BDFF;
|
49
|
+
}
|
50
|
+
.editbox .rb-keyword, .editbox .rb-operator {
|
51
|
+
color:#CE864B;
|
52
|
+
}
|
53
|
+
.editbox .rb-storage {
|
54
|
+
color:#99CF50;
|
55
|
+
}
|
56
|
+
.editbox .rb-string, .editbox .rb-heredoc, .editbox .rb-exec {
|
57
|
+
color:#65B042;
|
58
|
+
}
|
59
|
+
.editbox .rb-class, .editbox .rb-constant {
|
60
|
+
color:#BB957D;
|
61
|
+
}
|
62
|
+
.editbox .rb-instance-var {
|
63
|
+
color:#61B2DF;
|
64
|
+
}
|
65
|
+
.editbox .rb-global-variable {
|
66
|
+
color:#61B2DF;
|
67
|
+
font-style:italic;
|
68
|
+
}
|
69
|
+
.editbox .rb-class-var {
|
70
|
+
color:#8BC9DF;
|
71
|
+
}
|
72
|
+
|
73
|
+
.editbox .rb-string .constant {
|
74
|
+
color:#DDF2A4;
|
75
|
+
}
|
76
|
+
|
77
|
+
.editbox .rb-regexp {
|
78
|
+
color:RED;
|
79
|
+
}
|
80
|
+
.editbox .rb-method {
|
81
|
+
color:#DAD085;
|
82
|
+
}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
.editbox {
|
2
|
+
margin: .4em;
|
3
|
+
padding: 0;
|
4
|
+
font-family: monospace;
|
5
|
+
font-size: 10pt;
|
6
|
+
color: black;
|
7
|
+
}
|
8
|
+
|
9
|
+
.editbox p {
|
10
|
+
margin: 0;
|
11
|
+
}
|
12
|
+
|
13
|
+
span.xml-tagname {
|
14
|
+
color: #A0B;
|
15
|
+
}
|
16
|
+
|
17
|
+
span.xml-attribute {
|
18
|
+
color: #281;
|
19
|
+
}
|
20
|
+
|
21
|
+
span.xml-punctuation {
|
22
|
+
color: black;
|
23
|
+
}
|
24
|
+
|
25
|
+
span.xml-attname {
|
26
|
+
color: #00F;
|
27
|
+
}
|
28
|
+
|
29
|
+
span.xml-comment {
|
30
|
+
color: #A70;
|
31
|
+
}
|
32
|
+
|
33
|
+
span.xml-cdata {
|
34
|
+
color: #48A;
|
35
|
+
}
|
36
|
+
|
37
|
+
span.xml-processing {
|
38
|
+
color: #999;
|
39
|
+
}
|
40
|
+
|
41
|
+
span.xml-entity {
|
42
|
+
color: #A22;
|
43
|
+
}
|
44
|
+
|
45
|
+
span.xml-error {
|
46
|
+
color: #F00;
|
47
|
+
}
|
48
|
+
|
49
|
+
span.xml-text {
|
50
|
+
color: black;
|
51
|
+
}
|