unageanu-jiji 1.1.4 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (233) hide show
  1. data/ChangeLog +24 -1
  2. data/README +0 -0
  3. data/base/shared_lib/moving_average.rb +34 -33
  4. data/base/shared_lib/system/cross.rb +76 -0
  5. data/base/shared_lib/system/position_manager.rb +160 -0
  6. data/base/shared_lib/system/signal.rb +347 -0
  7. data/html/css/datatable.css +4 -4
  8. data/html/css/default.css +57 -5
  9. data/html/css/treeview.css +205 -0
  10. data/html/img/bin_closed.png +0 -0
  11. data/html/img/bin_empty.png +0 -0
  12. data/html/img/button_add_small.gif +0 -0
  13. data/html/img/button_add_small_gray.gif +0 -0
  14. data/html/img/button_add_small_over.gif +0 -0
  15. data/html/img/button_mkcol.gif +0 -0
  16. data/html/img/button_mkcol_gray.gif +0 -0
  17. data/html/img/button_mkcol_over.gif +0 -0
  18. data/html/img/button_remove_small.gif +0 -0
  19. data/html/img/button_remove_small_gray.gif +0 -0
  20. data/html/img/button_remove_small_over.gif +0 -0
  21. data/html/img/button_rename.gif +0 -0
  22. data/html/img/button_rename_gray.gif +0 -0
  23. data/html/img/button_rename_over.gif +0 -0
  24. data/html/img/control_play.png +0 -0
  25. data/html/img/control_play_blue.png +0 -0
  26. data/html/img/folder.png +0 -0
  27. data/html/img/folder_brick.png +0 -0
  28. data/html/img/folder_user.png +0 -0
  29. data/html/{js/codepress/images → img}/line-numbers.png +0 -0
  30. data/html/img/page_white_ruby.png +0 -0
  31. data/html/img/sidebar_agent_edit.png +0 -0
  32. data/html/img/sidebar_agent_edit_over.png +0 -0
  33. data/html/img/sidebar_agent_edit_s.png +0 -0
  34. data/html/img/yui/treeview-sprite.gif +0 -0
  35. data/html/index.html +34 -18
  36. data/html/js/agent-editor/agent-editor-page.js +324 -0
  37. data/html/js/agent-editor/agent-editor.js +363 -0
  38. data/html/js/agent-editor/agent-list-tree.js +251 -0
  39. data/html/js/agent-selector.js +23 -28
  40. data/html/js/app.js +63 -91
  41. data/html/js/bt-create-page.js +25 -19
  42. data/html/js/container-min.js +1 -1
  43. data/html/js/container.js +944 -0
  44. data/html/js/edit_area/autocompletion.js +11 -13
  45. data/html/js/edit_area/edit_area.css +79 -40
  46. data/html/js/edit_area/edit_area.js +255 -226
  47. data/html/js/edit_area/edit_area_compressor.php +4 -4
  48. data/html/js/edit_area/edit_area_full.gz +0 -0
  49. data/html/js/edit_area/edit_area_full.js +31 -31
  50. data/html/js/edit_area/edit_area_full_with_plugins.gz +0 -0
  51. data/html/js/edit_area/edit_area_full_with_plugins.js +31 -31
  52. data/html/js/edit_area/edit_area_functions.js +448 -341
  53. data/html/js/edit_area/edit_area_loader.js +409 -397
  54. data/html/js/edit_area/elements_functions.js +120 -123
  55. data/html/js/edit_area/highlight.js +305 -197
  56. data/html/js/edit_area/images/goto.png +0 -0
  57. data/html/js/edit_area/images/help.png +0 -0
  58. data/html/js/edit_area/images/redo.png +0 -0
  59. data/html/js/edit_area/images/save.png +0 -0
  60. data/html/js/edit_area/images/search.png +0 -0
  61. data/html/js/edit_area/images/undo.png +0 -0
  62. data/html/js/edit_area/images/word_wrap.gif +0 -0
  63. data/html/js/edit_area/keyboard.js +5 -5
  64. data/html/js/edit_area/langs/bg.js +73 -0
  65. data/html/js/edit_area/langs/cs.js +2 -0
  66. data/html/js/edit_area/langs/de.js +2 -0
  67. data/html/js/edit_area/langs/dk.js +2 -0
  68. data/html/js/edit_area/langs/en.js +2 -0
  69. data/html/js/edit_area/langs/eo.js +2 -0
  70. data/html/js/edit_area/langs/es.js +2 -0
  71. data/html/js/edit_area/langs/fi.js +67 -0
  72. data/html/js/edit_area/langs/fr.js +2 -0
  73. data/html/js/edit_area/langs/hr.js +2 -0
  74. data/html/js/edit_area/langs/it.js +2 -0
  75. data/html/js/edit_area/langs/ja.js +2 -0
  76. data/html/js/edit_area/langs/mk.js +2 -0
  77. data/html/js/edit_area/langs/nl.js +2 -0
  78. data/html/js/edit_area/langs/pl.js +2 -0
  79. data/html/js/edit_area/langs/pt.js +2 -0
  80. data/html/js/edit_area/langs/ru.js +2 -0
  81. data/html/js/edit_area/langs/sk.js +2 -0
  82. data/html/js/edit_area/langs/zh.js +67 -0
  83. data/html/js/edit_area/manage_area.js +362 -205
  84. data/html/js/edit_area/plugins/charmap/langs/bg.js +12 -0
  85. data/html/js/edit_area/plugins/charmap/langs/zh.js +6 -0
  86. data/html/js/edit_area/plugins/test/langs/bg.js +10 -0
  87. data/html/js/edit_area/plugins/test/langs/zh.js +4 -0
  88. data/html/js/edit_area/reg_syntax/java.js +56 -0
  89. data/html/js/edit_area/reg_syntax/ruby.js +9 -9
  90. data/html/js/edit_area/reg_syntax.js +15 -13
  91. data/html/js/edit_area/regexp.js +36 -32
  92. data/html/js/edit_area/resize_area.js +43 -47
  93. data/html/js/edit_area/search_replace.js +29 -29
  94. data/html/js/edit_area/template.html +6 -4
  95. data/html/js/json-broker-client.js +23 -17
  96. data/html/js/result-page.js +107 -57
  97. data/html/js/rt-setting-page.js +38 -15
  98. data/html/js/sidebar.js +41 -27
  99. data/html/js/templates.js +167 -32
  100. data/html/js/utils.js +143 -7
  101. data/html/js/yui/treeview.js +3671 -0
  102. data/html/swf/chart.swf +0 -0
  103. data/html/test/agent_editor_spec.js +815 -0
  104. data/html/test/index.html +40 -0
  105. data/html/test/jsspec/JSSpec.css +224 -0
  106. data/html/test/jsspec/JSSpec.js +1549 -0
  107. data/html/test/jsspec/diff_match_patch.js +1 -0
  108. data/html/test/utils_spec.js +111 -0
  109. data/lib/jiji/agent/agent.rb +69 -12
  110. data/lib/jiji/agent/agent_manager.rb +18 -12
  111. data/lib/jiji/agent/agent_registry.rb +35 -121
  112. data/lib/jiji/collector.rb +16 -6
  113. data/lib/jiji/command.rb +46 -5
  114. data/lib/jiji/dao/file_system_dao.rb +158 -0
  115. data/lib/jiji/dao/timed_data_dao.rb +2 -0
  116. data/lib/jiji/dao/trade_result_dao.rb +1 -1
  117. data/lib/jiji/error.rb +24 -8
  118. data/lib/jiji/migration/migrator1_2_0.rb +67 -0
  119. data/lib/jiji/models.rb +82 -24
  120. data/lib/jiji/operator.rb +55 -51
  121. data/lib/jiji/output.rb +85 -29
  122. data/lib/jiji/output_manager.rb +84 -0
  123. data/lib/jiji/plugin/embedded/single_click_client.rb +2 -2
  124. data/lib/jiji/plugin/securities_plugin.rb +0 -1
  125. data/lib/jiji/process.rb +229 -208
  126. data/lib/jiji/process_manager.rb +190 -96
  127. data/lib/jiji/registry.rb +87 -19
  128. data/lib/jiji/server.rb +1 -0
  129. data/lib/jiji/service/agent_service.rb +147 -48
  130. data/lib/jiji/service/output_service.rb +37 -17
  131. data/lib/jiji/service/process_service.rb +3 -5
  132. data/lib/jiji/service/trade_result_service.rb +4 -5
  133. data/lib/jiji/util/file_lock.rb +4 -4
  134. data/lib/jiji/util/include_proxy.rb +17 -0
  135. data/lib/jiji/util/json_broker.rb +6 -4
  136. data/lib/jiji/util/util.rb +1 -1
  137. data/swf/chart/fx/chart/Chart.as +7 -0
  138. data/swf/chart/fx/chart/ui/graph/GraphManager.as +15 -2
  139. data/test/ProcessTest/agents/foo.rb +10 -0
  140. data/test/ProcessTest/conf/configuration.yaml +3 -0
  141. data/test/agent/agent_tests.rb +10 -0
  142. data/test/agent/test_AgentManager.rb +28 -12
  143. data/test/agent/test_AgentRegistry.rb +194 -99
  144. data/test/agent/test_PeriodicallyAgent.rb +1 -2
  145. data/test/agent/test_Permitter.rb +1 -2
  146. data/test/all_tests.rb +7 -19
  147. data/test/dao/dao_tests.rb +9 -0
  148. data/test/dao/test_FileSystemDao.rb +431 -0
  149. data/test/dao/test_RateDao.rb +5 -7
  150. data/test/dao/test_TradeResultDao.rb +1 -2
  151. data/test/migration/migration_tests.rb +10 -0
  152. data/test/migration/migrator1_2_0test_data/basic/out/M2NlOTA2ODEtZDdlNi00NWU1LWIwNDQtMjBmODY2ZGNkNzBj/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
  153. data/test/migration/migrator1_2_0test_data/basic/out/MDVhYzcxMjYtMGFlMS00Mzk0LWEyNmUtYjVjZjgwNDA0ZmE2/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
  154. data/test/migration/migrator1_2_0test_data/basic/out/MzA1YTk0NDgtNzhjNi00NDk3LTk2NTktYzE1ZjBhNzdiYjNj/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
  155. data/test/migration/migrator1_2_0test_data/basic/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/meta.yaml +9 -0
  156. data/test/migration/migrator1_2_0test_data/basic/props.yaml +85 -0
  157. data/test/migration/migrator1_2_0test_data/illegal_props/out/M2NlOTA2ODEtZDdlNi00NWU1LWIwNDQtMjBmODY2ZGNkNzBj/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
  158. data/test/migration/migrator1_2_0test_data/illegal_props/out/MDVhYzcxMjYtMGFlMS00Mzk0LWEyNmUtYjVjZjgwNDA0ZmE2/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
  159. data/test/migration/migrator1_2_0test_data/illegal_props/out/MzA1YTk0NDgtNzhjNi00NDk3LTk2NTktYzE1ZjBhNzdiYjNj/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
  160. data/test/migration/migrator1_2_0test_data/illegal_props/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/meta.yaml +9 -0
  161. data/test/migration/migrator1_2_0test_data/illegal_props/props.yaml +1 -0
  162. data/test/migration/migrator1_2_0test_data/no_outs/props.yaml +85 -0
  163. data/test/migration/migrator1_2_0test_data/no_props/out/M2NlOTA2ODEtZDdlNi00NWU1LWIwNDQtMjBmODY2ZGNkNzBj/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
  164. data/test/migration/migrator1_2_0test_data/no_props/out/MDVhYzcxMjYtMGFlMS00Mzk0LWEyNmUtYjVjZjgwNDA0ZmE2/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
  165. data/test/migration/migrator1_2_0test_data/no_props/out/MzA1YTk0NDgtNzhjNi00NDk3LTk2NTktYzE1ZjBhNzdiYjNj/56e75YuV5bmz5Z2H57ea/meta.yaml +8 -0
  166. data/test/migration/migrator1_2_0test_data/no_props/out/YjRkOTI1MzEtZTM4MS00YjQwLTg1ZTQtMWFmZDRlNDUwMzBm/56e75YuV5bmz5Z2H57ea/meta.yaml +9 -0
  167. data/test/migration/test_Migrator.rb +1 -1
  168. data/test/migration/test_Migrator1_0_3.rb +1 -1
  169. data/test/migration/test_Migrator1_1_0.rb +1 -1
  170. data/test/migration/test_Migrator1_2_0.rb +94 -0
  171. data/test/plugin/embedded/test_SingleClickClient.rb +1 -2
  172. data/test/plugin/plugin_tests.rb +8 -0
  173. data/test/plugin/test_Loader.rb +1 -1
  174. data/test/shared/rate.csv +144 -0
  175. data/test/shared/shared_tests.rb +9 -0
  176. data/test/shared/test_Cross.rb +144 -0
  177. data/test/shared/test_PositionManager.rb +285 -0
  178. data/test/shared/test_Signal.rb +65 -0
  179. data/test/test_Output.rb +28 -21
  180. data/test/test_OutputManager.rb +162 -0
  181. data/test/test_Output_registry.rb +6 -17
  182. data/test/test_Process.rb +434 -222
  183. data/test/test_ProcessManager.rb +458 -101
  184. data/test/test_utils.rb +71 -8
  185. data/test/util/test_BlockToSession.rb +1 -2
  186. data/test/util/test_CSV.rb +1 -2
  187. data/test/util/test_SynchronizeInterceptor.rb +1 -2
  188. data/test/util/util_tests.rb +9 -0
  189. metadata +127 -47
  190. data/html/js/agent-editor-page.js +0 -440
  191. data/html/js/codepress/codepress.css +0 -21
  192. data/html/js/codepress/codepress.html +0 -35
  193. data/html/js/codepress/codepress.js +0 -138
  194. data/html/js/codepress/engines/gecko.js +0 -293
  195. data/html/js/codepress/engines/khtml.js +0 -0
  196. data/html/js/codepress/engines/msie.js +0 -304
  197. data/html/js/codepress/engines/older.js +0 -0
  198. data/html/js/codepress/engines/opera.js +0 -260
  199. data/html/js/codepress/images/line-numbers.gif +0 -0
  200. data/html/js/codepress/index.html +0 -443
  201. data/html/js/codepress/languages/asp.css +0 -71
  202. data/html/js/codepress/languages/asp.js +0 -117
  203. data/html/js/codepress/languages/autoit.css +0 -13
  204. data/html/js/codepress/languages/autoit.js +0 -32
  205. data/html/js/codepress/languages/csharp.css +0 -9
  206. data/html/js/codepress/languages/csharp.js +0 -25
  207. data/html/js/codepress/languages/css.css +0 -10
  208. data/html/js/codepress/languages/css.js +0 -23
  209. data/html/js/codepress/languages/generic.css +0 -9
  210. data/html/js/codepress/languages/generic.js +0 -25
  211. data/html/js/codepress/languages/html.css +0 -13
  212. data/html/js/codepress/languages/html.js +0 -59
  213. data/html/js/codepress/languages/java.css +0 -7
  214. data/html/js/codepress/languages/java.js +0 -24
  215. data/html/js/codepress/languages/javascript.css +0 -8
  216. data/html/js/codepress/languages/javascript.js +0 -30
  217. data/html/js/codepress/languages/perl.css +0 -11
  218. data/html/js/codepress/languages/perl.js +0 -27
  219. data/html/js/codepress/languages/php.css +0 -12
  220. data/html/js/codepress/languages/php.js +0 -61
  221. data/html/js/codepress/languages/ruby.css +0 -10
  222. data/html/js/codepress/languages/ruby.js +0 -26
  223. data/html/js/codepress/languages/sql.css +0 -10
  224. data/html/js/codepress/languages/sql.js +0 -30
  225. data/html/js/codepress/languages/text.css +0 -5
  226. data/html/js/codepress/languages/text.js +0 -9
  227. data/html/js/codepress/languages/vbscript.css +0 -71
  228. data/html/js/codepress/languages/vbscript.js +0 -117
  229. data/html/js/codepress/languages/xsl.css +0 -15
  230. data/html/js/codepress/languages/xsl.js +0 -103
  231. data/html/js/codepress/license.txt +0 -458
  232. data/html/js/edit_area/images/Thumbs.db +0 -0
  233. data/test/plugin/test_gem/a/lib/jiji_plugin_test.rb +0 -6
