A tumblelog CMS built on AJAX, PHP and MySQL.

mirc.php 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <?php
  2. /*************************************************************************************
  3. * mirc.php
  4. * -----
  5. * Author: Alberto 'Birckin' de Areba (Birckin@hotmail.com)
  6. * Copyright: (c) 2006 Alberto de Areba
  7. * Release Version: 1.0.7.21
  8. * Date Started: 2006/05/29
  9. *
  10. * mIRC Scripting language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2006/05/29 (1.0.0)
  15. * - First Release
  16. *
  17. *************************************************************************************
  18. *
  19. * This file is part of GeSHi.
  20. *
  21. * GeSHi is free software; you can redistribute it and/or modify
  22. * it under the terms of the GNU General Public License as published by
  23. * the Free Software Foundation; either version 2 of the License, or
  24. * (at your option) any later version.
  25. *
  26. * GeSHi is distributed in the hope that it will be useful,
  27. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  28. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  29. * GNU General Public License for more details.
  30. *
  31. * You should have received a copy of the GNU General Public License
  32. * along with GeSHi; if not, write to the Free Software
  33. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  34. *
  35. ************************************************************************************/
  36. $language_data = array (
  37. 'LANG_NAME' => 'mIRC Scripting',
  38. 'COMMENT_SINGLE' => array(1 => ';'),
  39. 'COMMENT_MULTI' => array(),
  40. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  41. 'QUOTEMARKS' => array(),
  42. 'ESCAPE_CHAR' => '',
  43. 'KEYWORDS' => array(
  44. 1 => array(
  45. 'alias', 'menu', 'dialog',
  46. ),
  47. 2 => array(
  48. 'if', 'elseif', 'else', 'while', 'return', 'goto',
  49. ),
  50. 3 => array(
  51. 'action','ajinvite','alias','amsg','ame','anick','aop','auser',
  52. 'avoice','auto','autojoin','away','background','ban','beep',
  53. 'channel','clear','clearall','clipboard','close','closemsg','color',
  54. 'copy','creq','ctcp','ctcpreply','ctcps','dcc','dde','ddeserver',
  55. 'debug','describe','disable','disconnect','dlevel','dll','dns',
  56. 'dqwindow','ebeeps','echo','editbox','emailaddr','enable','events',
  57. 'exit','filter','findtext','finger','flash','flood','flush',
  58. 'flushini', 'font','fsend','fserve','fullname','ghide','gload',
  59. 'gmove','gopts','gplay','gpoint','gqreq','groups','gshow','gsize',
  60. 'gstop','gtalk','gunload','guser','help','hop','ignore','invite',
  61. 'join','kick','linesep','links','list','load','loadbuf','localinfo',
  62. 'log','me','mdi','mkdir','mnick','mode','msg','names','nick','noop',
  63. 'notice','notify','omsg','onotice','part','partall','pdcc',
  64. 'perform','ping','play','pop','protect','pvoice','qmsg','qme',
  65. 'query','queryrn','quit','raw','remini','remote','remove','rename',
  66. 'enwin','resetidle','rlevel','rmdir','run','ruser','save','savebuf',
  67. 'saveini','say','server','showmirc','sline','sound','speak','splay',
  68. 'sreq','strip','time',
  69. //'timer[N/name]', //Handled as a regular expression below ...
  70. 'timers','timestamp','titlebar','tnick','tokenize','topic','ulist',
  71. 'unload','updatenl','url','uwho','window','winhelp','write',
  72. 'writeini','who','whois','whowas'
  73. )
  74. ),
  75. 'SYMBOLS' => array(
  76. '(', ')', '{', '}', '[', ']',
  77. ),
  78. 'CASE_SENSITIVE' => array(
  79. GESHI_COMMENTS => true,
  80. 1 => false,
  81. 2 => false,
  82. 3 => false,
  83. ),
  84. 'STYLES' => array(
  85. 'KEYWORDS' => array(
  86. 1 => 'color: #994444;',
  87. 2 => 'color: #000000; font-weight: bold;',
  88. 3 => 'color: #990000; font-weight: bold;',
  89. ),
  90. 'COMMENTS' => array(
  91. 1 => 'color: #808080; font-style: italic;',
  92. ),
  93. 'ESCAPE_CHAR' => array(
  94. ),
  95. 'BRACKETS' => array(
  96. 0 => 'color: #FF0000;',
  97. ),
  98. 'STRINGS' => array(
  99. ),
  100. 'NUMBERS' => array(
  101. 0 => '',
  102. ),
  103. 'METHODS' => array(
  104. ),
  105. 'SYMBOLS' => array(
  106. 0 => 'color: #FF0000;',
  107. ),
  108. 'REGEXPS' => array(
  109. 0 => 'color: #000099;',
  110. 1 => 'color: #990000;',
  111. 2 => 'color: #888800;',
  112. 3 => 'color: #888800;',
  113. 4 => 'color: #000099;',
  114. 5 => 'color: #000099;',
  115. 6 => 'color: #990000; font-weight: bold;',
  116. ),
  117. 'SCRIPT' => array(
  118. )
  119. ),
  120. 'URLS' => array(
  121. 1 => '',
  122. 2 => '',
  123. 3 => 'http://www.mirc.com/{FNAME}',
  124. 4 => ''
  125. ),
  126. 'OOLANG' => false,
  127. 'OBJECT_SPLITTERS' => array(
  128. ),
  129. 'REGEXPS' => array(
  130. 0 => '\$[a-zA-Z0-9]+',
  131. 1 => '(%|&amp;)[a-zA-Z0-9]+',
  132. 2 => '(#|@)[a-zA-Z0-9]+',
  133. 3 => '-[a-z\d]+',
  134. 4 => '(on|ctcp) (!|@|&amp;)?(\d|\*):[a-zA-Z]+:',
  135. /*4 => array(
  136. GESHI_SEARCH => '((on|ctcp) (!|@|&)?(\d|\*):(Action|Active|Agent|AppActive|Ban|Chat|Close|Connect|Ctcp|CtcpReply|DccServer|DeHelp|DeOp|DeVoice|Dialog|Dns|Error|Exit|FileRcvd|FileSent|GetFail|Help|Hotlink|Input|Invite|Join|KeyDown|KeyUp|Kick|Load|Logon|MidiEnd|Mode|Mp3End|Nick|NoSound|Notice|Notify|Op|Open|Part|Ping|Pong|PlayEnd|Quit|Raw|RawMode|SendFail|Serv|ServerMode|ServerOp|Signal|Snotice|Start|Text|Topic|UnBan|Unload|Unotify|User|Mode|Voice|Wallops|WaveEnd):)',
  137. GESHI_REPLACE => '\\1',
  138. GESHI_MODIFIERS => 'i',
  139. GESHI_BEFORE => '',
  140. GESHI_AFTER => ''
  141. ),*/
  142. 5 => 'raw (\d|\*):',
  143. 6 => '/timer(?!s\b)[0-9a-zA-Z_]+',
  144. ),
  145. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  146. 'SCRIPT_DELIMITERS' => array(
  147. ),
  148. 'HIGHLIGHT_STRICT_BLOCK' => array(
  149. )
  150. );
  151. if (isset($this) && is_a($this, 'GeSHi')) {
  152. $this->set_numbers_highlighting(false);
  153. }
  154. ?>