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.

mxml.php 4.1KB

11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. <?php
  2. /*************************************************************************************
  3. * mxml.php
  4. * -------
  5. * Author: David Spurr
  6. * Copyright: (c) 2007 David Spurr (http://www.defusion.org.uk/)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2007/10/04
  9. *
  10. * MXML language file for GeSHi. Based on the XML file by Nigel McNie
  11. *
  12. * CHANGES
  13. * -------
  14. * 2007/10/04 (1.0.7.22)
  15. * - First Release
  16. *
  17. * TODO
  18. * ----
  19. *
  20. *************************************************************************************
  21. *
  22. * This file is part of GeSHi.
  23. *
  24. * GeSHi is free software; you can redistribute it and/or modify
  25. * it under the terms of the GNU General Public License as published by
  26. * the Free Software Foundation; either version 2 of the License, or
  27. * (at your option) any later version.
  28. *
  29. * GeSHi is distributed in the hope that it will be useful,
  30. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  31. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  32. * GNU General Public License for more details.
  33. *
  34. * You should have received a copy of the GNU General Public License
  35. * along with GeSHi; if not, write to the Free Software
  36. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  37. *
  38. ************************************************************************************/
  39. $language_data = array (
  40. 'LANG_NAME' => 'MXML',
  41. 'COMMENT_SINGLE' => array(),
  42. 'COMMENT_MULTI' => array('<!--' => '-->'),
  43. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  44. 'QUOTEMARKS' => array("'", '"'),
  45. 'ESCAPE_CHAR' => '',
  46. 'KEYWORDS' => array(
  47. ),
  48. 'SYMBOLS' => array(
  49. ),
  50. 'CASE_SENSITIVE' => array(
  51. GESHI_COMMENTS => false,
  52. ),
  53. 'STYLES' => array(
  54. 'KEYWORDS' => array(
  55. ),
  56. 'COMMENTS' => array(
  57. 'MULTI' => 'color: #808080; font-style: italic;'
  58. ),
  59. 'ESCAPE_CHAR' => array(
  60. 0 => 'color: #000099; font-weight: bold;'
  61. ),
  62. 'BRACKETS' => array(
  63. 0 => 'color: #66cc66;'
  64. ),
  65. 'STRINGS' => array(
  66. 0 => 'color: #ff0000;'
  67. ),
  68. 'NUMBERS' => array(
  69. 0 => 'color: #cc66cc;'
  70. ),
  71. 'METHODS' => array(
  72. ),
  73. 'SYMBOLS' => array(
  74. 0 => 'color: #66cc66;'
  75. ),
  76. 'SCRIPT' => array(
  77. 0 => 'color: #00bbdd;',
  78. 1 => 'color: #ddbb00;',
  79. 2 => 'color: #339933;',
  80. 3 => 'color: #000000;'
  81. ),
  82. 'REGEXPS' => array(
  83. 0 => 'font-weight: bold; color: black;',
  84. 1 => 'color: #7400FF;',
  85. 2 => 'color: #7400FF;'
  86. )
  87. ),
  88. 'URLS' => array(
  89. ),
  90. 'OOLANG' => false,
  91. 'OBJECT_SPLITTERS' => array(
  92. ),
  93. 'REGEXPS' => array(
  94. // xml declaration
  95. 0 => array(
  96. GESHI_SEARCH => '(&lt;[\/?|(\?xml)]?[a-z0-9_\-:]*(\?&gt;))',
  97. GESHI_REPLACE => '\\1',
  98. GESHI_MODIFIERS => 'i',
  99. GESHI_BEFORE => '',
  100. GESHI_AFTER => ''
  101. ),
  102. // opening tags
  103. 1 => array(
  104. GESHI_SEARCH => '(&lt;\/?[a-z]+:[a-z]+)',
  105. GESHI_REPLACE => '\\1',
  106. GESHI_MODIFIERS => 'i',
  107. GESHI_BEFORE => '',
  108. GESHI_AFTER => ''
  109. ),
  110. // closing tags
  111. 2 => array(
  112. GESHI_SEARCH => '(\/?&gt;)',
  113. GESHI_REPLACE => '\\1',
  114. GESHI_MODIFIERS => 'i',
  115. GESHI_BEFORE => '',
  116. GESHI_AFTER => ''
  117. )
  118. ),
  119. 'STRICT_MODE_APPLIES' => GESHI_ALWAYS,
  120. 'SCRIPT_DELIMITERS' => array(
  121. 0 => array(
  122. '<!DOCTYPE' => '>'
  123. ),
  124. 1 => array(
  125. '&' => ';'
  126. ),
  127. 2 => array(
  128. //'<![CDATA[' => ']]>'
  129. '<mx:Script>' => '</mx:Script>'
  130. ),
  131. 3 => array(
  132. '<' => '>'
  133. )
  134. ),
  135. 'HIGHLIGHT_STRICT_BLOCK' => array(
  136. 0 => false,
  137. 1 => false,
  138. 2 => false,
  139. 3 => true
  140. ),
  141. 'TAB_WIDTH' => 4
  142. );
  143. ?>