A tumblelog CMS built on AJAX, PHP and MySQL.

diff.php 5.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <?php
  2. /*************************************************************************************
  3. * diff.php
  4. * --------
  5. * Author: Conny Brunnkvist (conny@fuchsia.se), W. Tasin (tasin@fhm.edu)
  6. * Copyright: (c) 2004 Fuchsia Open Source Solutions (http://www.fuchsia.se/)
  7. * Release Version: 1.0.7.21
  8. * Date Started: 2004/12/29
  9. *
  10. * Diff-output language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2006/02/27
  15. * - changing language file to use matching of start (^) and end ($) (wt)
  16. *
  17. * 2004/12/29 (1.0.0)
  18. * - First Release
  19. *
  20. * TODO (updated 2006/02/27)
  21. * -------------------------
  22. *
  23. *
  24. *************************************************************************************
  25. *
  26. * This file is part of GeSHi.
  27. *
  28. * GeSHi is free software; you can redistribute it and/or modify
  29. * it under the terms of the GNU General Public License as published by
  30. * the Free Software Foundation; either version 2 of the License, or
  31. * (at your option) any later version.
  32. *
  33. * GeSHi is distributed in the hope that it will be useful,
  34. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  35. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  36. * GNU General Public License for more details.
  37. *
  38. * You should have received a copy of the GNU General Public License
  39. * along with GeSHi; if not, write to the Free Software
  40. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  41. *
  42. ************************************************************************************/
  43. $language_data = array(
  44. 'LANG_NAME' => 'Diff',
  45. 'COMMENT_SINGLE' => array(),
  46. 'COMMENT_MULTI' => array(),
  47. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  48. 'QUOTEMARKS' => array(),
  49. 'ESCAPE_CHAR' => ' ',
  50. 'KEYWORDS' => array(
  51. 1 => array(
  52. '\ No newline at end of file'
  53. ),
  54. 2 => array(
  55. '***************' /* This only seems to works in some cases? */
  56. ),
  57. ),
  58. 'SYMBOLS' => array(
  59. ),
  60. 'CASE_SENSITIVE' => array(
  61. 1 => false,
  62. 2 => false
  63. ),
  64. 'STYLES' => array(
  65. 'KEYWORDS' => array(
  66. 1 => 'color: #aaaaaa; font-style: italic;',
  67. 2 => 'color: #dd6611;',
  68. ),
  69. 'COMMENTS' => array(
  70. ),
  71. 'ESCAPE_CHAR' => array(
  72. 0 => ''
  73. ),
  74. 'BRACKETS' => array(
  75. 0 => ''
  76. ),
  77. 'STRINGS' => array(
  78. 0 => ''
  79. ),
  80. 'NUMBERS' => array(
  81. 0 => ''
  82. ),
  83. 'METHODS' => array(
  84. 0 => ''
  85. ),
  86. 'SYMBOLS' => array(
  87. 0 => ''
  88. ),
  89. 'SCRIPT' => array(
  90. 0 => ''
  91. ),
  92. 'REGEXPS' => array(
  93. 0 => 'color: #440088;',
  94. 1 => 'color: #991111;',
  95. 2 => 'color: #00b000;',
  96. 3 => 'color: #888822;',
  97. 4 => 'color: #888822;',
  98. 5 => 'color: #0011dd;',
  99. 6 => 'color: #440088;',
  100. 7 => 'color: #991111;',
  101. 8 => 'color: #00b000;',
  102. 9 => 'color: #888822;',
  103. ),
  104. ),
  105. 'URLS' => array(
  106. ),
  107. 'OOLANG' => false,
  108. 'OBJECT_SPLITTER' => '',
  109. 'REGEXPS' => array(
  110. 0 => "[0-9,]+[acd][0-9,]+",
  111. 1 => array(
  112. GESHI_SEARCH => '^\\&lt;.*$',
  113. GESHI_REPLACE => '\\0',
  114. GESHI_MODIFIERS => 'm',
  115. GESHI_BEFORE => '',
  116. GESHI_AFTER => ''
  117. ),
  118. 2 => array(
  119. GESHI_SEARCH => '^\\&gt;.*$',
  120. GESHI_REPLACE => '\\0',
  121. GESHI_MODIFIERS => 'm',
  122. GESHI_BEFORE => '',
  123. GESHI_AFTER => ''
  124. ),
  125. 3 => array(
  126. GESHI_SEARCH => '^[\\-]{3}\\s.*$',
  127. GESHI_REPLACE => '\\0',
  128. GESHI_MODIFIERS => 'm',
  129. GESHI_BEFORE => '',
  130. GESHI_AFTER => ''
  131. ),
  132. 4 => array(
  133. GESHI_SEARCH => '^(\\+){3}\\s.*$',
  134. GESHI_REPLACE => '\\0',
  135. GESHI_MODIFIERS => 'm',
  136. GESHI_BEFORE => '',
  137. GESHI_AFTER => ''
  138. ),
  139. 5 => array(
  140. GESHI_SEARCH => '^\\!.*$',
  141. GESHI_REPLACE => '\\0',
  142. GESHI_MODIFIERS => 'm',
  143. GESHI_BEFORE => '',
  144. GESHI_AFTER => ''
  145. ),
  146. 6 => array(
  147. GESHI_SEARCH => '^[\\@]{2}.*$',
  148. GESHI_REPLACE => '\\0',
  149. GESHI_MODIFIERS => 'm',
  150. GESHI_BEFORE => '',
  151. GESHI_AFTER => ''
  152. ),
  153. 7 => array(
  154. GESHI_SEARCH => '^\\-.*$',
  155. GESHI_REPLACE => '\\0',
  156. GESHI_MODIFIERS => 'm',
  157. GESHI_BEFORE => '',
  158. GESHI_AFTER => ''
  159. ),
  160. 8 => array(
  161. GESHI_SEARCH => '^\\+.*$',
  162. GESHI_REPLACE => '\\0',
  163. GESHI_MODIFIERS => 'm',
  164. GESHI_BEFORE => '',
  165. GESHI_AFTER => ''
  166. ),
  167. 9 => array(
  168. GESHI_SEARCH => '^(\\*){3}\\s.*$',
  169. GESHI_REPLACE => '\\0',
  170. GESHI_MODIFIERS => 'm',
  171. GESHI_BEFORE => '',
  172. GESHI_AFTER => ''
  173. ),
  174. ),
  175. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  176. 'SCRIPT_DELIMITERS' => array(
  177. ),
  178. 'HIGHLIGHT_STRICT_BLOCK' => array(
  179. )
  180. );