old_sql 1.16.0 → 1.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (273) hide show
  1. data/README.md +24 -13
  2. data/app/controllers/old_sql/report_controller.rb +3 -17
  3. data/app/views/layouts/old_sql/chart.html.erb +11 -0
  4. data/app/views/old_sql/report/chart.html.erb +8 -25
  5. data/lib/generators/old_sql/templates/user_design_template.csv +2 -3
  6. data/lib/generators/old_sql/templates/user_old_sql_demo_chart_design.yml +18 -9
  7. data/lib/old_sql/report_design/chart.rb +2 -2
  8. data/lib/old_sql/report_design/chart_item.rb +4 -4
  9. data/lib/old_sql/report_design/chart_parser.rb +2 -2
  10. data/public/javascripts/old_sql/chart.js +33 -0
  11. metadata +5 -265
  12. data/public/javascripts/old_sql/MochiKit-1.4.2/Changes +0 -362
  13. data/public/javascripts/old_sql/MochiKit-1.4.2/LICENSE.txt +0 -69
  14. data/public/javascripts/old_sql/MochiKit-1.4.2/MANIFEST +0 -179
  15. data/public/javascripts/old_sql/MochiKit-1.4.2/META.json +0 -17
  16. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Async.html +0 -814
  17. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Base.html +0 -1703
  18. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Color.html +0 -755
  19. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DOM.html +0 -1197
  20. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DateTime.html +0 -168
  21. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/DragAndDrop.html +0 -187
  22. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Format.html +0 -300
  23. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Iter.html +0 -524
  24. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Logging.html +0 -420
  25. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/LoggingPane.html +0 -142
  26. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Position.html +0 -38
  27. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Selector.html +0 -240
  28. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Signal.html +0 -508
  29. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Sortable.html +0 -244
  30. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Style.html +0 -385
  31. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/VersionHistory.html +0 -384
  32. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/Visual.html +0 -1161
  33. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/html/MochiKit/index.html +0 -447
  34. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/js/toc.js +0 -113
  35. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Async.rst +0 -767
  36. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Base.rst +0 -1445
  37. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Color.rst +0 -651
  38. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DOM.rst +0 -1143
  39. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DateTime.rst +0 -145
  40. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/DragAndDrop.rst +0 -197
  41. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Format.rst +0 -258
  42. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Iter.rst +0 -454
  43. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Logging.rst +0 -348
  44. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/LoggingPane.rst +0 -128
  45. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Position.rst +0 -26
  46. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Selector.rst +0 -203
  47. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Signal.rst +0 -498
  48. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Sortable.rst +0 -186
  49. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Style.rst +0 -353
  50. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/VersionHistory.rst +0 -362
  51. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/Visual.rst +0 -895
  52. data/public/javascripts/old_sql/MochiKit-1.4.2/doc/rst/MochiKit/index.rst +0 -83
  53. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.css +0 -69
  54. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/ajax_tables.js +0 -401
  55. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.json +0 -10
  56. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/domains.xml +0 -40
  57. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/ajax_tables/index.html +0 -96
  58. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.css +0 -4
  59. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/color_wheel.js +0 -95
  60. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/color_wheel/index.html +0 -31
  61. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dnd_sortable.css +0 -23
  62. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/dropmarker.png +0 -0
  63. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/icon.png +0 -0
  64. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/index.html +0 -54
  65. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable2_test.html +0 -150
  66. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable3_test.html +0 -42
  67. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable4_test.html +0 -90
  68. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable5_test.html +0 -29
  69. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_test.html +0 -38
  70. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/dnd_sortable/sortable_tree_test.html +0 -189
  71. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.css +0 -28
  72. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/draggable.js +0 -73
  73. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/draggable/index.html +0 -38
  74. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_bigslide.html +0 -36
  75. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blind.html +0 -65
  76. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_blindslide.html +0 -31
  77. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_combi.css +0 -18
  78. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_fadeappear.html +0 -61
  79. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_grow_shrink.html +0 -38
  80. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_onload.html +0 -67
  81. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue.html +0 -67
  82. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_queue_limit.html +0 -30
  83. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_scroll.html +0 -483
  84. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/effects_slide.html +0 -62
  85. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/full.html +0 -71
  86. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/icon.png +0 -0
  87. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/effects/index.html +0 -150
  88. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/index.html +0 -88
  89. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.css +0 -54
  90. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/interpreter/interpreter.js +0 -373
  91. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/index.html +0 -78
  92. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.css +0 -5
  93. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/key_events/key_events.js +0 -85
  94. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/index.html +0 -46
  95. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.css +0 -78
  96. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/logging_pane/logging_pane.js +0 -11
  97. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/index.html +0 -74
  98. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.css +0 -73
  99. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mochiregexp/mochiregexp.js +0 -125
  100. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/index.html +0 -88
  101. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.css +0 -17
  102. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/mouse_events/mouse_events.js +0 -59
  103. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/index.html +0 -28
  104. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.css +0 -3
  105. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/rounded_corners/rounded_corners.js +0 -19
  106. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_boxes.html +0 -45
  107. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_full.html +0 -119
  108. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_ghost.html +0 -40
  109. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_hoverclass.html +0 -43
  110. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_scroll.html +0 -91
  111. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/dnd_snap.html +0 -54
  112. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/index.html +0 -93
  113. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/simple_dnd/simple_dnd.css +0 -64
  114. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/index.html +0 -71
  115. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.css +0 -66
  116. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/sortable_tables/sortable_tables.js +0 -203
  117. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/SyntaxHighlighter.css +0 -177
  118. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/Tests.html +0 -339
  119. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushCSharp.js +0 -30
  120. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushDelphi.js +0 -31
  121. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushJScript.js +0 -22
  122. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPhp.js +0 -23
  123. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushPython.js +0 -71
  124. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushSql.js +0 -40
  125. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushVb.js +0 -29
  126. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shBrushXml.js +0 -61
  127. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/lib/SyntaxHighlighter/shCore.js +0 -622
  128. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.css +0 -1
  129. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.html +0 -19
  130. data/public/javascripts/old_sql/MochiKit-1.4.2/examples/view-source/view-source.js +0 -70
  131. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/bg_docheader.gif +0 -0
  132. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_bullet.gif +0 -0
  133. data/public/javascripts/old_sql/MochiKit-1.4.2/include/_img/g_logo_doc.gif +0 -0
  134. data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/documentation.css +0 -130
  135. data/public/javascripts/old_sql/MochiKit-1.4.2/include/css/general.css +0 -48
  136. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Async.js +0 -682
  137. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Base.js +0 -1489
  138. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Color.js +0 -863
  139. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DOM.js +0 -1256
  140. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DateTime.js +0 -222
  141. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/DragAndDrop.js +0 -793
  142. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Format.js +0 -304
  143. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Iter.js +0 -844
  144. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Logging.js +0 -315
  145. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/LoggingPane.js +0 -353
  146. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MochiKit.js +0 -188
  147. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/MockDOM.js +0 -115
  148. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Position.js +0 -236
  149. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Selector.js +0 -415
  150. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Signal.js +0 -897
  151. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Sortable.js +0 -589
  152. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Style.js +0 -594
  153. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Test.js +0 -162
  154. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/Visual.js +0 -2026
  155. data/public/javascripts/old_sql/MochiKit-1.4.2/lib/MochiKit/__package__.js +0 -18
  156. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/MochiKit.js +0 -7829
  157. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/__package__.js +0 -6
  158. data/public/javascripts/old_sql/MochiKit-1.4.2/packed/MochiKit/customize.html +0 -251
  159. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/FakeJSAN.js +0 -40
  160. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/SimpleTest.js +0 -381
  161. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/TestRunner.js +0 -159
  162. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/SimpleTest/test.css +0 -28
  163. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/cli.js +0 -6
  164. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/index.html +0 -25
  165. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/standalone.js +0 -16
  166. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Base.js +0 -577
  167. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Color.js +0 -137
  168. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DateTime.js +0 -52
  169. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_DragAndDrop.js +0 -30
  170. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Format.js +0 -89
  171. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Iter.js +0 -186
  172. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Logging.js +0 -88
  173. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.html +0 -408
  174. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Async.json +0 -1
  175. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Base.html +0 -34
  176. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Color.html +0 -84
  177. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM-Safari.html +0 -48
  178. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DOM.html +0 -363
  179. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DateTime.html +0 -39
  180. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-DragAndDrop.html +0 -54
  181. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Format.html +0 -39
  182. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Iter.html +0 -38
  183. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-JSAN.html +0 -32
  184. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Logging.html +0 -40
  185. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-MochiKit.html +0 -18
  186. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Selector.html +0 -295
  187. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Signal.html +0 -43
  188. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Style.html +0 -223
  189. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_MochiKit-Visual.html +0 -197
  190. data/public/javascripts/old_sql/MochiKit-1.4.2/tests/test_Signal.js +0 -481
  191. data/public/javascripts/old_sql/plotkit-0.9.1/COPYING +0 -28
  192. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Base.js +0 -406
  193. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Canvas.js +0 -683
  194. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/EasyPlot.js +0 -161
  195. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/Layout.js +0 -756
  196. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit.js +0 -151
  197. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/PlotKit_Packed.js +0 -2177
  198. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SVG.js +0 -705
  199. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetCanvas.js +0 -348
  200. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/SweetSVG.js +0 -247
  201. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/dummy.svg +0 -9
  202. data/public/javascripts/old_sql/plotkit-0.9.1/PlotKit/excanvas.js +0 -723
  203. data/public/javascripts/old_sql/plotkit-0.9.1/README +0 -1
  204. data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.html +0 -2
  205. data/public/javascripts/old_sql/plotkit-0.9.1/doc/MochiKitAdditions.txt +0 -2
  206. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.html +0 -302
  207. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Base.txt +0 -139
  208. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.html +0 -172
  209. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Canvas.txt +0 -81
  210. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.html +0 -155
  211. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.EasyPlot.txt +0 -50
  212. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.html +0 -428
  213. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Layout.txt +0 -330
  214. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.html +0 -368
  215. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.QuickStart.txt +0 -256
  216. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.html +0 -436
  217. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.Renderer.txt +0 -299
  218. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.html +0 -159
  219. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SVG.txt +0 -64
  220. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.html +0 -131
  221. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetCanvas.txt +0 -34
  222. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.html +0 -131
  223. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.SweetSVG.txt +0 -34
  224. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.html +0 -334
  225. data/public/javascripts/old_sql/plotkit-0.9.1/doc/PlotKit.txt +0 -151
  226. data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.html +0 -304
  227. data/public/javascripts/old_sql/plotkit-0.9.1/doc/SVGCanvasCompat.txt +0 -144
  228. data/public/javascripts/old_sql/plotkit-0.9.1/doc/barsample.png +0 -0
  229. data/public/javascripts/old_sql/plotkit-0.9.1/doc/black.png +0 -0
  230. data/public/javascripts/old_sql/plotkit-0.9.1/doc/blue.png +0 -0
  231. data/public/javascripts/old_sql/plotkit-0.9.1/doc/cyan.png +0 -0
  232. data/public/javascripts/old_sql/plotkit-0.9.1/doc/doc.css +0 -62
  233. data/public/javascripts/old_sql/plotkit-0.9.1/doc/generate.py +0 -37
  234. data/public/javascripts/old_sql/plotkit-0.9.1/doc/green.png +0 -0
  235. data/public/javascripts/old_sql/plotkit-0.9.1/doc/orange.png +0 -0
  236. data/public/javascripts/old_sql/plotkit-0.9.1/doc/piesample.png +0 -0
  237. data/public/javascripts/old_sql/plotkit-0.9.1/doc/purple.png +0 -0
  238. data/public/javascripts/old_sql/plotkit-0.9.1/doc/red.png +0 -0
  239. data/public/javascripts/old_sql/plotkit-0.9.1/scripts/custom_rhino.jar +0 -0
  240. data/public/javascripts/old_sql/plotkit-0.9.1/scripts/pack.py +0 -58
  241. data/public/javascripts/old_sql/plotkit-0.9.1/tests/axis.html +0 -31
  242. data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.html +0 -25
  243. data/public/javascripts/old_sql/plotkit-0.9.1/tests/basic.js +0 -143
  244. data/public/javascripts/old_sql/plotkit-0.9.1/tests/debug.html +0 -56
  245. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.html +0 -58
  246. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo-svg.js +0 -133
  247. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.html +0 -57
  248. data/public/javascripts/old_sql/plotkit-0.9.1/tests/demo.js +0 -136
  249. data/public/javascripts/old_sql/plotkit-0.9.1/tests/dynamic.html +0 -161
  250. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/firefox.png +0 -0
  251. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/konqueror.png +0 -0
  252. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/mozilla.ico +0 -0
  253. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/msie.gif +0 -0
  254. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/opera.ico +0 -0
  255. data/public/javascripts/old_sql/plotkit-0.9.1/tests/img/safari.gif +0 -0
  256. data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels-img.html +0 -38
  257. data/public/javascripts/old_sql/plotkit-0.9.1/tests/labels.html +0 -43
  258. data/public/javascripts/old_sql/plotkit-0.9.1/tests/prototype_compat.html +0 -28
  259. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-easy.html +0 -29
  260. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-horiz.html +0 -53
  261. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-neg.html +0 -29
  262. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart-svg.html +0 -61
  263. data/public/javascripts/old_sql/plotkit-0.9.1/tests/quickstart.html +0 -57
  264. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sample.txt +0 -6
  265. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.html +0 -29
  266. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg-sweet.js +0 -141
  267. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.html +0 -26
  268. data/public/javascripts/old_sql/plotkit-0.9.1/tests/svg.js +0 -147
  269. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.html +0 -24
  270. data/public/javascripts/old_sql/plotkit-0.9.1/tests/sweet.js +0 -89
  271. data/public/javascripts/old_sql/plotkit-0.9.1/tests/tests.css +0 -66
  272. data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.html +0 -20
  273. data/public/javascripts/old_sql/plotkit-0.9.1/tests/testsvg.js +0 -31
