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.

freeswitch.php 5.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. <?php
  2. /*************************************************************************************
  3. * freeswitch.php
  4. * --------
  5. * Author: James Rose (james.gs@stubbornroses.com)
  6. * Copyright: (c) 2006 Christian Lescuyer http://xtian.goelette.info
  7. * Release Version: 1.0.8.11n/a
  8. * Date Started: 2011/11/18
  9. *
  10. * FreeSWITCH language file for GeSHi.
  11. *
  12. * This file is based on robots.php
  13. *
  14. * 2011/11/18 (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' => 'FreeSWITCH',
  38. 'COMMENT_SINGLE' => array(1 => '#'),
  39. 'COMMENT_MULTI' => array(),
  40. 'COMMENT_REGEXP' => array(1 => "/^Comment:.*?$/m"),
  41. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  42. 'QUOTEMARKS' => array(),
  43. 'ESCAPE_CHAR' => '',
  44. 'KEYWORDS' => array(
  45. // 1 => array(
  46. // 'Disallow', 'Request-rate', 'Robot-version',
  47. // 'Sitemap', 'User-agent', 'Visit-time'
  48. // )
  49. ),
  50. 'SYMBOLS' => array(
  51. // ':'
  52. ),
  53. 'CASE_SENSITIVE' => array(
  54. GESHI_COMMENTS => false
  55. ),
  56. //order is important. regexes will overwrite most things....
  57. 'STYLES' => array(
  58. 'KEYWORDS' => array(
  59. // 1 => 'color: #FF0000; font-weight: bold;',//red
  60. ),
  61. 'COMMENTS' => array(
  62. 1 => 'color: #808080; font-style: italic;',
  63. ),
  64. 'ESCAPE_CHAR' => array(
  65. 0 => 'color: #000099; font-weight: bold;'
  66. ),
  67. 'BRACKETS' => array(
  68. // 0 => 'color: #66cc66;'
  69. ),
  70. 'STRINGS' => array(
  71. // 0 => 'color: #ff0000;'
  72. ),
  73. 'NUMBERS' => array(
  74. // 0 => 'color: #cc66cc;'
  75. ),
  76. 'METHODS' => array(
  77. ),
  78. 'SYMBOLS' => array(
  79. // 0 => 'color: #66cc66;'
  80. ),
  81. 'REGEXPS' => array(
  82. 0 => 'color: firebrick; font-weight: bold;',
  83. 1 => 'color: cornflowerblue; font-weight: bold;',
  84. 2 => 'color: goldenrod; font-weight: bold;',
  85. 3 => 'color: green; font-weight: bold;',
  86. 4 => 'color: dimgrey; font-style: italic;',
  87. 5 => 'color: green; font-weight: bold;',
  88. 6 => 'color: firebrick; font-weight: bold;',
  89. 7 => 'color: indigo; font-weight: italic;'
  90. ),
  91. 'SCRIPT' => array(
  92. )
  93. ),
  94. 'URLS' => array(
  95. // 1 => 'http://www.robotstxt.org/wc/norobots.html'
  96. ),
  97. 'OOLANG' => false,
  98. 'OBJECT_SPLITTERS' => array(
  99. ),
  100. 'REGEXPS' => array(
  101. 0 => array(
  102. GESHI_SEARCH => '(^.*ERROR.*)',
  103. GESHI_REPLACE => '\\1',
  104. GESHI_MODIFIERS => 'im',
  105. GESHI_BEFORE => '',
  106. GESHI_AFTER => ''
  107. ),
  108. 1 => array(
  109. GESHI_SEARCH => '(^.*NOTICE.*)',
  110. GESHI_REPLACE => '\\1',
  111. GESHI_MODIFIERS => 'im',
  112. GESHI_BEFORE => '',
  113. GESHI_AFTER => ''
  114. ),
  115. 2 => array(
  116. GESHI_SEARCH => '(^.*DEBUG.*)',
  117. GESHI_REPLACE => '\\1',
  118. GESHI_MODIFIERS => 'm',
  119. GESHI_BEFORE => '',
  120. GESHI_AFTER => ''
  121. ),
  122. 3 => array(
  123. GESHI_SEARCH => '(^.*INFO.*|.*info\(.*|^Channel.*|^Caller.*|^variable.*)',
  124. GESHI_REPLACE => '\\1',
  125. GESHI_MODIFIERS => 'm',
  126. GESHI_BEFORE => '',
  127. GESHI_AFTER => ''
  128. ),
  129. 4 => array(
  130. GESHI_SEARCH => '(^Dialplan.*)',
  131. GESHI_REPLACE => '\\1',
  132. GESHI_MODIFIERS => 'im',
  133. GESHI_BEFORE => '',
  134. GESHI_AFTER => ''
  135. ),
  136. 5 => array(
  137. GESHI_SEARCH => '(Regex\ \(PASS\))',
  138. GESHI_REPLACE => '\\1',
  139. GESHI_MODIFIERS => '',
  140. GESHI_BEFORE => '',
  141. GESHI_AFTER => ''
  142. ),
  143. 6 => array(
  144. GESHI_SEARCH => '(Regex\ \(FAIL\))',
  145. GESHI_REPLACE => '\\1',
  146. GESHI_MODIFIERS => '',
  147. GESHI_BEFORE => '',
  148. GESHI_AFTER => ''
  149. ),
  150. 7 => array(
  151. GESHI_SEARCH => '(\d{7,15})',
  152. GESHI_REPLACE => '\\1',
  153. GESHI_MODIFIERS => '',
  154. GESHI_BEFORE => '',
  155. GESHI_AFTER => ''
  156. )
  157. ),
  158. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  159. 'SCRIPT_DELIMITERS' => array(
  160. ),
  161. 'HIGHLIGHT_STRICT_BLOCK' => array(
  162. )
  163. );
  164. ?>