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.

129 lines
3.8KB

  1. <?php
  2. /*************************************************************************************
  3. * ini.php
  4. * --------
  5. * Author: deguix (cevo_deguix@yahoo.com.br)
  6. * Copyright: (c) 2005 deguix
  7. * Release Version: 1.0.8.10
  8. * Date Started: 2005/03/27
  9. *
  10. * INI language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2008/05/23 (1.0.7.22)
  15. * - Added description of extra language features (SF#1970248)
  16. * 2005/12/28 (1.0.1)
  17. * - Removed unnecessary keyword style index
  18. * - Added support for " strings
  19. * 2005/04/05 (1.0.0)
  20. * - First Release
  21. *
  22. * TODO (updated 2005/03/27)
  23. * -------------------------
  24. *
  25. *************************************************************************************
  26. *
  27. * This file is part of GeSHi.
  28. *
  29. * GeSHi is free software; you can redistribute it and/or modify
  30. * it under the terms of the GNU General Public License as published by
  31. * the Free Software Foundation; either version 2 of the License, or
  32. * (at your option) any later version.
  33. *
  34. * GeSHi is distributed in the hope that it will be useful,
  35. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  36. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  37. * GNU General Public License for more details.
  38. *
  39. * You should have received a copy of the GNU General Public License
  40. * along with GeSHi; if not, write to the Free Software
  41. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  42. *
  43. ************************************************************************************/
  44. $language_data = array (
  45. 'LANG_NAME' => 'INI',
  46. 'COMMENT_SINGLE' => array(0 => ';'),
  47. 'COMMENT_MULTI' => array(),
  48. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  49. 'QUOTEMARKS' => array('"'),
  50. 'ESCAPE_CHAR' => '',
  51. 'KEYWORDS' => array(
  52. ),
  53. 'SYMBOLS' => array(
  54. '[', ']', '='
  55. ),
  56. 'CASE_SENSITIVE' => array(
  57. GESHI_COMMENTS => false
  58. ),
  59. 'STYLES' => array(
  60. 'KEYWORDS' => array(
  61. ),
  62. 'COMMENTS' => array(
  63. 0 => 'color: #666666; font-style: italic;'
  64. ),
  65. 'ESCAPE_CHAR' => array(
  66. 0 => ''
  67. ),
  68. 'BRACKETS' => array(
  69. 0 => ''
  70. ),
  71. 'STRINGS' => array(
  72. 0 => 'color: #933;'
  73. ),
  74. 'NUMBERS' => array(
  75. 0 => ''
  76. ),
  77. 'METHODS' => array(
  78. 0 => ''
  79. ),
  80. 'SYMBOLS' => array(
  81. 0 => 'color: #000066; font-weight:bold;'
  82. ),
  83. 'REGEXPS' => array(
  84. 0 => 'color: #000066; font-weight:bold;',
  85. 1 => 'color: #000099;',
  86. 2 => 'color: #660066;'
  87. ),
  88. 'SCRIPT' => array(
  89. 0 => ''
  90. )
  91. ),
  92. 'URLS' => array(
  93. ),
  94. 'OOLANG' => false,
  95. 'OBJECT_SPLITTERS' => array(
  96. ),
  97. 'REGEXPS' => array(
  98. //Section names
  99. 0 => '\[.+\]',
  100. //Entry names
  101. 1 => array(
  102. GESHI_SEARCH => '^(\s*)([a-zA-Z0-9_\-]+)(\s*=)',
  103. GESHI_REPLACE => '\\2',
  104. GESHI_MODIFIERS => 'm',
  105. GESHI_BEFORE => '\\1',
  106. GESHI_AFTER => '\\3'
  107. ),
  108. //Entry values
  109. 2 => array(
  110. // Evil hackery to get around GeSHi bug: <>" and ; are added so <span>s can be matched
  111. // Explicit match on variable names because if a comment is before the first < of the span
  112. // gets chewed up...
  113. GESHI_SEARCH => '([<>";a-zA-Z0-9_]+\s*)=(.*)',
  114. GESHI_REPLACE => '\\2',
  115. GESHI_MODIFIERS => '',
  116. GESHI_BEFORE => '\\1=',
  117. GESHI_AFTER => ''
  118. )
  119. ),
  120. 'STRICT_MODE_APPLIES' => GESHI_NEVER,
  121. 'SCRIPT_DELIMITERS' => array(
  122. ),
  123. 'HIGHLIGHT_STRICT_BLOCK' => array(
  124. )
  125. );
  126. ?>