@@ -1,30 +0,0 @@
1
- dp.sh.Brushes.CSharp = function()
2
- {
3
- var keywords = 'abstract as base bool break byte case catch char checked class const ' +
4
- 'continue decimal default delegate do double else enum event explicit ' +
5
- 'extern false finally fixed float for foreach get goto if implicit in int ' +
6
- 'interface internal is lock long namespace new null object operator out ' +
7
- 'override params private protected public readonly ref return sbyte sealed set ' +
8
- 'short sizeof stackalloc static string struct switch this throw true try ' +
9
- 'typeof uint ulong unchecked unsafe ushort using virtual void while';
10
-
11
- this.regexList = [
12
- // There's a slight problem with matching single line comments and figuring out
13
- // a difference between // and ///. Using lookahead and lookbehind solves the
14
- // problem, unfortunately JavaScript doesn't support lookbehind. So I'm at a
15
- // loss how to translate that regular expression to JavaScript compatible one.
16
- // { regex: new RegExp('(?<!/)//(?!/).*$|(?<!/)////(?!/).*$|/\\*[^\\*]*(.)*?\\*/', 'gm'), css: 'comment' }, // one line comments starting with anything BUT '///' and multiline comments
17
- // { regex: new RegExp('(?<!/)///(?!/).*$', 'gm'), css: 'comments' }, // XML comments starting with ///
18
-
19
- { regex: new RegExp('//.*$', 'gm'), css: 'comment' }, // one line comments
20
- { regex: new RegExp('/\\*[\\s\\S]*?\\*/', 'g'), css: 'comment' }, // multiline comments
21
- { regex: new RegExp('"(?:\\.|[^\\""])*"', 'g'), css: 'string' }, // strings
22
- { regex: new RegExp('^\\s*#.*', 'gm'), css: 'preprocessor' }, // preprocessor tags like #region and #endregion
23
- { regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // c# keyword
24
- ];
25
-
26
- this.CssClass = 'dp-c';
27
- }
28
-
29
- dp.sh.Brushes.CSharp.prototype = new dp.sh.Highlighter();
30
- dp.sh.Brushes.CSharp.Aliases = ['c#', 'c-sharp', 'csharp'];
@@ -1,31 +0,0 @@
1
- /* Delphi brush is contributed by Eddie Shipman */
2
- dp.sh.Brushes.Delphi = function()
3
- {
4
- var keywords = 'abs addr and ansichar ansistring array as asm begin boolean byte cardinal ' +
5
- 'case char class comp const constructor currency destructor div do double ' +
6
- 'downto else end except exports extended false file finalization finally ' +
7
- 'for function goto if implementation in inherited int64 initialization ' +
8
- 'integer interface is label library longint longword mod nil not object ' +
9
- 'of on or packed pansichar pansistring pchar pcurrency pdatetime pextended ' +
10
- 'pint64 pointer private procedure program property pshortstring pstring ' +
11
- 'pvariant pwidechar pwidestring protected public published raise real real48 ' +
12
- 'record repeat set shl shortint shortstring shr single smallint string then ' +
13
- 'threadvar to true try type unit until uses val var varirnt while widechar ' +
14
- 'widestring with word write writeln xor';
15
-
16
- this.regexList = [
17
- { regex: new RegExp('\\(\\*[\\s\\S]*?\\*\\)', 'gm'), css: 'comment' }, // multiline comments (* *)
18
- { regex: new RegExp('{(?!\\$)[\\s\\S]*?}', 'gm'), css: 'comment' }, // multiline comments { }
19
- { regex: new RegExp('//.*$', 'gm'), css: 'comment' }, // one line
20
- { regex: new RegExp('\'(?:\\.|[^\\\'\'])*\'', 'g'), css: 'string' }, // strings
21
- { regex: new RegExp('\\{\\$[a-zA-Z]+ .+\\}', 'g'), css: 'directive' }, // Compiler Directives and Region tags
22
- { regex: new RegExp('\\b[\\d\\.]+\\b', 'g'), css: 'number' }, // numbers 12345
23
- { regex: new RegExp('\\$[a-zA-Z0-9]+\\b', 'g'), css: 'number' }, // numbers $F5D3
24
- { regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // keyword
25
- ];
26
-
27
- this.CssClass = 'dp-delphi';
28
- }
29
-
30
- dp.sh.Brushes.Delphi.prototype = new dp.sh.Highlighter();
31
- dp.sh.Brushes.Delphi.Aliases = ['delphi', 'pascal'];
@@ -1,22 +0,0 @@
1
- dp.sh.Brushes.JScript = function()
2
- {
3
- var keywords = 'abstract boolean break byte case catch char class const continue debugger ' +
4
- 'default delete do double else enum export extends false final finally float ' +
5
- 'for function goto if implements import in instanceof int interface long native ' +
6
- 'new null package private protected public return short static super switch ' +
7
- 'synchronized this throw throws transient true try typeof var void volatile while with';
8
-
9
- this.regexList = [
10
- { regex: new RegExp('//.*$', 'gm'), css: 'comment' }, // one line comments
11
- { regex: new RegExp('/\\*[\\s\\S]*?\\*/', 'g'), css: 'comment' }, // multiline comments
12
- { regex: new RegExp('"(?:[^"\n]|[\"])*?"', 'g'), css: 'string' }, // double quoted strings
13
- { regex: new RegExp("'(?:[^'\n]|[\'])*?'", 'g'), css: 'string' }, // single quoted strings
14
- { regex: new RegExp('^\\s*#.*', 'gm'), css: 'preprocessor' }, // preprocessor tags like #region and #endregion
15
- { regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // keywords
16
- ];
17
-
18
- this.CssClass = 'dp-c';
19
- }
20
-
21
- dp.sh.Brushes.JScript.prototype = new dp.sh.Highlighter();
22
- dp.sh.Brushes.JScript.Aliases = ['js', 'jscript', 'javascript'];
@@ -1,23 +0,0 @@
1
- dp.sh.Brushes.Php = function()
2
- {
3
- var keywords = 'and or xor __FILE__ __LINE__ array as break case ' +
4
- 'cfunction class const continue declare default die do echo else ' +
5
- 'elseif empty enddeclare endfor endforeach endif endswitch endwhile eval exit ' +
6
- 'extends for foreach function global if include include_once isset list ' +
7
- 'new old_function print require require_once return static switch unset use ' +
8
- 'var while __FUNCTION__ __CLASS__';
9
-
10
- this.regexList = [
11
- { regex: new RegExp('//.*$', 'gm'), css: 'comment' }, // one line comments
12
- { regex: new RegExp('/\\*[\\s\\S]*?\\*/', 'g'), css: 'comment' }, // multiline comments
13
- { regex: new RegExp('"(?:[^"\n]|[\"])*?"', 'g'), css: 'string' }, // double quoted strings
14
- { regex: new RegExp("'(?:[^'\n]|[\'])*?'", 'g'), css: 'string' }, // single quoted strings
15
- { regex: new RegExp('\\$\\w+', 'g'), css: 'vars' }, // variables
16
- { regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // keyword
17
- ];
18
-
19
- this.CssClass = 'dp-c';
20
- }
21
-
22
- dp.sh.Brushes.Php.prototype = new dp.sh.Highlighter();
23
- dp.sh.Brushes.Php.Aliases = ['php'];
@@ -1,71 +0,0 @@
1
- /* Python 2.3 syntax contributed by Gheorghe Milas */
2
- dp.sh.Brushes.Python = function()
3
- {
4
- var keywords = 'and assert break class continue def del elif else except exec ' +
5
- 'finally for from global if import in is lambda not or object pass print ' +
6
- 'raise return try yield while';
7
-
8
- var builtins = 'self __builtin__ __dict__ __future__ __methods__ __members__ __author__ __email__ __version__' +
9
- '__class__ __bases__ __import__ __main__ __name__ __doc__ __self__ __debug__ __slots__ ' +
10
- 'abs append apply basestring bool buffer callable chr classmethod clear close cmp coerce compile complex ' +
11
- 'conjugate copy count delattr dict dir divmod enumerate Ellipsis eval execfile extend False file fileno filter float flush ' +
12
- 'get getattr globals has_key hasarttr hash hex id index input insert int intern isatty isinstance isubclass ' +
13
- 'items iter keys len list locals long map max min mode oct open ord pop pow property range ' +
14
- 'raw_input read readline readlines reduce reload remove repr reverse round seek setattr slice sum ' +
15
- 'staticmethod str super tell True truncate tuple type unichr unicode update values write writelines xrange zip';
16
-
17
- var magicmethods = '__abs__ __add__ __and__ __call__ __cmp__ __coerce__ __complex__ __concat__ __contains__ __del__ __delattr__ __delitem__ ' +
18
- '__delslice__ __div__ __divmod__ __float__ __getattr__ __getitem__ __getslice__ __hash__ __hex__ __eq__ __le__ __lt__ __gt__ __ge__ ' +
19
- '__iadd__ __isub__ __imod__ __idiv__ __ipow__ __iand__ __ior__ __ixor__ __ilshift__ __irshift__ ' +
20
- '__invert__ __init__ __int__ __inv__ __iter__ __len__ __long__ __lshift__ __mod__ __mul__ __new__ __neg__ __nonzero__ __oct__ __or__ ' +
21
- '__pos__ __pow__ __radd__ __rand__ __rcmp__ __rdiv__ __rdivmod__ __repeat__ __repr__ __rlshift__ __rmod__ __rmul__ ' +
22
- '__ror__ __rpow__ __rrshift__ __rshift__ __rsub__ __rxor__ __setattr__ __setitem__ __setslice__ __str__ __sub__ __xor__';
23
-
24
- var exceptions = 'Exception StandardError ArithmeticError LookupError EnvironmentError AssertionError AttributeError EOFError ' +
25
- 'FutureWarning IndentationError OverflowWarning PendingDeprecationWarning ReferenceError RuntimeWarning ' +
26
- 'SyntaxWarning TabError UnicodeDecodeError UnicodeEncodeError UnicodeTranslateError UserWarning Warning ' +
27
- 'IOError ImportError IndexError KeyError KeyboardInterrupt MemoryError NameError NotImplementedError OSError ' +
28
- 'RuntimeError StopIteration SyntaxError SystemError SystemExit TypeError UnboundLocalError UnicodeError ValueError ' +
29
- 'FloatingPointError OverflowError WindowsError ZeroDivisionError';
30
-
31
- var types = 'NoneType TypeType IntType LongType FloatType ComplexType StringType UnicodeType BufferType TupleType ListType ' +
32
- 'DictType FunctionType LambdaType CodeType ClassType UnboundMethodType InstanceType MethodType BuiltinFunctionType BuiltinMethodType ' +
33
- 'ModuleType FileType XRangeType TracebackType FrameType SliceType EllipsisType';
34
-
35
- var commonlibs = 'anydbm array asynchat asyncore AST base64 binascii binhex bisect bsddb buildtools bz2 ' +
36
- 'BaseHTTPServer Bastion calendar cgi cmath cmd codecs codeop commands compiler copy copy_reg ' +
37
- 'cPickle crypt cStringIO csv curses Carbon CGIHTTPServer ConfigParser Cookie datetime dbhash ' +
38
- 'dbm difflib dircache distutils doctest DocXMLRPCServer email encodings errno exceptions fcntl ' +
39
- 'filecmp fileinput ftplib gc gdbm getopt getpass glob gopherlib gzip heapq htmlentitydefs ' +
40
- 'htmllib httplib HTMLParser imageop imaplib imgfile imghdr imp inspect itertools jpeg keyword ' +
41
- 'linecache locale logging mailbox mailcap marshal math md5 mhlib mimetools mimetypes mimify mmap ' +
42
- 'mpz multifile mutex MimeWriter netrc new nis nntplib nsremote operator optparse os parser pickle pipes ' +
43
- 'popen2 poplib posix posixfile pprint preferences profile pstats pwd pydoc pythonprefs quietconsole ' +
44
- 'quopri Queue random re readline resource rexec rfc822 rgbimg sched select sets sgmllib sha shelve shutil ' +
45
- 'signal site smtplib socket stat statcache string struct symbol sys syslog SimpleHTTPServer ' +
46
- 'SimpleXMLRPCServer SocketServer StringIO tabnanny tarfile telnetlib tempfile termios textwrap ' +
47
- 'thread threading time timeit token tokenize traceback tty types Tkinter unicodedata unittest ' +
48
- 'urllib urllib2 urlparse user UserDict UserList UserString warnings weakref webbrowser whichdb ' +
49
- 'xml xmllib xmlrpclib xreadlines zipfile zlib';
50
-
51
- this.regexList = [
52
- { regex: new RegExp('#.*$', 'gm'), css: 'comment' }, // comments
53
- { regex: new RegExp('^\\s*"""(.|\n)*?"""\\s*$', 'gm'), css: 'docstring' }, // documentation string "
54
- { regex: new RegExp('^\\s*\'\'\'(.|\n)*?\'\'\'\\s*$', 'gm'), css: 'docstring' }, // documentation string '
55
- { regex: new RegExp('"""(.|\n)*?"""', 'g'), css: 'string' }, // multi-line strings "
56
- { regex: new RegExp('\'\'\'(.|\n)*?\'\'\'', 'g'), css: 'string' }, // multi-line strings '
57
- { regex: new RegExp('"(?:\\.|[^\\""])*"', 'g'), css: 'string' }, // strings "
58
- { regex: new RegExp('\'(?:\\.|[^\\\'\'])*\'', 'g'), css: 'string' }, // strings '
59
- { regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' }, // keywords
60
- { regex: new RegExp(this.GetKeywords(builtins), 'gm'), css: 'builtins' }, // builtin objects, functions, methods, magic attributes
61
- { regex: new RegExp(this.GetKeywords(magicmethods), 'gm'), css: 'magicmethods' }, // special methods
62
- { regex: new RegExp(this.GetKeywords(exceptions), 'gm'), css: 'exceptions' }, // standard exception classes
63
- { regex: new RegExp(this.GetKeywords(types), 'gm'), css: 'types' }, // types from types.py
64
- { regex: new RegExp(this.GetKeywords(commonlibs), 'gm'), css: 'commonlibs' } // common standard library modules
65
- ];
66
-
67
- this.CssClass = 'dp-py';
68
- }
69
-
70
- dp.sh.Brushes.Python.prototype = new dp.sh.Highlighter();
71
- dp.sh.Brushes.Python.Aliases = ['py', 'python'];
@@ -1,40 +0,0 @@
1
- dp.sh.Brushes.Sql = function()
2
- {
3
- var funcs = 'abs avg case cast coalesce convert count current_timestamp ' +
4
- 'current_user day isnull left lower month nullif replace right ' +
5
- 'session_user space substring sum system_user upper user year';
6
-
7
- var keywords = 'absolute action add after alter as asc at authorization begin bigint ' +
8
- 'binary bit by cascade char character check checkpoint close collate ' +
9
- 'column commit committed connect connection constraint contains continue ' +
10
- 'create cube current current_date current_time cursor database date ' +
11
- 'deallocate dec decimal declare default delete desc distinct double drop ' +
12
- 'dynamic else end end-exec escape except exec execute false fetch first ' +
13
- 'float for force foreign forward free from full function global goto grant ' +
14
- 'group grouping having hour ignore index inner insensitive insert instead ' +
15
- 'int integer intersect into is isolation key last level load local max min ' +
16
- 'minute modify move name national nchar next no numeric of off on only ' +
17
- 'open option order out output partial password precision prepare primary ' +
18
- 'prior privileges procedure public read real references relative repeatable ' +
19
- 'restrict return returns revoke rollback rollup rows rule schema scroll ' +
20
- 'second section select sequence serializable set size smallint static ' +
21
- 'statistics table temp temporary then time timestamp to top transaction ' +
22
- 'translation trigger true truncate uncommitted union unique update values ' +
23
- 'varchar varying view when where with work';
24
-
25
- var operators = 'all and any between cross in join like not null or outer some';
26
-
27
- this.regexList = [
28
- { regex: new RegExp('--(.*)$', 'gm'), css: 'comment' }, // one line and multiline comments
29
- { regex: new RegExp('"(?:\\.|[^\\""])*"', 'g'), css: 'string' }, // strings
30
- { regex: new RegExp('\'(?:\\.|[^\\\'\'])*\'', 'g'), css: 'string' }, // strings
31
- { regex: new RegExp(this.GetKeywords(funcs), 'gmi'), css: 'func' }, // functions
32
- { regex: new RegExp(this.GetKeywords(operators), 'gmi'), css: 'op' }, // operators and such
33
- { regex: new RegExp(this.GetKeywords(keywords), 'gmi'), css: 'keyword' } // keyword
34
- ];
35
-
36
- this.CssClass = 'dp-sql';
37
- }
38
-
39
- dp.sh.Brushes.Sql.prototype = new dp.sh.Highlighter();
40
- dp.sh.Brushes.Sql.Aliases = ['sql'];
@@ -1,29 +0,0 @@
1
- dp.sh.Brushes.Vb = function()
2
- {
3
- var keywords = 'AddHandler AddressOf AndAlso Alias And Ansi As Assembly Auto ' +
4
- 'Boolean ByRef Byte ByVal Call Case Catch CBool CByte CChar CDate ' +
5
- 'CDec CDbl Char CInt Class CLng CObj Const CShort CSng CStr CType ' +
6
- 'Date Decimal Declare Default Delegate Dim DirectCast Do Double Each ' +
7
- 'Else ElseIf End Enum Erase Error Event Exit False Finally For Friend ' +
8
- 'Function Get GetType GoSub GoTo Handles If Implements Imports In ' +
9
- 'Inherits Integer Interface Is Let Lib Like Long Loop Me Mod Module ' +
10
- 'MustInherit MustOverride MyBase MyClass Namespace New Next Not Nothing ' +
11
- 'NotInheritable NotOverridable Object On Option Optional Or OrElse ' +
12
- 'Overloads Overridable Overrides ParamArray Preserve Private Property ' +
13
- 'Protected Public RaiseEvent ReadOnly ReDim REM RemoveHandler Resume ' +
14
- 'Return Select Set Shadows Shared Short Single Static Step Stop String ' +
15
- 'Structure Sub SyncLock Then Throw To True Try TypeOf Unicode Until ' +
16
- 'Variant When While With WithEvents WriteOnly Xor';
17
-
18
- this.regexList = [
19
- { regex: new RegExp('\'.*$', 'gm'), css: 'comment' }, // one line comments
20
- { regex: new RegExp('"(?:\\.|[^\\""])*"', 'g'), css: 'string' }, // strings
21
- { regex: new RegExp('^\\s*#.*', 'gm'), css: 'preprocessor' }, // preprocessor tags like #region and #endregion
22
- { regex: new RegExp(this.GetKeywords(keywords), 'gm'), css: 'keyword' } // c# keyword
23
- ];
24
-
25
- this.CssClass = 'dp-vb';
26
- }
27
-
28
- dp.sh.Brushes.Vb.prototype = new dp.sh.Highlighter();
29
- dp.sh.Brushes.Vb.Aliases = ['vb', 'vb.net'];
@@ -1,61 +0,0 @@
1
- dp.sh.Brushes.Xml = function()
2
- {
3
- this.CssClass = 'dp-xml';
4
- }
5
-
6
- dp.sh.Brushes.Xml.prototype = new dp.sh.Highlighter();
7
- dp.sh.Brushes.Xml.Aliases = ['xml', 'xhtml', 'xslt', 'html', 'xhtml'];
8
-
9
- dp.sh.Brushes.Xml.prototype.ProcessRegexList = function()
10
- {
11
- function push(array, value)
12
- {
13
- array[array.length] = value;
14
- }
15
-
16
- /* If only there was a way to get index of a group within a match, the whole XML
17
- could be matched with the expression looking something like that:
18
-
19
- (<!\[CDATA\[\s*.*\s*\]\]>)
20
- | (<!--\s*.*\s*?-->)
21
- | (<)*(\w+)*\s*(\w+)\s*=\s*(".*?"|'.*?'|\w+)(/*>)*
22
- | (</?)(.*?)(/?>)
23
- */
24
- var index = 0;
25
- var match = null;
26
- var regex = null;
27
-
28
- // Match CDATA in the following format <![ ... [ ... ]]>
29
- // <\!\[[\w\s]*?\[(.|\s)*?\]\]>
30
- this.GetMatches(new RegExp('<\\!\\[[\\w\\s]*?\\[(.|\\s)*?\\]\\]>', 'gm'), 'cdata');
31
-
32
- // Match comments
33
- // <!--\s*.*\s*?-->
34
- this.GetMatches(new RegExp('<!--\\s*.*\\s*?-->', 'gm'), 'comments');
35
-
36
- // Match attributes and their values
37
- // (\w+)\s*=\s*(".*?"|\'.*?\'|\w+)*
38
- regex = new RegExp('([\\w-\.]+)\\s*=\\s*(".*?"|\'.*?\'|\\w+)*', 'gm');
39
- while((match = regex.exec(this.code)) != null)
40
- {
41
- push(this.matches, new dp.sh.Match(match[1], match.index, 'attribute'));
42
-
43
- // if xml is invalid and attribute has no property value, ignore it
44
- if(match[2] != undefined)
45
- {
46
- push(this.matches, new dp.sh.Match(match[2], match.index + match[0].indexOf(match[2]), 'attribute-value'));
47
- }
48
- }
49
-
50
- // Match opening and closing tag brackets
51
- // </*\?*(?!\!)|/*\?*>
52
- this.GetMatches(new RegExp('</*\\?*(?!\\!)|/*\\?*>', 'gm'), 'tag');
53
-
54
- // Match tag names
55
- // </*\?*\s*(\w+)
56
- regex = new RegExp('</*\\?*\\s*([\\w-\.]+)', 'gm');
57
- while((match = regex.exec(this.code)) != null)
58
- {
59
- push(this.matches, new dp.sh.Match(match[1], match.index + match[0].indexOf(match[1]), 'tag-name'));
60
- }
61
- }
@@ -1,622 +0,0 @@
1
- /**
2
- * Code Syntax Highlighter.
3
- * Version 1.3.0
4
- * Copyright (C) 2004 Alex Gorbatchev.
5
- * http://www.dreamprojections.com/syntaxhighlighter/
6
- *
7
- * This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General
8
- * Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option)
9
- * any later version.
10
- *
11
- * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied
12
- * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
13
- * details.
14
- *
15
- * You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to
16
- * the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
- */
18
-
19
- //
20
- // create namespaces
21
- //
22
- var dp = {
23
- sh : // dp.sh
24
- {
25
- Utils : {}, // dp.sh.Utils
26
- Brushes : {}, // dp.sh.Brushes
27
- Strings : {},
28
- Version : '1.3.0'
29
- }
30
- };
31
-
32
- dp.sh.Strings = {
33
- AboutDialog : '<html><head><title>About...</title></head><body class="dp-about"><table cellspacing="0"><tr><td class="copy"><p class="title">dp.SyntaxHighlighter</div><div class="para">Version: {V}</p><p><a href="http://www.dreamprojections.com/syntaxhighlighter/?ref=about" target="_blank">http://www.dreamprojections.com/SyntaxHighlighter</a></p>&copy;2004-2005 Alex Gorbatchev. All right reserved.</td></tr><tr><td class="footer"><input type="button" class="close" value="OK" onClick="window.close()"/></td></tr></table></body></html>',
34
-
35
- // tools
36
- ExpandCode : '+ expand code',
37
- ViewPlain : 'view plain',
38
- Print : 'print',
39
- CopyToClipboard : 'copy to clipboard',
40
- About : '?',
41
-
42
- CopiedToClipboard : 'The code is in your clipboard now.'
43
- };
44
-
45
- dp.SyntaxHighlighter = dp.sh;
46
-
47
- //
48
- // Dialog and toolbar functions
49
- //
50
-
51
- dp.sh.Utils.Expand = function(sender)
52
- {
53
- var table = sender;
54
- var span = sender;
55
-
56
- // find the span in which the text label and pipe contained so we can hide it
57
- while(span != null && span.tagName.toUpperCase() != 'SPAN')
58
- span = span.parentNode;
59
-
60
- // find the table
61
- while(table != null && table.tagName.toUpperCase() != 'TABLE')
62
- table = table.parentNode;
63
-
64
- // remove the 'expand code' button
65
- span.parentNode.removeChild(span);
66
-
67
- table.tBodies[0].className = 'show';
68
- table.parentNode.style.height = '100%'; // containing div isn't getting updated properly when the TBODY is shown
69
- }
70
-
71
- // opens a new windows and puts the original unformatted source code inside.
72
- dp.sh.Utils.ViewSource = function(sender)
73
- {
74
- var code = sender.parentNode.originalCode;
75
- var wnd = window.open('', '_blank', 'width=750, height=400, location=0, resizable=1, menubar=0, scrollbars=1');
76
-
77
- code = code.replace(/</g, '&lt;');
78
-
79
- wnd.document.write('<pre>' + code + '</pre>');
80
- wnd.document.close();
81
- }
82
-
83
- // copies the original source code in to the clipboard (IE only)
84
- dp.sh.Utils.ToClipboard = function(sender)
85
- {
86
- var code = sender.parentNode.originalCode;
87
-
88
- // This works only for IE. There's a way to make it work with Mozilla as well,
89
- // but it requires security settings changed on the client, which isn't by
90
- // default, so 99% of users won't have it working anyways.
91
- if(window.clipboardData)
92
- {
93
- window.clipboardData.setData('text', code);
94
-
95
- alert(dp.sh.Strings.CopiedToClipboard);
96
- }
97
- }
98
-
99
- // creates an invisible iframe, puts the original source code inside and prints it
100
- dp.sh.Utils.PrintSource = function(sender)
101
- {
102
- var td = sender.parentNode;
103
- var code = td.processedCode;
104
- var iframe = document.createElement('IFRAME');
105
- var doc = null;
106
- var wnd =
107
-
108
- // this hides the iframe
109
- iframe.style.cssText = 'position:absolute; width:0px; height:0px; left:-5px; top:-5px;';
110
-
111
- td.appendChild(iframe);
112
-
113
- doc = iframe.contentWindow.document;
114
- code = code.replace(/</g, '&lt;');
115
-
116
- doc.open();
117
- doc.write('<pre>' + code + '</pre>');
118
- doc.close();
119
-
120
- iframe.contentWindow.focus();
121
- iframe.contentWindow.print();
122
-
123
- td.removeChild(iframe);
124
- }
125
-
126
- dp.sh.Utils.About = function()
127
- {
128
- var wnd = window.open('', '_blank', 'dialog,width=320,height=150,scrollbars=0');
129
- var doc = wnd.document;
130
-
131
- var styles = document.getElementsByTagName('style');
132
- var links = document.getElementsByTagName('link');
133
-
134
- doc.write(dp.sh.Strings.AboutDialog.replace('{V}', dp.sh.Version));
135
-
136
- // copy over ALL the styles from the parent page
137
- for(var i = 0; i < styles.length; i++)
138
- doc.write('<style>' + styles[i].innerHTML + '</style>');
139
-
140
- for(var i = 0; i < links.length; i++)
141
- if(links[i].rel.toLowerCase() == 'stylesheet')
142
- doc.write('<link type="text/css" rel="stylesheet" href="' + links[i].href + '"></link>');
143
-
144
- doc.close();
145
- wnd.focus();
146
- }
147
-
148
- //
149
- // Match object
150
- //
151
- dp.sh.Match = function(value, index, css)
152
- {
153
- this.value = value;
154
- this.index = index;
155
- this.length = value.length;
156
- this.css = css;
157
- }
158
-
159
- //
160
- // Highlighter object
161
- //
162
- dp.sh.Highlighter = function()
163
- {
164
- this.addGutter = true;
165
- this.addControls = true;
166
- this.collapse = false;
167
- this.tabsToSpaces = true;
168
- }
169
-
170
- // static callback for the match sorting
171
- dp.sh.Highlighter.SortCallback = function(m1, m2)
172
- {
173
- // sort matches by index first
174
- if(m1.index < m2.index)
175
- return -1;
176
- else if(m1.index > m2.index)
177
- return 1;
178
- else
179
- {
180
- // if index is the same, sort by length
181
- if(m1.length < m2.length)
182
- return -1;
183
- else if(m1.length > m2.length)
184
- return 1;
185
- }
186
- return 0;
187
- }
188
-
189
- // gets a list of all matches for a given regular expression
190
- dp.sh.Highlighter.prototype.GetMatches = function(regex, css)
191
- {
192
- var index = 0;
193
- var match = null;
194
-
195
- while((match = regex.exec(this.code)) != null)
196
- {
197
- this.matches[this.matches.length] = new dp.sh.Match(match[0], match.index, css);
198
- }
199
- }
200
-
201
- dp.sh.Highlighter.prototype.AddBit = function(str, css)
202
- {
203
- var span = document.createElement('span');
204
-
205
- str = str.replace(/&/g, '&amp;');
206
- str = str.replace(/ /g, '&nbsp;');
207
- str = str.replace(/</g, '&lt;');
208
- str = str.replace(/\n/gm, '&nbsp;<br>');
209
-
210
- // when adding a piece of code, check to see if it has line breaks in it
211
- // and if it does, wrap individual line breaks with span tags
212
- if(css != null)
213
- {
214
- var regex = new RegExp('<br>', 'gi');
215
-
216
- if(regex.test(str))
217
- {
218
- var lines = str.split('&nbsp;<br>');
219
-
220
- str = '';
221
-
222
- for(var i = 0; i < lines.length; i++)
223
- {
224
- span = document.createElement('SPAN');
225
- span.className = css;
226
- span.innerHTML = lines[i];
227
-
228
- this.div.appendChild(span);
229
-
230
- // don't add a <BR> for the last line
231
- if(i + 1 < lines.length)
232
- this.div.appendChild(document.createElement('BR'));
233
- }
234
- }
235
- else
236
- {
237
- span.className = css;
238
- span.innerHTML = str;
239
- this.div.appendChild(span);
240
- }
241
- }
242
- else
243
- {
244
- span.innerHTML = str;
245
- this.div.appendChild(span);
246
- }
247
- }
248
-
249
- // checks if one match is inside any other match
250
- dp.sh.Highlighter.prototype.IsInside = function(match)
251
- {
252
- if(match == null || match.length == 0)
253
- return;
254
-
255
- for(var i = 0; i < this.matches.length; i++)
256
- {
257
- var c = this.matches[i];
258
-
259
- if(c == null)
260
- continue;
261
-
262
- if((match.index > c.index) && (match.index <= c.index + c.length))
263
- return true;
264
- }
265
-
266
- return false;
267
- }
268
-
269
- dp.sh.Highlighter.prototype.ProcessRegexList = function()
270
- {
271
- for(var i = 0; i < this.regexList.length; i++)
272
- this.GetMatches(this.regexList[i].regex, this.regexList[i].css);
273
- }
274
-
275
- dp.sh.Highlighter.prototype.ProcessSmartTabs = function(code)
276
- {
277
- var lines = code.split('\n');
278
- var result = '';
279
- var tabSize = 4;
280
- var tab = '\t';
281
-
282
- // This function inserts specified amount of spaces in the string
283
- // where a tab is while removing that given tab.
284
- function InsertSpaces(line, pos, count)
285
- {
286
- var left = line.substr(0, pos);
287
- var right = line.substr(pos + 1, line.length); // pos + 1 will get rid of the tab
288
- var spaces = '';
289
-
290
- for(var i = 0; i < count; i++)
291
- spaces += ' ';
292
-
293
- return left + spaces + right;
294
- }
295
-
296
- // This function process one line for 'smart tabs'
297
- function ProcessLine(line, tabSize)
298
- {
299
- if(line.indexOf(tab) == -1)
300
- return line;
301
-
302
- var pos = 0;
303
-
304
- while((pos = line.indexOf(tab)) != -1)
305
- {
306
- // This is pretty much all there is to the 'smart tabs' logic.
307
- // Based on the position within the line and size of a tab,
308
- // calculate the amount of spaces we need to insert.
309
- var spaces = tabSize - pos % tabSize;
310
-
311
- line = InsertSpaces(line, pos, spaces);
312
- }
313
-
314
- return line;
315
- }
316
-
317
- // Go through all the lines and do the 'smart tabs' magic.
318
- for(var i = 0; i < lines.length; i++)
319
- result += ProcessLine(lines[i], tabSize) + '\n';
320
-
321
- return result;
322
- }
323
-
324
- dp.sh.Highlighter.prototype.SwitchToTable = function()
325
- {
326
- // thanks to Lachlan Donald from SitePoint.com for this <br/> tag fix.
327
- var html = this.div.innerHTML.replace(/<(br)\/?>/gi, '\n');
328
- var lines = html.split('\n');
329
- var row = null;
330
- var cell = null;
331
- var tBody = null;
332
- var html = '';
333
- var pipe = ' | ';
334
-
335
- // creates an anchor to a utility
336
- function UtilHref(util, text)
337
- {
338
- return '<a href="#" onclick="dp.sh.Utils.' + util + '(this); return false;">' + text + '</a>';
339
- }
340
-
341
- tBody = document.createElement('TBODY'); // can be created and all others go to tBodies collection.
342
-
343
- this.table.appendChild(tBody);
344
-
345
- if(this.addGutter == true)
346
- {
347
- row = tBody.insertRow(-1);
348
- cell = row.insertCell(-1);
349
- cell.className = 'tools-corner';
350
- }
351
-
352
- if(this.addControls == true)
353
- {
354
- var tHead = document.createElement('THEAD'); // controls will be placed in here
355
- this.table.appendChild(tHead);
356
-
357
- row = tHead.insertRow(-1);
358
-
359
- // add corner if there's a gutter
360
- if(this.addGutter == true)
361
- {
362
- cell = row.insertCell(-1);
363
- cell.className = 'tools-corner';
364
- }
365
-
366
- cell = row.insertCell(-1);
367
-
368
- // preserve some variables for the controls
369
- cell.originalCode = this.originalCode;
370
- cell.processedCode = this.code;
371
- cell.className = 'tools';
372
-
373
- if(this.collapse == true)
374
- {
375
- tBody.className = 'hide';
376
- cell.innerHTML += '<span><b>' + UtilHref('Expand', dp.sh.Strings.ExpandCode) + '</b>' + pipe + '</span>';
377
- }
378
-
379
- cell.innerHTML += UtilHref('ViewSource', dp.sh.Strings.ViewPlain) + pipe + UtilHref('PrintSource', dp.sh.Strings.Print);
380
-
381
- // IE has this clipboard object which is easy enough to use
382
- if(window.clipboardData)
383
- cell.innerHTML += pipe + UtilHref('ToClipboard', dp.sh.Strings.CopyToClipboard);
384
-
385
- cell.innerHTML += pipe + UtilHref('About', dp.sh.Strings.About);
386
- }
387
-
388
- for(var i = 0, lineIndex = this.firstLine; i < lines.length - 1; i++, lineIndex++)
389
- {
390
- row = tBody.insertRow(-1);
391
-
392
- if(this.addGutter == true)
393
- {
394
- cell = row.insertCell(-1);
395
- cell.className = 'gutter';
396
- cell.innerHTML = lineIndex;
397
- }
398
-
399
- cell = row.insertCell(-1);
400
- cell.className = 'line' + (i % 2 + 1); // uses .line1 and .line2 css styles for alternating lines
401
- cell.innerHTML = lines[i];
402
- }
403
-
404
- this.div.innerHTML = '';
405
- }
406
-
407
- dp.sh.Highlighter.prototype.Highlight = function(code)
408
- {
409
- function Trim(str)
410
- {
411
- return str.replace(/^\s*(.*?)[\s\n]*$/g, '$1');
412
- }
413
-
414
- function Chop(str)
415
- {
416
- return str.replace(/\n*$/, '').replace(/^\n*/, '');
417
- }
418
-
419
- function Unindent(str)
420
- {
421
- var lines = str.split('\n');
422
- var indents = new Array();
423
- var regex = new RegExp('^\\s*', 'g');
424
- var min = 1000;
425
-
426
- // go through every line and check for common number of indents
427
- for(var i = 0; i < lines.length && min > 0; i++)
428
- {
429
- if(Trim(lines[i]).length == 0)
430
- continue;
431
-
432
- var matches = regex.exec(lines[i]);
433
-
434
- if(matches != null && matches.length > 0)
435
- min = Math.min(matches[0].length, min);
436
- }
437
-
438
- // trim minimum common number of white space from the begining of every line
439
- if(min > 0)
440
- for(var i = 0; i < lines.length; i++)
441
- lines[i] = lines[i].substr(min);
442
-
443
- return lines.join('\n');
444
- }
445
-
446
- // This function returns a portions of the string from pos1 to pos2 inclusive
447
- function Copy(string, pos1, pos2)
448
- {
449
- return string.substr(pos1, pos2 - pos1);
450
- }
451
-
452
- var pos = 0;
453
-
454
- this.originalCode = code;
455
- this.code = Chop(Unindent(code));
456
- this.div = document.createElement('DIV');
457
- this.table = document.createElement('TABLE');
458
- this.matches = new Array();
459
-
460
- if(this.CssClass != null)
461
- this.table.className = this.CssClass;
462
-
463
- // replace tabs with spaces
464
- if(this.tabsToSpaces == true)
465
- this.code = this.ProcessSmartTabs(this.code);
466
-
467
- this.table.border = 0;
468
- this.table.cellSpacing = 0;
469
- this.table.cellPadding = 0;
470
-
471
- this.ProcessRegexList();
472
-
473
- // if no matches found, add entire code as plain text
474
- if(this.matches.length == 0)
475
- {
476
- this.AddBit(this.code, null);
477
- this.SwitchToTable();
478
- return;
479
- }
480
-
481
- // sort the matches
482
- this.matches = this.matches.sort(dp.sh.Highlighter.SortCallback);
483
-
484
- // The following loop checks to see if any of the matches are inside
485
- // of other matches. This process would get rid of highligting strings
486
- // inside comments, keywords inside strings and so on.
487
- for(var i = 0; i < this.matches.length; i++)
488
- if(this.IsInside(this.matches[i]))
489
- this.matches[i] = null;
490
-
491
- // Finally, go through the final list of matches and pull the all
492
- // together adding everything in between that isn't a match.
493
- for(var i = 0; i < this.matches.length; i++)
494
- {
495
- var match = this.matches[i];
496
-
497
- if(match == null || match.length == 0)
498
- continue;
499
-
500
- this.AddBit(Copy(this.code, pos, match.index), null);
501
- this.AddBit(match.value, match.css);
502
-
503
- pos = match.index + match.length;
504
- }
505
-
506
- this.AddBit(this.code.substr(pos), null);
507
-
508
- this.SwitchToTable();
509
- }
510
-
511
- dp.sh.Highlighter.prototype.GetKeywords = function(str)
512
- {
513
- return '\\b' + str.replace(/ /g, '\\b|\\b') + '\\b';
514
- }
515
-
516
- // highlightes all elements identified by name and gets source code from specified property
517
- dp.sh.HighlightAll = function(name, showGutter /* optional */, showControls /* optional */, collapseAll /* optional */, firstLine /* optional */)
518
- {
519
- function FindValue()
520
- {
521
- var a = arguments;
522
-
523
- for(var i = 0; i < a.length; i++)
524
- {
525
- if(a[i] == null)
526
- continue;
527
-
528
- if(typeof(a[i]) == 'string' && a[i] != '')
529
- return a[i] + '';
530
-
531
- if(typeof(a[i]) == 'object' && a[i].value != '')
532
- return a[i].value + '';
533
- }
534
-
535
- return null;
536
- }
537
-
538
- function IsOptionSet(value, list)
539
- {
540
- for(var i = 0; i < list.length; i++)
541
- if(list[i] == value)
542
- return true;
543
-
544
- return false;
545
- }
546
-
547
- function GetOptionValue(name, list, defaultValue)
548
- {
549
- var regex = new RegExp('^' + name + '\\[(\\w+)\\]$', 'gi');
550
- var matches = null;
551
-
552
- for(var i = 0; i < list.length; i++)
553
- if((matches = regex.exec(list[i])) != null)
554
- return matches[1];
555
-
556
- return defaultValue;
557
- }
558
-
559
- var elements = document.getElementsByName(name);
560
- var highlighter = null;
561
- var registered = new Object();
562
- var propertyName = 'value';
563
-
564
- // if no code blocks found, leave
565
- if(elements == null)
566
- return;
567
-
568
- // register all brushes
569
- for(var brush in dp.sh.Brushes)
570
- {
571
- var aliases = dp.sh.Brushes[brush].Aliases;
572
-
573
- if(aliases == null)
574
- continue;
575
-
576
- for(var i = 0; i < aliases.length; i++)
577
- registered[aliases[i]] = brush;
578
- }
579
-
580
- for(var i = 0; i < elements.length; i++)
581
- {
582
- var element = elements[i];
583
- var options = FindValue(
584
- element.attributes['class'], element.className,
585
- element.attributes['language'], element.language
586
- );
587
- var language = '';
588
-
589
- if(options == null)
590
- continue;
591
-
592
- options = options.split(':');
593
-
594
- language = options[0].toLowerCase();
595
-
596
- if(registered[language] == null)
597
- continue;
598
-
599
- // instantiate a brush
600
- highlighter = new dp.sh.Brushes[registered[language]]();
601
-
602
- // hide the original element
603
- element.style.display = 'none';
604
-
605
- highlighter.addGutter = (showGutter == null) ? !IsOptionSet('nogutter', options) : showGutter;
606
- highlighter.addControls = (showControls == null) ? !IsOptionSet('nocontrols', options) : showControls;
607
- highlighter.collapse = (collapseAll == null) ? IsOptionSet('collapse', options) : collapseAll;
608
-
609
- // first line idea comes from Andrew Collington, thanks!
610
- highlighter.firstLine = (firstLine == null) ? parseInt(GetOptionValue('firstline', options, 1)) : firstLine;
611
-
612
- highlighter.Highlight(element[propertyName]);
613
-
614
- // place the result table inside a div
615
- var div = document.createElement('DIV');
616
-
617
- div.className = 'dp-highlighter';
618
- div.appendChild(highlighter.table);
619
-
620
- element.parentNode.insertBefore(div, element);
621
- }
622
- }