w2tags 0.9.58 → 0.9.59

Sign up to get free protection for your applications and to get access to all the features.
Files changed (92) hide show
  1. data/Manifest.txt +80 -90
  2. data/hot/demo.hot +21 -7
  3. data/hot/html.hot +8 -0
  4. data/lib/w2tags/block/block_hot.rb +1 -1
  5. data/lib/w2tags/block/sass.rb +1 -1
  6. data/lib/{w2tags/try/public/css → /w2tags//try//public//css/}/csscolors.css +0 -0
  7. data/lib/{w2tags/try/public/css → /w2tags//try//public//css/}/jscolors.css +0 -0
  8. data/lib/{w2tags/try/public/css → /w2tags//try//public//css/}/rubycolors.css +5 -3
  9. data/lib/{w2tags/try/public/css → /w2tags//try//public//css/}/xmlcolors.css +0 -0
  10. data/lib/{w2tags/try/public/img → /w2tags//try//public//img/}/loading.gif +0 -0
  11. data/lib/{w2tags/try/public/javascripts → /w2tags//try//public//javascripts/}/jquery.cluetip.js +0 -0
  12. data/lib/{w2tags/try/public/javascripts → /w2tags//try//public//javascripts/}/jquery.js +0 -0
  13. data/lib/{w2tags/try/public/javascripts → /w2tags//try//public//javascripts/}/jquery.live.accordion.js +0 -0
  14. data/lib/{w2tags/try/public/js → /w2tags//try//public//js/}/codemirror.js +0 -0
  15. data/lib/{w2tags/try/public/js → /w2tags//try//public//js/}/editor.js +0 -0
  16. data/lib/{w2tags/try/public/js → /w2tags//try//public//js/}/highlight.js +0 -0
  17. data/lib/{w2tags/try/public/js → /w2tags//try//public//js/}/mirrorframe.js +0 -0
  18. data/lib/{w2tags/try/public/js → /w2tags//try//public//js/}/parsecss.js +0 -0
  19. data/lib/{w2tags/try/public/js → /w2tags//try//public//js/}/parsehtmlmixed.js +0 -0
  20. data/lib/{w2tags/try/public/js → /w2tags//try//public//js/}/parsejavascript.js +0 -0
  21. data/lib/{w2tags/try/public/js → /w2tags//try//public//js/}/parsew2tags.js +25 -9
  22. data/lib/{w2tags/try/public/js → /w2tags//try//public//js/}/parsexml.js +0 -0
  23. data/lib/{w2tags/try/public/js → /w2tags//try//public//js/}/select.js +0 -0
  24. data/lib/{w2tags/try/public/js → /w2tags//try//public//js/}/stringstream.js +0 -0
  25. data/lib/{w2tags/try/public/js → /w2tags//try//public//js/}/tokenize.js +0 -0
  26. data/lib/{w2tags/try/public/js → /w2tags//try//public//js/}/tokenizejavascript.js +0 -0
  27. data/lib/{w2tags/try/public/js → /w2tags//try//public//js/}/undo.js +0 -0
  28. data/lib/{w2tags/try/public/js → /w2tags//try//public//js/}/util.js +0 -0
  29. data/lib/{w2tags/try/public → /w2tags//try//public/}/skyeight.jpeg +0 -0
  30. data/lib/{w2tags/try/public/stylesheets/back → /w2tags//try//public//stylesheets//back/}/back_menu.gif +0 -0
  31. data/lib/{w2tags/try/public/stylesheets/icons → /w2tags//try//public//stylesheets//icons/}/folder-closed.gif +0 -0
  32. data/lib/{w2tags/try/public/stylesheets/icons → /w2tags//try//public//stylesheets//icons/}/folder-open.gif +0 -0
  33. data/lib/{w2tags/try/public/stylesheets/icons → /w2tags//try//public//stylesheets//icons/}/leaf.gif +0 -0
  34. data/lib/{w2tags/try/public/stylesheets → /w2tags//try//public//stylesheets/}/jquery.cluetip.css +0 -0
  35. data/lib/{w2tags/try/public/stylesheets → /w2tags//try//public//stylesheets/}/jquery.live.accordion.css +0 -0
  36. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/basic.w2erb +0 -0
  37. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/basic1.w2erb +0 -0
  38. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/basic2.w2erb +0 -0
  39. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/basic3.w2erb +0 -0
  40. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/basic4.w2erb +0 -0
  41. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/check_onhot.w2erb +0 -0
  42. data/lib//w2tags//try//public//w2//checkbox.w2erb +16 -0
  43. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/combo_onhot.w2erb +0 -0
  44. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/combobox.w2erb +0 -0
  45. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/demo.hot.html +0 -0
  46. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/diet.w2erb +0 -0
  47. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/diet1.w2erb +0 -0
  48. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/each.w2erb +0 -0
  49. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/each2.w2erb +0 -0
  50. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/erb_base.hot.html +0 -0
  51. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/erb_rails.hot.html +0 -0
  52. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/html.hot.html +0 -0
  53. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/if.w2erb +0 -0
  54. data/lib//w2tags//try//public//w2//input.w2erb +18 -0
  55. data/lib//w2tags//try//public//w2//input_inhot.w2erb +10 -0
  56. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/layout.w2erb +0 -0
  57. data/lib//w2tags//try//public//w2//layout1.w2erb +7 -0
  58. data/lib//w2tags//try//public//w2//layout2.w2erb +20 -0
  59. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/navigation.w2erb +0 -0
  60. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/nestli.w2erb +0 -0
  61. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/params.erb +0 -0
  62. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/params.w2erb +0 -0
  63. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/popup.w2erb +0 -0
  64. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/popup2.w2erb +0 -0
  65. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/rails.hot.html +0 -0
  66. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/table_each2.w2erb +0 -0
  67. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/table_onhot.w2erb +0 -0
  68. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/table_simple.w2erb +0 -0
  69. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/try.rb.hot.html +0 -0
  70. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/upload.w2erb +0 -0
  71. data/lib/{w2tags/try/public/w2 → /w2tags//try//public//w2/}/vcard.w2erb +0 -0
  72. data/lib/{w2tags/try → /w2tags//try/}/try.rb +0 -0
  73. data/lib/{w2tags/try/views → /w2tags//try//views/}/index.erb +22 -9
  74. data/lib/{w2tags/try/views → /w2tags//try//views/}/layout.erb +0 -0
  75. data/lib/{w2tags/try/views → /w2tags//try//views/}/parse.erb +0 -0
  76. data/tasks/setup.rb +1 -1
  77. metadata +72 -149
  78. data/hot/erb_form.hot +0 -42
  79. data/hot/erb_head.hot +0 -15
  80. data/hot/erb_jquery.hot +0 -8
  81. data/hot/erb_merb.hot +0 -12
  82. data/hot/erb_table.hot +0 -43
  83. data/hot/jquery.hot +0 -88
  84. data/hot/nvelocity.hot +0 -23
  85. data/hot/vm.hot +0 -9
  86. data/hot/vm2.hot +0 -34
  87. data/hot/vm_crud.hot +0 -34
  88. data/hot/vm_popup.hot +0 -74
  89. data/hot/xul.hot +0 -114
  90. data/lib/w2tags/try/public/w2/checkbox.w2erb +0 -22
  91. data/lib/w2tags/try/public/w2/layout1.w2erb +0 -20
  92. data/lib/w2tags/try/public/w2/layout2.w2erb +0 -17
data/Manifest.txt CHANGED
@@ -21,102 +21,92 @@ lib/w2tags/block/plain_text.rb
21
21
  lib/w2tags/block/remark.rb
22
22
  lib/w2tags/block/sass.rb
23
23
  lib/w2tags/try
24
- lib/w2tags/try/public
25
- lib/w2tags/try/try.rb
26
- lib/w2tags/try/views
27
- lib/w2tags/try/public/css
28
- lib/w2tags/try/public/img
29
- lib/w2tags/try/public/javascripts
30
- lib/w2tags/try/public/js
31
- lib/w2tags/try/public/skyeight.jpeg
32
- lib/w2tags/try/public/stylesheets
33
- lib/w2tags/try/public/w2
34
- lib/w2tags/try/public/css/csscolors.css
35
- lib/w2tags/try/public/css/jscolors.css
36
- lib/w2tags/try/public/css/rubycolors.css
37
- lib/w2tags/try/public/css/xmlcolors.css
38
- lib/w2tags/try/public/img/loading.gif
39
- lib/w2tags/try/public/javascripts/jquery.cluetip.js
40
- lib/w2tags/try/public/javascripts/jquery.js
41
- lib/w2tags/try/public/javascripts/jquery.live.accordion.js
42
- lib/w2tags/try/public/js/codemirror.js
43
- lib/w2tags/try/public/js/editor.js
44
- lib/w2tags/try/public/js/highlight.js
45
- lib/w2tags/try/public/js/mirrorframe.js
46
- lib/w2tags/try/public/js/parsecss.js
47
- lib/w2tags/try/public/js/parsehtmlmixed.js
48
- lib/w2tags/try/public/js/parsejavascript.js
49
- lib/w2tags/try/public/js/parsew2tags.js
50
- lib/w2tags/try/public/js/parsexml.js
51
- lib/w2tags/try/public/js/select.js
52
- lib/w2tags/try/public/js/stringstream.js
53
- lib/w2tags/try/public/js/tokenize.js
54
- lib/w2tags/try/public/js/tokenizejavascript.js
55
- lib/w2tags/try/public/js/undo.js
56
- lib/w2tags/try/public/js/util.js
57
- lib/w2tags/try/public/stylesheets/back
58
- lib/w2tags/try/public/stylesheets/icons
59
- lib/w2tags/try/public/stylesheets/jquery.cluetip.css
60
- lib/w2tags/try/public/stylesheets/jquery.live.accordion.css
61
- lib/w2tags/try/public/stylesheets/back/back_menu.gif
62
- lib/w2tags/try/public/stylesheets/icons/folder-closed.gif
63
- lib/w2tags/try/public/stylesheets/icons/folder-open.gif
64
- lib/w2tags/try/public/stylesheets/icons/leaf.gif
65
- lib/w2tags/try/public/w2/basic.w2erb
66
- lib/w2tags/try/public/w2/basic1.w2erb
67
- lib/w2tags/try/public/w2/basic2.w2erb
68
- lib/w2tags/try/public/w2/basic3.w2erb
69
- lib/w2tags/try/public/w2/basic4.w2erb
70
- lib/w2tags/try/public/w2/checkbox.w2erb
71
- lib/w2tags/try/public/w2/check_onhot.w2erb
72
- lib/w2tags/try/public/w2/combobox.w2erb
73
- lib/w2tags/try/public/w2/combo_onhot.w2erb
74
- lib/w2tags/try/public/w2/demo.hot.html
75
- lib/w2tags/try/public/w2/diet.w2erb
76
- lib/w2tags/try/public/w2/diet1.w2erb
77
- lib/w2tags/try/public/w2/each.w2erb
78
- lib/w2tags/try/public/w2/each2.w2erb
79
- lib/w2tags/try/public/w2/erb_base.hot.html
80
- lib/w2tags/try/public/w2/erb_rails.hot.html
81
- lib/w2tags/try/public/w2/html.hot.html
82
- lib/w2tags/try/public/w2/if.w2erb
83
- lib/w2tags/try/public/w2/layout.w2erb
84
- lib/w2tags/try/public/w2/layout1.w2erb
85
- lib/w2tags/try/public/w2/layout2.w2erb
86
- lib/w2tags/try/public/w2/navigation.w2erb
87
- lib/w2tags/try/public/w2/nestli.w2erb
88
- lib/w2tags/try/public/w2/params.erb
89
- lib/w2tags/try/public/w2/params.w2erb
90
- lib/w2tags/try/public/w2/popup.w2erb
91
- lib/w2tags/try/public/w2/popup2.w2erb
92
- lib/w2tags/try/public/w2/rails.hot.html
93
- lib/w2tags/try/public/w2/table_each2.w2erb
94
- lib/w2tags/try/public/w2/table_onhot.w2erb
95
- lib/w2tags/try/public/w2/table_simple.w2erb
96
- lib/w2tags/try/public/w2/try.rb.hot.html
97
- lib/w2tags/try/public/w2/upload.w2erb
98
- lib/w2tags/try/public/w2/vcard.w2erb
99
- lib/w2tags/try/views/index.erb
100
- lib/w2tags/try/views/layout.erb
101
- lib/w2tags/try/views/parse.erb
24
+ lib\w2tags\try\public
25
+ lib\w2tags\try\try.rb
26
+ lib\w2tags\try\views
27
+ lib\w2tags\try\public\css
28
+ lib\w2tags\try\public\img
29
+ lib\w2tags\try\public\javascripts
30
+ lib\w2tags\try\public\js
31
+ lib\w2tags\try\public\skyeight.jpeg
32
+ lib\w2tags\try\public\stylesheets
33
+ lib\w2tags\try\public\w2
34
+ lib\w2tags\try\public\css\csscolors.css
35
+ lib\w2tags\try\public\css\jscolors.css
36
+ lib\w2tags\try\public\css\rubycolors.css
37
+ lib\w2tags\try\public\css\xmlcolors.css
38
+ lib\w2tags\try\public\img\loading.gif
39
+ lib\w2tags\try\public\javascripts\jquery.cluetip.js
40
+ lib\w2tags\try\public\javascripts\jquery.js
41
+ lib\w2tags\try\public\javascripts\jquery.live.accordion.js
42
+ lib\w2tags\try\public\js\codemirror.js
43
+ lib\w2tags\try\public\js\editor.js
44
+ lib\w2tags\try\public\js\highlight.js
45
+ lib\w2tags\try\public\js\mirrorframe.js
46
+ lib\w2tags\try\public\js\parsecss.js
47
+ lib\w2tags\try\public\js\parsehtmlmixed.js
48
+ lib\w2tags\try\public\js\parsejavascript.js
49
+ lib\w2tags\try\public\js\parsew2tags.js
50
+ lib\w2tags\try\public\js\parsexml.js
51
+ lib\w2tags\try\public\js\select.js
52
+ lib\w2tags\try\public\js\stringstream.js
53
+ lib\w2tags\try\public\js\tokenize.js
54
+ lib\w2tags\try\public\js\tokenizejavascript.js
55
+ lib\w2tags\try\public\js\undo.js
56
+ lib\w2tags\try\public\js\util.js
57
+ lib\w2tags\try\public\stylesheets\back
58
+ lib\w2tags\try\public\stylesheets\icons
59
+ lib\w2tags\try\public\stylesheets\jquery.cluetip.css
60
+ lib\w2tags\try\public\stylesheets\jquery.live.accordion.css
61
+ lib\w2tags\try\public\stylesheets\back\back_menu.gif
62
+ lib\w2tags\try\public\stylesheets\icons\folder-closed.gif
63
+ lib\w2tags\try\public\stylesheets\icons\folder-open.gif
64
+ lib\w2tags\try\public\stylesheets\icons\leaf.gif
65
+ lib\w2tags\try\public\w2\basic.w2erb
66
+ lib\w2tags\try\public\w2\basic1.w2erb
67
+ lib\w2tags\try\public\w2\basic2.w2erb
68
+ lib\w2tags\try\public\w2\basic3.w2erb
69
+ lib\w2tags\try\public\w2\basic4.w2erb
70
+ lib\w2tags\try\public\w2\checkbox.w2erb
71
+ lib\w2tags\try\public\w2\check_onhot.w2erb
72
+ lib\w2tags\try\public\w2\combobox.w2erb
73
+ lib\w2tags\try\public\w2\combo_onhot.w2erb
74
+ lib\w2tags\try\public\w2\demo.hot.html
75
+ lib\w2tags\try\public\w2\diet.w2erb
76
+ lib\w2tags\try\public\w2\diet1.w2erb
77
+ lib\w2tags\try\public\w2\each.w2erb
78
+ lib\w2tags\try\public\w2\each2.w2erb
79
+ lib\w2tags\try\public\w2\erb_base.hot.html
80
+ lib\w2tags\try\public\w2\erb_rails.hot.html
81
+ lib\w2tags\try\public\w2\html.hot.html
82
+ lib\w2tags\try\public\w2\if.w2erb
83
+ lib\w2tags\try\public\w2\input.w2erb
84
+ lib\w2tags\try\public\w2\input_inhot.w2erb
85
+ lib\w2tags\try\public\w2\layout.w2erb
86
+ lib\w2tags\try\public\w2\layout1.w2erb
87
+ lib\w2tags\try\public\w2\layout2.w2erb
88
+ lib\w2tags\try\public\w2\navigation.w2erb
89
+ lib\w2tags\try\public\w2\nestli.w2erb
90
+ lib\w2tags\try\public\w2\params.erb
91
+ lib\w2tags\try\public\w2\params.w2erb
92
+ lib\w2tags\try\public\w2\popup.w2erb
93
+ lib\w2tags\try\public\w2\popup2.w2erb
94
+ lib\w2tags\try\public\w2\rails.hot.html
95
+ lib\w2tags\try\public\w2\table_each2.w2erb
96
+ lib\w2tags\try\public\w2\table_onhot.w2erb
97
+ lib\w2tags\try\public\w2\table_simple.w2erb
98
+ lib\w2tags\try\public\w2\try.rb.hot.html
99
+ lib\w2tags\try\public\w2\upload.w2erb
100
+ lib\w2tags\try\public\w2\vcard.w2erb
101
+ lib\w2tags\try\views\index.erb
102
+ lib\w2tags\try\views\layout.erb
103
+ lib\w2tags\try\views\parse.erb
102
104
  hot/demo.hot
103
105
  hot/erb.hot
104
106
  hot/erb_base.hot
105
- hot/erb_form.hot
106
- hot/erb_head.hot
107
- hot/erb_jquery.hot
108
- hot/erb_merb.hot
109
107
  hot/erb_rails.hot
110
- hot/erb_table.hot
111
108
  hot/html.hot
112
- hot/jquery.hot
113
- hot/nvelocity.hot
114
109
  hot/rails.hot
115
- hot/vm2.hot
116
- hot/vm.hot
117
- hot/vm_crud.hot
118
- hot/vm_popup.hot
119
- hot/xul.hot
120
110
  hot/rails/scaffold.hot
121
111
  hot/rails/sc_zebra.hot
122
112
  spec/spec_helper.rb
data/hot/demo.hot CHANGED
@@ -1,6 +1,6 @@
1
1
  >>_nav
2
- %ul$#
3
- -itm$. $*
2
+ %ul$#
3
+ -itm$. $*
4
4
 
5
5
  >>_itm
6
6
  %li$. <a href="#">$0</a>
@@ -20,11 +20,25 @@
20
20
  ^{value="=$1"}= $2
21
21
 
22
22
  >>_check
23
- %label{for="*#"}
24
- %input$#{type="checkbox"}
25
- $0
23
+ %input$#{type="checkbox"}
24
+ %label{for="*#"} $0
26
25
 
27
26
  >>_area
28
- %label{for="*#"} $0<
29
- %textarea$$
27
+ %label{for="*#"} $0
28
+ %textarea:*#$#$@
29
+
30
+ >>_input
31
+ %label{for="*#"} $0
32
+ :*#$#{type="text"}
33
+
34
+ >>_tarea_li
35
+ %li
36
+ -area$$ $0
37
+
38
+ >>_input_li
39
+ %li
40
+ -input$$ $0
30
41
 
42
+ >>_submit_li
43
+ %li$$
44
+ %button{type="submit"} $0
data/hot/html.hot CHANGED
@@ -67,3 +67,11 @@
67
67
 
68
68
  >>post
69
69
  %form$:$#.lelouch.*.{*@method="post"~action="$0"~}
70
+
71
+ >>_ie
72
+ <!--[if IE]>
73
+ --if_end
74
+
75
+ >>_ie_end
76
+ <</
77
+ <![endif]-->
@@ -9,7 +9,7 @@ module W2Tags
9
9
 
10
10
  def bhot_skip
11
11
  @rgx = nil
12
- if(/(^[\t ]*)(!H!) *(\w+)\n/ =~ @row;@rgx = $~)
12
+ if(/(^[\t ]*)(!H!) *(\w+) *\n/ =~ @row;@rgx = $~)
13
13
  @key_hot= $3.strip
14
14
  @doc_hot= [] #bhot buffer
15
15
  @bht = @spc.size
@@ -10,7 +10,7 @@ module W2Tags
10
10
 
11
11
  def sass_skip
12
12
  @rgx = nil
13
- if(/(^[\t ]*)(~~~)\n/ =~ @row;@rgx = $~)
13
+ if(/(^[\t ]*)(~~~) *\n/ =~ @row;@rgx = $~)
14
14
  @row = ''
15
15
  @sas = @spc.size
16
16
  @doc_sas = [[' '*@sas,"<style>\n"].join]
@@ -1,18 +1,20 @@
1
1
  .editbox {
2
- padding: .4em;
2
+ /*padding: .4em;
3
+ line-height: 1.1em;*/
4
+ line-height:1.02em;
3
5
  margin: 0;
4
6
  font-family: inconsolata, consolas, monospace;
5
7
  font-size: 12pt;
6
- line-height: 1.1em;
7
8
  color: black;
8
9
  background-color:#000000;
9
10
  color:#F8F8F8;
10
11
  }
11
12
 
12
13
  .editbox .rb-linenum {
14
+ line-height:1.02em;
13
15
  background-color:#EEEEEE;
14
16
  color:#888888;
15
- padding:0.1em 1em 0.2em 0;
17
+ /* padding:0.1em 1em 0.2em 0;*/
16
18
  width:75px;
17
19
  }
18
20
  .editbox .rb-pan {
@@ -14,10 +14,19 @@ var CSSParser = Editor.Parser = (function() {
14
14
  if (ch == "=") { source.nextWhileMatches(/\w/); return "rb-operator"; } else
15
15
  if (ch == "@") { source.nextWhileMatches(/\w/); return "rb-keyword"; } else
16
16
  if (ch == "$") { source.nextWhileMatches(/[\d*]/); return "rb-regexp"; } else
17
+ if (ch == "!" && source.equals("h")) { source.nextWhileMatches(/./); return "rb-regexp"; } else
17
18
  if (ch == "!" && source.equals("H")) { source.nextWhileMatches(/./); return "rb-regexp"; } else
18
19
  if (ch == "/" && source.equals("*")) {
19
20
  setState(inCComment);
20
21
  return null;
22
+ } /*
23
+ else if (ch == "@") {
24
+ source.nextWhileMatches(/\w/);
25
+ return "css-at";
26
+ }
27
+ else if (ch == "/" && source.equals("*")) {
28
+ setState(inCComment);
29
+ return null;
21
30
  }
22
31
  else if (ch == "<" && source.equals("!")) {
23
32
  setState(inSGMLComment);
@@ -29,15 +38,20 @@ var CSSParser = Editor.Parser = (function() {
29
38
  else if (source.equals("=") && (ch == "~" || ch == "|")) {
30
39
  source.next();
31
40
  return "css-compare";
32
- }
41
+ } */
33
42
  else if (ch == "\"" || ch == "'") {
34
43
  setState(inString(ch));
35
44
  return null;
36
- }
45
+ } /*
37
46
  else if (ch == "#") {
38
47
  source.nextWhileMatches(/\w/);
39
48
  return "css-hash";
40
49
  }
50
+ else if (ch == "!") {
51
+ source.nextWhileMatches(/[ \t]/);
52
+ source.nextWhileMatches(/\w/);
53
+ return "css-important";
54
+ } */
41
55
  else if (/\d/.test(ch)) {
42
56
  source.nextWhileMatches(/[\w.%]/);
43
57
  return "css-unit";
@@ -46,7 +60,7 @@ var CSSParser = Editor.Parser = (function() {
46
60
  return "css-select-op";
47
61
  }
48
62
  else if (/[;{}:\[\]]/.test(ch)) {
49
- return "rb-heredoc";
63
+ return "css-punctuation";
50
64
  }
51
65
  else {
52
66
  source.nextWhileMatches(/[\w\\\-_]/);
@@ -66,7 +80,7 @@ var CSSParser = Editor.Parser = (function() {
66
80
  }
67
81
  return "css-comment";
68
82
  }
69
-
83
+ /*
70
84
  function inSGMLComment(source, setState) {
71
85
  var dashes = 0;
72
86
  while (!source.endOfLine()) {
@@ -78,7 +92,7 @@ var CSSParser = Editor.Parser = (function() {
78
92
  dashes = (ch == "-") ? dashes + 1 : 0;
79
93
  }
80
94
  return "css-comment";
81
- }
95
+ }*/
82
96
 
83
97
  function inString(quote) {
84
98
  return function(source, setState) {
@@ -91,7 +105,7 @@ var CSSParser = Editor.Parser = (function() {
91
105
  }
92
106
  if (!escaped)
93
107
  setState(normal);
94
- return "rb-string";
108
+ return "css-string";
95
109
  };
96
110
  }
97
111
 
@@ -102,9 +116,11 @@ var CSSParser = Editor.Parser = (function() {
102
116
 
103
117
  function indentCSS(inBraces, inRule, base) {
104
118
  return function(nextChars) {
105
- if (!inBraces || /^\}/.test(nextChars)) return base;
106
- else if (inRule) return base + indentUnit * 2;
107
- else return base + indentUnit;
119
+ /*if (!inBraces || /^\}/.test(nextChars)) return base;
120
+ else
121
+ if (inRule) return base + indentUnit * 2;
122
+ else return base + indentUnit; */
123
+ return 0;
108
124
  };
109
125
  }
110
126
 
@@ -0,0 +1,16 @@
1
+ %fieldset
2
+ %legend Which of the following sports do you enjoy?
3
+ %input#football{type="checkbox"}
4
+ %label{for="football"} Football
5
+ %input#golf{type="checkbox"}
6
+ %label{for="golf"} Golf
7
+ %input#rugby{type="checkbox"}
8
+ %label{for="rugby"} Rugby
9
+ %input#tennis{type="checkbox"}
10
+ %label{for="tennis"} Tennis
11
+ %input#basketball{type="checkbox"}
12
+ %label{for="basketball"} Basketball
13
+ %input#boxing{type="checkbox"}
14
+ %label{for="boxing"} Boxing
15
+ %label{for="comments"} Comments
16
+ %textarea#comments{rows="7" cols="25"}
@@ -0,0 +1,18 @@
1
+ -#http://webdesignernotebook.com/examples/style-form.html
2
+ %form{action="/form"}
3
+ %p Send us your comments and feedback:
4
+ %ol
5
+ %li
6
+ %label{for="name"} Name
7
+ :name#name{type="text"}
8
+ %li
9
+ %label{for="email"} Email
10
+ :email#email{type="text"}
11
+ %li
12
+ %label{for="website"} Website
13
+ :website#website{type="text"}
14
+ %li
15
+ %label{for="message"} Message
16
+ %textarea:message#message
17
+ %li#send
18
+ %button{type="submit"} Send
@@ -0,0 +1,10 @@
1
+ -#http://webdesignernotebook.com/examples/style-form.html
2
+ !hot!demo
3
+ %form{action="/form"}
4
+ %p Send us your comments and feedback:
5
+ %ol
6
+ -input_li#name Name
7
+ -input_li#email Email
8
+ -input_li#website Website
9
+ -tarea_li#message Message
10
+ -submit_li#send Send
@@ -0,0 +1,7 @@
1
+ %xhtml 1.1
2
+ %head
3
+ %title Todo
4
+ %link{rel='stylesheet' href='/stylesheets/style.css' type = "text/css"}
5
+ %body
6
+ #banner My To Do List
7
+ = yield
@@ -0,0 +1,20 @@
1
+ %xhtml 1.1
2
+ %head
3
+ = stylesheet_link_tag "compiled/screen.css", :media => "screen, projection"
4
+ = stylesheet_link_tag "compiled/print.css", :media => "print"
5
+ -ie
6
+ = stylesheet_link_tag "compiled/ie.css", :media => "screen, projection"
7
+ %body
8
+ .container
9
+ #Header
10
+ = link_to "Wikicards", root_path
11
+ #Main
12
+ .content
13
+ -each2 flash;key,value
14
+ = content_tag 'p', h(value), :class => key.to_s
15
+ = yield
16
+ .navigation
17
+ navigation
18
+ #Footer
19
+ %hr
20
+ about blog
File without changes