@@ -1,32 +0,0 @@
1
- /**
2
- * CodePress regular expressions for AutoIt syntax highlighting
3
- * @author: James Brooks, Michael HURNI
4
- */
5
-
6
- // AutoIt
7
- Language.syntax = [
8
- { input : /({|}|\(|\))/g, output : '<b>$1</b>' }, // Brackets
9
- { input : /(\*|\+|-)/g, output : '<b>$1</b>' }, // Operator
10
- { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : "<s>\"$1$2</s>" }, // strings double
11
- { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single
12
- { input : /\b([\d]+)\b/g, output : '<ins>$1</ins>' }, // Numbers
13
- { input : /#(.*?)(<br>|<\/P>)/g, output : '<i>#$1</i>$2' }, // Directives and Includes
14
- { input : /(\$[\w\.]*)/g, output : '<var>$1</var>' }, // vars
15
- { input : /(_[\w\.]*)/g, output : '<a>$1</a>' }, // underscored word
16
- { input : /(\@[\w\.]*)/g, output : '<em>$1</em>' }, // Macros
17
- { input : /\b(Abs|ACos|AdlibDisable|AdlibEnable|Asc|AscW|ASin|Assign|ATan|AutoItSetOption|AutoItWinGetTitle|AutoItWinSetTitle|Beep|Binary|BinaryLen|BinaryMid|BinaryToString|BitAND|BitNOT|BitOR|BitSHIFT|BitXOR|BlockInput|Break|Call|CDTray|Ceiling|Chr|ChrW|ClipGet|ClipPut|ConsoleRead|ConsoleWrite|ConsoleWriteError|ControlClick|ControlCommand|ControlDisable|ControlEnable|ControlFocus|ControlGetFocus|ControlGetHandle|ControlGetPos|ControlGetText|ControlHide|ControlListView|ControlMove|ControlSend|ControlSetText|ControlShow|Cos|Dec|DirCopy|DirCreate|DirGetSize|DirMove|DirRemove|DllCall|DllCall|DllClose|DllOpen|DllStructCreate|DllStructGetData|DllStructGetPtr|DllStructGetSize|DllStructSetData|DriveGetDrive|DriveGetFileSystem|DriveGetLabel|DriveGetSerial|DriveGetType|DriveMapAdd|DriveMapDel|DriveMapGet|DriveSetLabel|DriveSpaceFree|DriveSpaceTotal|DriveStatus|EnvGet|EnvSet|EnvUpdate|Eval|Execute|Exp|FileChangeDir|FileClose|FileCopy|FileCreateNTFS|FileCreateShortcut|FileDelete|FileExists|FileFindFirstFile|FileFindNextFile|FileGetAttrib|FileGetLongName|FileGetShortcut|FileGetShortName|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileOpen|FileOpenDialog|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileSaveDialog|FileSelectFolder|FileSetAttrib|FileSetTime|FileWrite|FileWriteLine|Floor|FtpSetProxy|GuiCreate|GuiCtrlCreateAvi|GuiCtrlCreateButton|GuiCtrlCreateCheckbox|GuiCtrlCreateCombo|GuiCtrlCreateContextMenu|GuiCtrlCreateDate|GuiCtrlCreateDummy|GuiCtrlCreateEdit|GuiCtrlCreateGraphic|GuiCtrlCreateGroup|GuiCtrlCreateIcon|GuiCtrlCreateInput|GuiCtrlCreateLabel|GuiCtrlCreateList|GuiCtrlCreateListView|GuiCtrlCreateListViewItem|GuiCtrlCreateMenu|GuiCtrlCreateMenuItem|GuiCtrlCreateMonthCal|GuiCtrlCreateObj|GuiCtrlCreatePic|GuiCtrlCreateProgress|GuiCtrlCreateRadio|GuiCtrlCreateSlider|GuiCtrlCreateTab|GuiCtrlCreateTabItem|GuiCtrlCreateUpdown|GuiCtrlDelete|GuiCtrlGetHandle|GuiCtrlGetState|GuiCtrlRead|GuiCtrlRecvMsg|GuiCtrlSentMsg|GuiCtrlSendToDummy|GuiCtrlSetBkColor|GuiCtrlSetColor|GuiCtrlSetCursor|GuiCtrlSetData|GuiCtrlSetFont|GuiCtrlSetGraphic|GuiCtrlSetImage|GuiCtrlSetLimit|GuiCtrlSetOnEvent|GuiCtrlSetPos|GuiCtrlResizing|GuiCtrlSetState|GuiCtrlSetTip|GuiDelete|GuiGetCursorInfo|GuiGetMsg|GuiGetStyle|GuiRegisterMsg|GuiSetBkColor|GuiSetCoord|GuiSetCursor|GuiSetFont|GuiSetHelp|GuiSetIcon|GuiSetOnEvent|GuiSetStat|GuiSetStyle|GuiStartGroup|GuiSwitch|Hex|HotKeySet|HttpSetProxy|HWnd|InetGet|InetGetSize|IniDelete|IniRead|IniReadSection|IniReadSectionNames|IniRenameSection|IniWrite|IniWriteSection|InputBox|Int|IsAdmin|IsArray|IsBinary|IsBool|IsDeclared|IsDllStruct|IsFloat|IsHWnd|IsInt|IsKeyword|IsNumber|IsObj|IsString|Log|MemGetStats|Mod|MouseClick|MouseClickDrag|MouseDown|MouseGetCursor|MouseGetPos|MouseMove|MouseUp|MouseWheel|MsgBox|Number|ObjCreate|ObjEvent|ObjGet|ObjName|Ping|PixelCheckSum|PixelGetColor|PixelSearch|ProcessClose|ProcessExists|ProcessList|ProcessSetPriority|ProcessWait|ProcessWaitClose|ProgressOff|ProcessOn|ProgressSet|Random|RegDelete|RegEnumKey|RegEnumVal|RegRead|RegWrite|Round|Run|RunAsSet|RunWait|Send|SetError|SetExtended|ShellExecute|ShellExecuteWait|Shutdown|Sin|Sleep|SoundPlay|SoundSetWaveVolume|SplashImageOn|SplashOff|SplashTextOn|Sqrt|SRandom|StatusbarGetText|StderrRead|StdinWrite|StdoutRead|String|StringAddCR|StringCompare|StringFormat|StringInStr|StringIsAlNum|StringIsAlpha|StringIsASCII|StringIsDigit|StringIsFloat|StringIsInt|StringIsLower|StringIsSpace|StringIsUpper|StringIsXDigit|StringLeft|StringLen|StringLower|StringMid|StringRegExp|StringRegExpReplace|StringReplace|StringRight|StringSplit|StringStripCR|StringStripWS|StringToBinary|StringTrimLeft|StringTrimRight|StringUpper|Tan|TCPAccept|TCPCloseSocket|TCPConnect|TCPListen|TCPNameToIP|TCPrecv|TCPSend|TCPShutdown|TCPStartup|TimerDiff|TimerInit|ToolTip|TrayCreateItem|TrayCreateMenu|TrayGetMenu|TrayGetMsg|TrayItemDelete|TrayItemGetHandle|TrayItemGetState|TrayItemGetText|TrayItemSetOnEvent|TrayItemSetState|TrayItemSetText|TraySetClick|TraySetIcon|TraySetOnEvent|TraySetPauseIcon|TraySetState|TraySetToolTip|TrayTip|UBound|UDPBind|UDPCloseSocket|UDPOpen|UDPRecv|UDPSend|WinActivate|WinActive|WinClose|WinExists|WinFlash|WinGetCaretPos|WinGetClassList|WinGetClientSize|WinGetHandle|WinGetPos|WinGetProcess|WinGetState|WinGetText|WinGetTitle|WinKill|WinList|WinMenuSelectItem|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinSetOnTop|WinSetState|WinSetTitle|WinSetTrans|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/g, output : '<u>$1</u>' } ,// reserved words
18
- { input : /\B;(.*?)(<br>|<\/P>)/g, output : '<cite>;$1</cite>$2' }, // comments
19
- { input : /#CS(.*?)#CE/g, output : '<cite>#CS$1#CE</cite>' } // Block Comments
20
- ]
21
-
22
- Language.snippets = []
23
-
24
- Language.complete = [
25
- { input : '\'',output : '\'$0\'' },
26
- { input : '"', output : '"$0"' },
27
- { input : '(', output : '\($0\)' },
28
- { input : '[', output : '\[$0\]' },
29
- { input : '{', output : '{\n\t$0\n}' }
30
- ]
31
-
32
- Language.shortcuts = []
@@ -1,9 +0,0 @@
1
- /*
2
- * CodePress color styles for Java syntax highlighting
3
- * By Edwin de Jonge
4
- */
5
-
6
- b {color:#7F0055;font-weight:bold;font-style:normal;} /* reserved words */
7
- a {color:#2A0088;font-weight:bold;font-style:normal;} /* types */
8
- i, i b, i s {color:#3F7F5F;font-weight:bold;} /* comments */
9
- s, s b {color:#2A00FF;font-weight:normal;} /* strings */
@@ -1,25 +0,0 @@
1
- /*
2
- * CodePress regular expressions for C# syntax highlighting
3
- * By Edwin de Jonge
4
- */
5
-
6
- Language.syntax = [ // C#
7
- { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote
8
- { input : /\'(.?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single quote
9
- { input : /\b(abstract|as|base|break|case|catch|checked|continue|default|delegate|do|else|event|explicit|extern|false|finally|fixed|for|foreach|get|goto|if|implicit|in|interface|internal|is|lock|namespace|new|null|object|operator|out|override|params|partial|private|protected|public|readonly|ref|return|set|sealed|sizeof|static|stackalloc|switch|this|throw|true|try|typeof|unchecked|unsafe|using|value|virtual|while)\b/g, output : '<b>$1</b>' }, // reserved words
10
- { input : /\b(bool|byte|char|class|double|float|int|interface|long|string|struct|void)\b/g, output : '<a>$1</a>' }, // types
11
- { input : /([^:]|^)\/\/(.*?)(<br|<\/P)/g, output : '$1<i>//$2</i>$3' }, // comments //
12
- { input : /\/\*(.*?)\*\//g, output : '<i>/*$1*/</i>' } // comments /* */
13
- ];
14
-
15
- Language.snippets = [];
16
-
17
- Language.complete = [ // Auto complete only for 1 character
18
- {input : '\'',output : '\'$0\'' },
19
- {input : '"', output : '"$0"' },
20
- {input : '(', output : '\($0\)' },
21
- {input : '[', output : '\[$0\]' },
22
- {input : '{', output : '{\n\t$0\n}' }
23
- ];
24
-
25
- Language.shortcuts = [];
@@ -1,10 +0,0 @@
1
- /*
2
- * CodePress color styles for CSS syntax highlighting
3
- */
4
-
5
- b, b a, b u {color:#000080;} /* tags, ids, classes */
6
- i, i b, i s, i a, i u {color:gray;} /* comments */
7
- s, s b {color:#a0a0dd;} /* parameters */
8
- a {color:#0000ff;} /* keys */
9
- u {color:red;} /* values */
10
-
@@ -1,23 +0,0 @@
1
- /*
2
- * CodePress regular expressions for CSS syntax highlighting
3
- */
4
-
5
- // CSS
6
- Language.syntax = [
7
- { input : /(.*?){(.*?)}/g,output : '<b>$1</b>{<u>$2</u>}' }, // tags, ids, classes, values
8
- { input : /([\w-]*?):([^\/])/g,output : '<a>$1</a>:$2' }, // keys
9
- { input : /\((.*?)\)/g,output : '(<s>$1</s>)' }, // parameters
10
- { input : /\/\*(.*?)\*\//g,output : '<i>/*$1*/</i>'} // comments
11
- ]
12
-
13
- Language.snippets = []
14
-
15
- Language.complete = [
16
- { input : '\'',output : '\'$0\'' },
17
- { input : '"', output : '"$0"' },
18
- { input : '(', output : '\($0\)' },
19
- { input : '[', output : '\[$0\]' },
20
- { input : '{', output : '{\n\t$0\n}' }
21
- ]
22
-
23
- Language.shortcuts = []
@@ -1,9 +0,0 @@
1
- /*
2
- * CodePress color styles for generic syntax highlighting
3
- */
4
-
5
- b {color:#7F0055;font-weight:bold;} /* reserved words */
6
- u {color:darkblue;font-weight:bold;} /* special words */
7
- i, i b, i s, i u, i em {color:green;font-weight:normal;} /* comments */
8
- s, s b, s em {color:#2A00FF;font-weight:normal;} /* strings */
9
- em {font-weight:bold;} /* special chars */
@@ -1,25 +0,0 @@
1
- /*
2
- * CodePress regular expressions for generic syntax highlighting
3
- */
4
-
5
- // generic languages
6
- Language.syntax = [
7
- { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote
8
- { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single quote
9
- { input : /\b(abstract|continue|for|new|switch|default|goto|boolean|do|if|private|this|break|double|protected|throw|byte|else|import|public|throws|case|return|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|const|float|while|function|label)\b/g, output : '<b>$1</b>' }, // reserved words
10
- { input : /([\(\){}])/g, output : '<em>$1</em>' }, // special chars;
11
- { input : /([^:]|^)\/\/(.*?)(<br|<\/P)/g, output : '$1<i>//$2</i>$3' }, // comments //
12
- { input : /\/\*(.*?)\*\//g, output : '<i>/*$1*/</i>' } // comments /* */
13
- ]
14
-
15
- Language.snippets = []
16
-
17
- Language.complete = [
18
- { input : '\'', output : '\'$0\'' },
19
- { input : '"', output : '"$0"' },
20
- { input : '(', output : '\($0\)' },
21
- { input : '[', output : '\[$0\]' },
22
- { input : '{', output : '{\n\t$0\n}' }
23
- ]
24
-
25
- Language.shortcuts = []
@@ -1,13 +0,0 @@
1
- /*
2
- * CodePress color styles for HTML syntax highlighting
3
- */
4
-
5
- b {color:#000080;} /* tags */
6
- ins, ins b, ins s, ins em {color:gray;} /* comments */
7
- s, s b {color:#7777e4;} /* attribute values */
8
- a {color:green;} /* links */
9
- u {color:#E67300;} /* forms */
10
- big {color:#db0000;} /* images */
11
- em, em b {color:#800080;} /* style */
12
- strong {color:#800000;} /* script */
13
- tt i {color:darkblue;font-weight:bold;} /* script reserved words */
@@ -1,59 +0,0 @@
1
- /*
2
- * CodePress regular expressions for HTML syntax highlighting
3
- */
4
-
5
- // HTML
6
- Language.syntax = [
7
- { input : /(&lt;[^!]*?&gt;)/g, output : '<b>$1</b>' }, // all tags
8
- { input : /(&lt;a .*?&gt;|&lt;\/a&gt;)/g, output : '<a>$1</a>' }, // links
9
- { input : /(&lt;img .*?&gt;)/g, output : '<big>$1</big>' }, // images
10
- { input : /(&lt;\/?(button|textarea|form|input|select|option|label).*?&gt;)/g, output : '<u>$1</u>' }, // forms
11
- { input : /(&lt;style.*?&gt;)(.*?)(&lt;\/style&gt;)/g, output : '<em>$1</em><em>$2</em><em>$3</em>' }, // style tags
12
- { input : /(&lt;script.*?&gt;)(.*?)(&lt;\/script&gt;)/g, output : '<strong>$1</strong><tt>$2</tt><strong>$3</strong>' }, // script tags
13
- { input : /=(".*?")/g, output : '=<s>$1</s>' }, // atributes double quote
14
- { input : /=('.*?')/g, output : '=<s>$1</s>' }, // atributes single quote
15
- { input : /(&lt;!--.*?--&gt.)/g, output : '<ins>$1</ins>' }, // comments
16
- { input : /\b(alert|window|document|break|continue|do|for|new|this|void|case|default|else|function|return|typeof|while|if|label|switch|var|with|catch|boolean|int|try|false|throws|null|true|goto)\b/g, output : '<i>$1</i>' } // script reserved words
17
- ]
18
-
19
- Language.snippets = [
20
- { input : 'aref', output : '<a href="$0"></a>' },
21
- { input : 'h1', output : '<h1>$0</h1>' },
22
- { input : 'h2', output : '<h2>$0</h2>' },
23
- { input : 'h3', output : '<h3>$0</h3>' },
24
- { input : 'h4', output : '<h4>$0</h4>' },
25
- { input : 'h5', output : '<h5>$0</h5>' },
26
- { input : 'h6', output : '<h6>$0</h6>' },
27
- { input : 'html', output : '<html>\n\t$0\n</html>' },
28
- { input : 'head', output : '<head>\n\t<meta http-equiv="content-type" content="text/html; charset=utf-8" />\n\t<title>$0</title>\n\t\n</head>' },
29
- { input : 'img', output : '<img src="$0" alt="" />' },
30
- { input : 'input', output : '<input name="$0" id="" type="" value="" />' },
31
- { input : 'label', output : '<label for="$0"></label>' },
32
- { input : 'legend', output : '<legend>\n\t$0\n</legend>' },
33
- { input : 'link', output : '<link rel="stylesheet" href="$0" type="text/css" media="screen" charset="utf-8" />' },
34
- { input : 'base', output : '<base href="$0" />' },
35
- { input : 'body', output : '<body>\n\t$0\n</body>' },
36
- { input : 'css', output : '<link rel="stylesheet" href="$0" type="text/css" media="screen" charset="utf-8" />' },
37
- { input : 'div', output : '<div>\n\t$0\n</div>' },
38
- { input : 'divid', output : '<div id="$0">\n\t\n</div>' },
39
- { input : 'dl', output : '<dl>\n\t<dt>\n\t\t$0\n\t</dt>\n\t<dd></dd>\n</dl>' },
40
- { input : 'fieldset', output : '<fieldset>\n\t$0\n</fieldset>' },
41
- { input : 'form', output : '<form action="$0" method="" name="">\n\t\n</form>' },
42
- { input : 'meta', output : '<meta name="$0" content="" />' },
43
- { input : 'p', output : '<p>$0</p>' },
44
- { input : 'script', output : '<script type="text/javascript" language="javascript" charset="utf-8">\n\t$0\t\n</script>' },
45
- { input : 'scriptsrc', output : '<script src="$0" type="text/javascript" language="javascript" charset="utf-8"></script>' },
46
- { input : 'span', output : '<span>$0</span>' },
47
- { input : 'table', output : '<table border="$0" cellspacing="" cellpadding="">\n\t<tr><th></th></tr>\n\t<tr><td></td></tr>\n</table>' },
48
- { input : 'style', output : '<style type="text/css" media="screen">\n\t$0\n</style>' }
49
- ]
50
-
51
- Language.complete = [
52
- { input : '\'',output : '\'$0\'' },
53
- { input : '"', output : '"$0"' },
54
- { input : '(', output : '\($0\)' },
55
- { input : '[', output : '\[$0\]' },
56
- { input : '{', output : '{\n\t$0\n}' }
57
- ]
58
-
59
- Language.shortcuts = []
@@ -1,7 +0,0 @@
1
- /*
2
- * CodePress color styles for Java syntax highlighting
3
- */
4
-
5
- b {color:#7F0055;font-weight:bold;font-style:normal;} /* reserved words */
6
- i, i b, i s {color:#3F7F5F;font-weight:bold;} /* comments */
7
- s, s b {color:#2A00FF;font-weight:normal;} /* strings */
@@ -1,24 +0,0 @@
1
- /*
2
- * CodePress regular expressions for Java syntax highlighting
3
- */
4
-
5
- // Java
6
- Language.syntax = [
7
- { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>'}, // strings double quote
8
- { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>'}, // strings single quote
9
- { input : /\b(abstract|continue|for|new|switch|assert|default|goto|package|synchronized|boolean|do|if|private|this|break|double|implements|protected|throw|byte|else|import|public|throws|case|enum|instanceof|return|transient|catch|extends|int|short|try|char|final|interface|static|void|class|finally|long|strictfp|volatile|const|float|native|super|while)\b/g, output : '<b>$1</b>'}, // reserved words
10
- { input : /([^:]|^)\/\/(.*?)(<br|<\/P)/g, output : '$1<i>//$2</i>$3'}, // comments //
11
- { input : /\/\*(.*?)\*\//g, output : '<i>/*$1*/</i>' }// comments /* */
12
- ]
13
-
14
- Language.snippets = []
15
-
16
- Language.complete = [
17
- { input : '\'',output : '\'$0\'' },
18
- { input : '"', output : '"$0"' },
19
- { input : '(', output : '\($0\)' },
20
- { input : '[', output : '\[$0\]' },
21
- { input : '{', output : '{\n\t$0\n}' }
22
- ]
23
-
24
- Language.shortcuts = []
@@ -1,8 +0,0 @@
1
- /*
2
- * CodePress color styles for JavaScript syntax highlighting
3
- */
4
-
5
- b {color:#7F0055;font-weight:bold;} /* reserved words */
6
- u {color:darkblue;font-weight:bold;} /* special words */
7
- i, i b, i s, i u {color:green;font-weight:normal;} /* comments */
8
- s, s b, s u {color:#2A00FF;font-weight:normal;} /* strings */
@@ -1,30 +0,0 @@
1
- /*
2
- * CodePress regular expressions for JavaScript syntax highlighting
3
- */
4
-
5
- // JavaScript
6
- Language.syntax = [
7
- { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote
8
- { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single quote
9
- { input : /\b(break|continue|do|for|new|this|void|case|default|else|function|return|typeof|while|if|label|switch|var|with|catch|boolean|int|try|false|throws|null|true|goto)\b/g, output : '<b>$1</b>' }, // reserved words
10
- { input : /\b(alert|isNaN|parent|Array|parseFloat|parseInt|blur|clearTimeout|prompt|prototype|close|confirm|length|Date|location|Math|document|element|name|self|elements|setTimeout|navigator|status|String|escape|Number|submit|eval|Object|event|onblur|focus|onerror|onfocus|onclick|top|onload|toString|onunload|unescape|open|valueOf|window|onmouseover)\b/g, output : '<u>$1</u>' }, // special words
11
- { input : /([^:]|^)\/\/(.*?)(<br|<\/P)/g, output : '$1<i>//$2</i>$3' }, // comments //
12
- { input : /\/\*(.*?)\*\//g, output : '<i>/*$1*/</i>' } // comments /* */
13
- ]
14
-
15
- Language.snippets = [
16
- { input : 'dw', output : 'document.write(\'$0\');' },
17
- { input : 'getid', output : 'document.getElementById(\'$0\')' },
18
- { input : 'fun', output : 'function $0(){\n\t\n}' },
19
- { input : 'func', output : 'function $0(){\n\t\n}' }
20
- ]
21
-
22
- Language.complete = [
23
- { input : '\'',output : '\'$0\'' },
24
- { input : '"', output : '"$0"' },
25
- { input : '(', output : '\($0\)' },
26
- { input : '[', output : '\[$0\]' },
27
- { input : '{', output : '{\n\t$0\n}' }
28
- ]
29
-
30
- Language.shortcuts = []
@@ -1,11 +0,0 @@
1
- /*
2
- * CodePress color styles for Perl syntax highlighting
3
- * By J. Nick Koston
4
- */
5
-
6
- b {color:#7F0055;font-weight:bold;} /* reserved words */
7
- i, i b, i s, i em, i a, i u {color:gray;font-weight:normal;} /* comments */
8
- s, s b, s a, s em, s u {color:#2A00FF;font-weight:normal;} /* strings */
9
- a {color:#006700;font-weight:bold;} /* variables */
10
- em {color:darkblue;font-weight:bold;} /* functions */
11
- u {font-weight:bold;} /* special chars */
@@ -1,27 +0,0 @@
1
- /*
2
- * CodePress regular expressions for Perl syntax highlighting
3
- * By J. Nick Koston
4
- */
5
-
6
- // Perl
7
- Language.syntax = [
8
- { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote
9
- { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single quote
10
- { input : /([\$\@\%][\w\.]*)/g, output : '<a>$1</a>' }, // vars
11
- { input : /(sub\s+)([\w\.]*)/g, output : '$1<em>$2</em>' }, // functions
12
- { input : /\b(abs|accept|alarm|atan2|bind|binmode|bless|caller|chdir|chmod|chomp|chop|chown|chr|chroot|close|closedir|connect|continue|cos|crypt|dbmclose|dbmopen|defined|delete|die|do|dump|each|else|elsif|endgrent|endhostent|endnetent|endprotoent|endpwent|eof|eval|exec|exists|exit|fcntl|fileno|find|flock|for|foreach|fork|format|formlinegetc|getgrent|getgrgid|getgrnam|gethostbyaddr|gethostbyname|gethostent|getlogin|getnetbyaddr|getnetbyname|getnetent|getpeername|getpgrp|getppid|getpriority|getprotobyname|getprotobynumber|getprotoent|getpwent|getpwnam|getpwuid|getservbyaddr|getservbyname|getservbyport|getservent|getsockname|getsockopt|glob|gmtime|goto|grep|hex|hostname|if|import|index|int|ioctl|join|keys|kill|last|lc|lcfirst|length|link|listen|LoadExternals|local|localtime|log|lstat|map|mkdir|msgctl|msgget|msgrcv|msgsnd|my|next|no|oct|open|opendir|ordpack|package|pipe|pop|pos|print|printf|push|pwd|qq|quotemeta|qw|rand|read|readdir|readlink|recv|redo|ref|rename|require|reset|return|reverse|rewinddir|rindex|rmdir|scalar|seek|seekdir|select|semctl|semget|semop|send|setgrent|sethostent|setnetent|setpgrp|setpriority|setprotoent|setpwent|setservent|setsockopt|shift|shmctl|shmget|shmread|shmwrite|shutdown|sin|sleep|socket|socketpair|sort|splice|split|sprintf|sqrt|srand|stat|stty|study|sub|substr|symlink|syscall|sysopen|sysread|system|syswritetell|telldir|tie|tied|time|times|tr|truncate|uc|ucfirst|umask|undef|unless|unlink|until|unpack|unshift|untie|use|utime|values|vec|waitpid|wantarray|warn|while|write)\b/g, output : '<b>$1</b>' }, // reserved words
13
- { input : /([\(\){}])/g, output : '<u>$1</u>' }, // special chars
14
- { input : /#(.*?)(<br>|<\/P>)/g, output : '<i>#$1</i>$2' } // comments
15
- ]
16
-
17
- Language.snippets = []
18
-
19
- Language.complete = [
20
- { input : '\'',output : '\'$0\'' },
21
- { input : '"', output : '"$0"' },
22
- { input : '(', output : '\($0\)' },
23
- { input : '[', output : '\[$0\]' },
24
- { input : '{', output : '{\n\t$0\n}' }
25
- ]
26
-
27
- Language.shortcuts = []
@@ -1,12 +0,0 @@
1
- /*
2
- * CodePress color styles for PHP syntax highlighting
3
- */
4
-
5
- b {color:#000080;} /* tags */
6
- big, big b, big em, big ins, big s, strong i, strong i b, strong i s, strong i u, strong i a, strong i a u, strong i s u {color:gray;font-weight:normal;} /* comments */
7
- s, s b, strong s u, strong s cite {color:#5656fa;font-weight:normal;} /* attributes and strings */
8
- strong a, strong a u {color:#006700;font-weight:bold;} /* variables */
9
- em {color:#800080;font-style:normal;} /* style */
10
- ins {color:#800000;} /* script */
11
- strong u {color:#7F0055;font-weight:bold;} /* reserved words */
12
- cite, s cite {color:red;font-weight:bold;} /* <?php and ?> */
@@ -1,61 +0,0 @@
1
- /*
2
- * CodePress regular expressions for PHP syntax highlighting
3
- */
4
-
5
- // PHP
6
- Language.syntax = [
7
- { input : /(&lt;[^!\?]*?&gt;)/g, output : '<b>$1</b>' }, // all tags
8
- { input : /(&lt;style.*?&gt;)(.*?)(&lt;\/style&gt;)/g, output : '<em>$1</em><em>$2</em><em>$3</em>' }, // style tags
9
- { input : /(&lt;script.*?&gt;)(.*?)(&lt;\/script&gt;)/g, output : '<ins>$1</ins><ins>$2</ins><ins>$3</ins>' }, // script tags
10
- { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote
11
- { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>'}, // strings single quote
12
- { input : /(&lt;\?)/g, output : '<strong>$1' }, // <?.*
13
- { input : /(\?&gt;)/g, output : '$1</strong>' }, // .*?>
14
- { input : /(&lt;\?php|&lt;\?=|&lt;\?|\?&gt;)/g, output : '<cite>$1</cite>' }, // php tags
15
- { input : /(\$[\w\.]*)/g, output : '<a>$1</a>' }, // vars
16
- { input : /\b(false|true|and|or|xor|__FILE__|exception|__LINE__|array|as|break|case|class|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|eval|exit|extends|for|foreach|function|global|if|include|include_once|isset|list|new|print|require|require_once|return|static|switch|unset|use|while|__FUNCTION__|__CLASS__|__METHOD__|final|php_user_filter|interface|implements|extends|public|private|protected|abstract|clone|try|catch|throw|this)\b/g, output : '<u>$1</u>' }, // reserved words
17
- { input : /([^:])\/\/(.*?)(<br|<\/P)/g, output : '$1<i>//$2</i>$3' }, // php comments //
18
- { input : /([^:])#(.*?)(<br|<\/P)/g, output : '$1<i>#$2</i>$3' }, // php comments #
19
- { input : /\/\*(.*?)\*\//g, output : '<i>/*$1*/</i>' }, // php comments /* */
20
- { input : /(&lt;!--.*?--&gt.)/g, output : '<big>$1</big>' } // html comments
21
- ]
22
-
23
- Language.snippets = [
24
- { input : 'if', output : 'if($0){\n\t\n}' },
25
- { input : 'ifelse', output : 'if($0){\n\t\n}\nelse{\n\t\n}' },
26
- { input : 'else', output : '}\nelse {\n\t' },
27
- { input : 'elseif', output : '}\nelseif($0) {\n\t' },
28
- { input : 'do', output : 'do{\n\t$0\n}\nwhile();' },
29
- { input : 'inc', output : 'include_once("$0");' },
30
- { input : 'fun', output : 'function $0(){\n\t\n}' },
31
- { input : 'func', output : 'function $0(){\n\t\n}' },
32
- { input : 'while', output : 'while($0){\n\t\n}' },
33
- { input : 'for', output : 'for($0,,){\n\t\n}' },
34
- { input : 'fore', output : 'foreach($0 as ){\n\t\n}' },
35
- { input : 'foreach', output : 'foreach($0 as ){\n\t\n}' },
36
- { input : 'echo', output : 'echo \'$0\';' },
37
- { input : 'switch', output : 'switch($0) {\n\tcase "": break;\n\tdefault: ;\n}' },
38
- { input : 'case', output : 'case "$0" : break;' },
39
- { input : 'ret0', output : 'return false;' },
40
- { input : 'retf', output : 'return false;' },
41
- { input : 'ret1', output : 'return true;' },
42
- { input : 'rett', output : 'return true;' },
43
- { input : 'ret', output : 'return $0;' },
44
- { input : 'def', output : 'define(\'$0\',\'\');' },
45
- { input : '<?', output : 'php\n$0\n?>' }
46
- ]
47
-
48
- Language.complete = [
49
- { input : '\'', output : '\'$0\'' },
50
- { input : '"', output : '"$0"' },
51
- { input : '(', output : '\($0\)' },
52
- { input : '[', output : '\[$0\]' },
53
- { input : '{', output : '{\n\t$0\n}' }
54
- ]
55
-
56
- Language.shortcuts = [
57
- { input : '[space]', output : '&nbsp;' },
58
- { input : '[enter]', output : '<br />' } ,
59
- { input : '[j]', output : 'testing' },
60
- { input : '[7]', output : '&amp;' }
61
- ]
@@ -1,10 +0,0 @@
1
- /*
2
- * CodePress color styles for Ruby syntax highlighting
3
- */
4
-
5
- b {color:#7F0055;font-weight:bold;} /* reserved words */
6
- i, i b, i s, i em, i a, i u {color:gray;font-weight:normal;} /* comments */
7
- s, s b, s a, s em, s u {color:#2A00FF;font-weight:normal;} /* strings */
8
- a {color:#006700;font-weight:bold;} /* variables */
9
- em {color:darkblue;font-weight:bold;} /* functions */
10
- u {font-weight:bold;} /* special chars */
@@ -1,26 +0,0 @@
1
- /*
2
- * CodePress regular expressions for Perl syntax highlighting
3
- */
4
-
5
- // Ruby
6
- Language.syntax = [
7
- { input : /\"(.*?)(\"|<br>|<\/P>)/g, output : '<s>"$1$2</s>' }, // strings double quote
8
- { input : /\'(.*?)(\'|<br>|<\/P>)/g, output : '<s>\'$1$2</s>' }, // strings single quote
9
- { input : /([\$\@\%]+)([\w\.]*)/g, output : '<a>$1$2</a>' }, // vars
10
- { input : /(def\s+)([\w\.]*)/g, output : '$1<em>$2</em>' }, // functions
11
- { input : /\b(alias|and|BEGIN|begin|break|case|class|def|defined|do|else|elsif|END|end|ensure|false|for|if|in|module|next|nil|not|or|redo|rescue|retry|return|self|super|then|true|undef|unless|until|when|while|yield)\b/g, output : '<b>$1</b>' }, // reserved words
12
- { input : /([\(\){}])/g, output : '<u>$1</u>' }, // special chars
13
- { input : /#(.*?)(<br>|<\/P>)/g, output : '<i>#$1</i>$2' } // comments
14
- ];
15
-
16
- Language.snippets = []
17
-
18
- Language.complete = [
19
- { input : '\'',output : '\'$0\'' },
20
- { input : '"', output : '"$0"' },
21
- { input : '(', output : '\($0\)' },
22
- { input : '[', output : '\[$0\]' },
23
- { input : '{', output : '{\n\t$0\n}' }
24
- ]
25
-
26
- Language.shortcuts = []
@@ -1,10 +0,0 @@
1
- /*
2
- * CodePress color styles for SQL syntax highlighting
3
- * By Merlin Moncure
4
- */
5
-
6
- b {color:#0000FF;font-style:normal;font-weight:bold;} /* reserved words */
7
- u {color:#FF0000;font-style:normal;} /* types */
8
- a {color:#CD6600;font-style:normal;font-weight:bold;} /* commands */
9
- i, i b, i u, i a, i s {color:#A9A9A9;font-weight:normal;font-style:italic;} /* comments */
10
- s, s b, s u, s a, s i {color:#2A00FF;font-weight:normal;} /* strings */
@@ -1,30 +0,0 @@
1
- /*
2
- * CodePress regular expressions for SQL syntax highlighting
3
- * By Merlin Moncure
4
- */
5
-
6
- // SQL
7
- Language.syntax = [
8
- { input : /\'(.*?)(\')/g, output : '<s>\'$1$2</s>' }, // strings single quote
9
- { input : /\b(add|after|aggregate|alias|all|and|as|authorization|between|by|cascade|cache|cache|called|case|check|column|comment|constraint|createdb|createuser|cycle|database|default|deferrable|deferred|diagnostics|distinct|domain|each|else|elseif|elsif|encrypted|except|exception|for|foreign|from|from|full|function|get|group|having|if|immediate|immutable|in|increment|initially|increment|index|inherits|inner|input|intersect|into|invoker|is|join|key|language|left|like|limit|local|loop|match|maxvalue|minvalue|natural|nextval|no|nocreatedb|nocreateuser|not|null|of|offset|oids|on|only|operator|or|order|outer|owner|partial|password|perform|plpgsql|primary|record|references|replace|restrict|return|returns|right|row|rule|schema|security|sequence|session|sql|stable|statistics|table|temp|temporary|then|time|to|transaction|trigger|type|unencrypted|union|unique|user|using|valid|value|values|view|volatile|when|where|with|without|zone)\b/gi, output : '<b>$1</b>' }, // reserved words
10
- { input : /\b(bigint|bigserial|bit|boolean|box|bytea|char|character|cidr|circle|date|decimal|double|float4|float8|inet|int2|int4|int8|integer|interval|line|lseg|macaddr|money|numeric|oid|path|point|polygon|precision|real|refcursor|serial|serial4|serial8|smallint|text|timestamp|varbit|varchar)\b/gi, output : '<u>$1</u>' }, // types
11
- { input : /\b(abort|alter|analyze|begin|checkpoint|close|cluster|comment|commit|copy|create|deallocate|declare|delete|drop|end|execute|explain|fetch|grant|insert|listen|load|lock|move|notify|prepare|reindex|reset|restart|revoke|rollback|select|set|show|start|truncate|unlisten|update)\b/gi, output : '<a>$1</a>' }, // commands
12
- { input : /([^:]|^)\-\-(.*?)(<br|<\/P)/g, output: '$1<i>--$2</i>$3' } // comments //
13
- ]
14
-
15
- Language.snippets = [
16
- { input : 'select', output : 'select $0 from where ' }
17
- ]
18
-
19
- Language.complete = [
20
- { input : '\'', output : '\'$0\'' },
21
- { input : '"', output : '"$0"' },
22
- { input : '(', output : '\($0\)' },
23
- { input : '[', output : '\[$0\]' },
24
- { input : '{', output : '{\n\t$0\n}' }
25
- ]
26
-
27
- Language.shortcuts = []
28
-
29
-
30
-
@@ -1,5 +0,0 @@
1
- /*
2
- * CodePress color styles for Text syntax highlighting
3
- */
4
-
5
- /* do nothing as expected */
@@ -1,9 +0,0 @@
1
- /*
2
- * CodePress regular expressions for Text syntax highlighting
3
- */
4
-
5
- // plain text
6
- Language.syntax = []
7
- Language.snippets = []
8
- Language.complete = []
9
- Language.shortcuts = []
@@ -1,71 +0,0 @@
1
- /*
2
- * CodePress color styles for ASP-VB syntax highlighting
3
- * By Martin D. Kirk
4
- */
5
-
6
- /* tags */
7
- b {
8
- color:#000080;
9
- }
10
- /* comments */
11
- big, big b, big em, big ins, big s, strong i, strong i b, strong i s, strong i u, strong i a, strong i a u, strong i s u {
12
- color:gray;
13
- font-weight:normal;
14
- }
15
- /* ASP comments */
16
- strong dfn, strong dfn a,strong dfn var, strong dfn a u, strong dfn u{
17
- color:gray;
18
- font-weight:normal;
19
- }
20
- /* attributes */
21
- s, s b, span s u, span s cite, strong span s {
22
- color:#5656fa ;
23
- font-weight:normal;
24
- }
25
- /* strings */
26
- strong s,strong s b, strong s u, strong s cite {
27
- color:#009900;
28
- font-weight:normal;
29
- }
30
- strong ins{
31
- color:#000000;
32
- font-weight:bold;
33
- }
34
- /* Syntax */
35
- strong a, strong a u {
36
- color:#0000FF;
37
- font-weight:;
38
- }
39
- /* Native Keywords */
40
- strong u {
41
- color:#990099;
42
- font-weight:bold;
43
- }
44
- /* Numbers */
45
- strong var{
46
- color:#FF0000;
47
- }
48
- /* ASP Language */
49
- span{
50
- color:#990000;
51
- font-weight:bold;
52
- }
53
- strong i,strong a i, strong u i {
54
- color:#009999;
55
- }
56
- /* style */
57
- em {
58
- color:#800080;
59
- font-style:normal;
60
- }
61
- /* script */
62
- ins {
63
- color:#800000;
64
- font-weight:bold;
65
- }
66
-
67
- /* <?php and ?> */
68
- cite, s cite {
69
- color:red;
70
- font-weight:bold;
71
- }