KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

354 lines
9.3KB

  1. <?php
  2. /*************************************************************************************
  3. * teraterm.php
  4. * --------
  5. * Author: Boris Maisuradze (boris at logmett.com)
  6. * Copyright: (c) 2008 Boris Maisuradze (http://logmett.com)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2008/09/26
  9. *
  10. * Tera Term Macro language file for GeSHi.
  11. *
  12. *
  13. * This version of teraterm.php was created for Tera Term 4.62 and LogMeTT 2.9.4.
  14. * Newer versions of these application can contain additional Macro commands
  15. * and/or keywords that are not listed here. The latest release of teraterm.php
  16. * can be downloaded from Download section of LogMeTT.com
  17. *
  18. * CHANGES
  19. * -------
  20. * 2008/09/26 (1.0.0)
  21. * - First Release for Tera Term 4.60 and below.
  22. * 2009/03/22 (1.1.0)
  23. * - First Release for Tera Term 4.62 and below.
  24. * 2009/04/25 (1.1.1)
  25. * - Second Release for Tera Term 4.62 and below.
  26. * 2010/09/12 (1.1.2)
  27. * - Second Release for Tera Term 4.67, LogMeTT 2.97, TTLEditor 1.2.1 and below.
  28. *
  29. * TODO (updated 2010/09/12)
  30. * -------------------------
  31. * *
  32. *
  33. *************************************************************************************
  34. *
  35. * This file is part of GeSHi.
  36. *
  37. * GeSHi is free software; you can redistribute it and/or modify
  38. * it under the terms of the GNU General Public License as published by
  39. * the Free Software Foundation; either version 2 of the License, or
  40. * (at your option) any later version.
  41. *
  42. * GeSHi is distributed in the hope that it will be useful,
  43. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  44. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  45. * GNU General Public License for more details.
  46. *
  47. * You should have received a copy of the GNU General Public License
  48. * along with GeSHi; if not, write to the Free Software
  49. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  50. *
  51. ************************************************************************************/
  52. $language_data = array (
  53. 'LANG_NAME' => 'Tera Term Macro',
  54. 'COMMENT_SINGLE' => array(1 => ';'),
  55. 'COMMENT_MULTI' => array(),
  56. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  57. 'QUOTEMARKS' => array("'", '"'),
  58. 'ESCAPE_CHAR' => '',
  59. 'KEYWORDS' => array(
  60. /* Commands */
  61. 1 => array(
  62. 'Beep',
  63. 'BplusRecv',
  64. 'BplusSend',
  65. 'Break',
  66. 'Call',
  67. 'CallMenu',
  68. 'ChangeDir',
  69. 'ClearScreen',
  70. 'Clipb2Var',
  71. 'ClosesBox',
  72. 'CloseTT',
  73. 'Code2Str',
  74. 'Connect',
  75. 'CRC32',
  76. 'CRC32File',
  77. 'CygConnect',
  78. 'DelPassword',
  79. 'Disconnect',
  80. 'DispStr',
  81. 'Do',
  82. 'Else',
  83. 'ElseIf',
  84. 'EnableKeyb',
  85. 'End',
  86. 'EndIf',
  87. 'EndUntil',
  88. 'EndWhile',
  89. 'Exec',
  90. 'ExecCmnd',
  91. 'Exit',
  92. 'FileClose',
  93. 'FileConcat',
  94. 'FileCopy',
  95. 'FileCreate',
  96. 'FileDelete',
  97. 'FileMarkPtr',
  98. 'FileNameBox',
  99. 'FileOpen',
  100. 'FileRead',
  101. 'FileReadln',
  102. 'FileRename',
  103. 'FileSearch',
  104. 'FileSeek',
  105. 'FileSeekBack',
  106. 'FileStat',
  107. 'FileStrSeek',
  108. 'FileStrSeek2',
  109. 'FileTruncate',
  110. 'FileWrite',
  111. 'FileWriteLn',
  112. 'FindClose',
  113. 'FindFirst',
  114. 'FindNext',
  115. 'FlushRecv',
  116. 'For',
  117. 'GetDate',
  118. 'GetDir',
  119. 'GetEnv',
  120. 'GetHostname',
  121. 'GetPassword',
  122. 'GetTime',
  123. 'GetTitle',
  124. 'GetTTDir',
  125. 'Getver',
  126. 'GoTo',
  127. 'If',
  128. 'IfDefined',
  129. 'Include',
  130. 'InputBox',
  131. 'Int2Str',
  132. 'KmtFinish',
  133. 'KmtGet',
  134. 'KmtRecv',
  135. 'KmtSend',
  136. 'LoadKeymap',
  137. 'LogClose',
  138. 'LogOpen',
  139. 'LogPause',
  140. 'LogStart',
  141. 'LogWrite',
  142. 'Loop',
  143. 'MakePath',
  144. 'MessageBox',
  145. 'MPause',
  146. 'Next',
  147. 'PasswordBox',
  148. 'Pause',
  149. 'QuickVANRecv',
  150. 'QuickVANSend',
  151. 'Random',
  152. 'RecvLn',
  153. 'RestoreSetup',
  154. 'Return',
  155. 'RotateLeft',
  156. 'RotateRight',
  157. 'ScpRecv',
  158. 'ScpSend',
  159. 'Send',
  160. 'SendBreak',
  161. 'SendBroadcast',
  162. 'SendFile',
  163. 'SendKCode',
  164. 'SendLn',
  165. 'SendLnBroadcast',
  166. 'SendMulticast',
  167. 'SetBaud',
  168. 'SetDate',
  169. 'SetDebug',
  170. 'SetDir',
  171. 'SetDlgPos',
  172. 'SetDTR',
  173. 'SetEcho',
  174. 'SetEnv',
  175. 'SetExitCode',
  176. 'SetMulticastName',
  177. 'SetRTS',
  178. 'SetSync',
  179. 'SetTime',
  180. 'SetTitle',
  181. 'Show',
  182. 'ShowTT',
  183. 'SPrintF',
  184. 'SPrintF2',
  185. 'StatusBox',
  186. 'Str2Code',
  187. 'Str2Int',
  188. 'StrCompare',
  189. 'StrConcat',
  190. 'StrCopy',
  191. 'StrInsert',
  192. 'StrJoin',
  193. 'StrLen',
  194. 'StrMatch',
  195. 'StrRemove',
  196. 'StrReplace',
  197. 'StrScan',
  198. 'StrSpecial',
  199. 'StrSplit',
  200. 'StrTrim',
  201. 'TestLink',
  202. 'Then',
  203. 'ToLower',
  204. 'ToUpper',
  205. 'UnLink',
  206. 'Until',
  207. 'Var2Clipb',
  208. 'Wait',
  209. 'Wait4All',
  210. 'WaitEvent',
  211. 'WaitLn',
  212. 'WaitN',
  213. 'WaitRecv',
  214. 'WaitRegEx',
  215. 'While',
  216. 'XmodemRecv',
  217. 'XmodemSend',
  218. 'YesNoBox',
  219. 'YmodemRecv',
  220. 'YmodemSend',
  221. 'ZmodemRecv',
  222. 'ZmodemSend'
  223. ),
  224. /* System Variables */
  225. 2 => array(
  226. 'groupmatchstr1',
  227. 'groupmatchstr2',
  228. 'groupmatchstr3',
  229. 'groupmatchstr4',
  230. 'groupmatchstr5',
  231. 'groupmatchstr6',
  232. 'groupmatchstr7',
  233. 'groupmatchstr8',
  234. 'groupmatchstr9',
  235. 'inputstr',
  236. 'matchstr',
  237. 'mtimeout',
  238. 'param2',
  239. 'param3',
  240. 'param4',
  241. 'param5',
  242. 'param6',
  243. 'param7',
  244. 'param8',
  245. 'param9',
  246. 'result',
  247. 'timeout'
  248. ),
  249. /* LogMeTT Key Words */
  250. 3 => array(
  251. '$[1]',
  252. '$[2]',
  253. '$[3]',
  254. '$[4]',
  255. '$[5]',
  256. '$[6]',
  257. '$[7]',
  258. '$[8]',
  259. '$[9]',
  260. '$branch$',
  261. '$computername$',
  262. '$connection$',
  263. '$email$',
  264. '$logdir$',
  265. '$logfilename$',
  266. '$lttfilename$',
  267. '$mobile$',
  268. '$name$',
  269. '$pager$',
  270. '$parent$',
  271. '$phone$',
  272. '$snippet$',
  273. '$ttdir$',
  274. '$user$',
  275. '$windir$',
  276. ),
  277. /* Keyword Symbols */
  278. 4 => array(
  279. 'and',
  280. 'not',
  281. 'or',
  282. 'xor'
  283. )
  284. ),
  285. 'SYMBOLS' => array(
  286. '(', ')', '[', ']', '{', '}',
  287. '+', '-', '*', '/', '%',
  288. '!', '&', '|', '^',
  289. '<', '>', '=',
  290. '?', ':', ';',
  291. ),
  292. 'CASE_SENSITIVE' => array(
  293. GESHI_COMMENTS => false,
  294. 1 => false,
  295. 2 => false,
  296. 3 => false,
  297. 4 => false
  298. ),
  299. 'STYLES' => array(
  300. 'KEYWORDS' => array(
  301. 1 => 'color: #000080; font-weight: bold!important;',
  302. 2 => 'color: #808000; font-weight: bold;', // System Variables
  303. 3 => 'color: #ff0000; font-weight: bold;', // LogMeTT Key Words
  304. 4 => 'color: #ff00ff; font-weight: bold;' // Keyword Symbols
  305. ),
  306. 'COMMENTS' => array(
  307. 1 => 'color: #008000; font-style: italic;',
  308. ),
  309. 'ESCAPE_CHAR' => array(),
  310. 'BRACKETS' => array(
  311. 0 => 'color: #ff00ff; font-weight: bold;'
  312. ),
  313. 'STRINGS' => array(
  314. 0 => 'color: #800080;'
  315. ),
  316. 'NUMBERS' => array(
  317. 0 => 'color: #008080;'
  318. ),
  319. 'SCRIPT' => array(
  320. ),
  321. 'METHODS' => array(
  322. ),
  323. 'SYMBOLS' => array(
  324. 0 => 'color: #ff00ff; font-weight: bold;'
  325. ),
  326. 'REGEXPS' => array(
  327. 0 => 'color: #0000ff; font-weight: bold;'
  328. )
  329. ),
  330. 'URLS' => array(
  331. 1 => '',
  332. 2 => '',
  333. 3 => '',
  334. 4 => ''
  335. ),
  336. 'OOLANG' => false,
  337. 'OBJECT_SPLITTERS' => array(),
  338. 'REGEXPS' => array(
  339. 0 => array (
  340. GESHI_SEARCH => '(\:[_a-zA-Z][_a-zA-Z0-9]+)',
  341. GESHI_REPLACE => '\\1',
  342. GESHI_MODIFIERS => '',
  343. GESHI_BEFORE => '',
  344. GESHI_AFTER => ''
  345. )
  346. ),
  347. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  348. 'SCRIPT_DELIMITERS' => array(),
  349. 'HIGHLIGHT_STRICT_BLOCK' => array(),
  350. 'TAB_WIDTH' => 4
  351. );
  352. ?>