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.

asp.php 5.9KB

11 years ago
11 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. <?php
  2. /*************************************************************************************
  3. * asp.php
  4. * --------
  5. * Author: Amit Gupta (http://blog.igeek.info/)
  6. * Copyright: (c) 2004 Amit Gupta (http://blog.igeek.info/), Nigel McNie (http://qbnz.com/highlighter)
  7. * Release Version: 1.0.8.11
  8. * Date Started: 2004/08/13
  9. *
  10. * ASP language file for GeSHi.
  11. *
  12. * CHANGES
  13. * -------
  14. * 2005/12/30 (1.0.3)
  15. * - Strings only delimited by ", comments by '
  16. * 2004/11/27 (1.0.2)
  17. * - Added support for multiple object splitters
  18. * 2004/10/27 (1.0.1)
  19. * - Added support for URLs
  20. * 2004/08/13 (1.0.0)
  21. * - First Release
  22. *
  23. * TODO (updated 2004/11/27)
  24. * -------------------------
  25. * * Include all the functions, keywords etc that I have missed
  26. *
  27. *************************************************************************************
  28. *
  29. * This file is part of GeSHi.
  30. *
  31. * GeSHi is free software; you can redistribute it and/or modify
  32. * it under the terms of the GNU General Public License as published by
  33. * the Free Software Foundation; either version 2 of the License, or
  34. * (at your option) any later version.
  35. *
  36. * GeSHi is distributed in the hope that it will be useful,
  37. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  38. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  39. * GNU General Public License for more details.
  40. *
  41. * You should have received a copy of the GNU General Public License
  42. * along with GeSHi; if not, write to the Free Software
  43. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  44. *
  45. ************************************************************************************/
  46. $language_data = array (
  47. 'LANG_NAME' => 'ASP',
  48. 'COMMENT_SINGLE' => array(1 => "'", 2 => '//'),
  49. 'COMMENT_MULTI' => array('/*' => '*/'),
  50. 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  51. 'QUOTEMARKS' => array('"'),
  52. 'ESCAPE_CHAR' => '',
  53. 'KEYWORDS' => array(
  54. 1 => array(
  55. 'include', 'file', 'Const', 'Dim', 'Option', 'Explicit', 'Implicit', 'Set', 'Select', 'ReDim', 'Preserve',
  56. 'ByVal', 'ByRef', 'End', 'Private', 'Public', 'If', 'Then', 'Else', 'ElseIf', 'Case', 'With', 'NOT',
  57. 'While', 'Wend', 'For', 'Loop', 'Do', 'Request', 'Response', 'Server', 'ADODB', 'Session', 'Application',
  58. 'Each', 'In', 'Get', 'Next', 'INT', 'CINT', 'CBOOL', 'CDATE', 'CBYTE', 'CCUR', 'CDBL', 'CLNG', 'CSNG',
  59. 'CSTR', 'Fix', 'Is', 'Sgn', 'String', 'Boolean', 'Currency', 'Me', 'Single', 'Long', 'Integer', 'Byte',
  60. 'Variant', 'Double', 'To', 'Let', 'Xor', 'Resume', 'On', 'Error', 'Imp', 'GoTo', 'Call', 'Global'
  61. ),
  62. 2 => array(
  63. 'Null', 'Nothing', 'And',
  64. 'False',
  65. 'True', 'var', 'Or', 'BOF', 'EOF', 'xor',
  66. 'Function', 'Class', 'New', 'Sub'
  67. ),
  68. 3 => array(
  69. 'CreateObject', 'Write', 'Redirect', 'Cookies', 'BinaryRead', 'ClientCertificate', 'Form', 'QueryString',
  70. 'ServerVariables', 'TotalBytes', 'AddHeader', 'AppendToLog', 'BinaryWrite', 'Buffer', 'CacheControl',
  71. 'Charset', 'Clear', 'ContentType', 'End()', 'Expires', 'ExpiresAbsolute', 'Flush()', 'IsClientConnected',
  72. 'PICS', 'Status', 'Connection', 'Recordset', 'Execute', 'Abandon', 'Lock', 'UnLock', 'Command', 'Fields',
  73. 'Properties', 'Property', 'Send', 'Replace', 'InStr', 'TRIM', 'NOW', 'Day', 'Month', 'Hour', 'Minute', 'Second',
  74. 'Year', 'MonthName', 'LCase', 'UCase', 'Abs', 'Array', 'As', 'LEN', 'MoveFirst', 'MoveLast', 'MovePrevious',
  75. 'MoveNext', 'LBound', 'UBound', 'Transfer', 'Open', 'Close', 'MapPath', 'FileExists', 'OpenTextFile', 'ReadAll'
  76. )
  77. ),
  78. 'SYMBOLS' => array(
  79. 1 => array(
  80. '<%', '%>'
  81. ),
  82. 0 => array(
  83. '(', ')', '[', ']', '!', '@', '%', '&', '*', '|', '/', '<', '>',
  84. ';', ':', '?', '='),
  85. ),
  86. 'CASE_SENSITIVE' => array(
  87. GESHI_COMMENTS => false,
  88. 1 => false,
  89. 2 => false,
  90. 3 => false,
  91. ),
  92. 'STYLES' => array(
  93. 'KEYWORDS' => array(
  94. 1 => 'color: #990099; font-weight: bold;',
  95. 2 => 'color: #0000ff; font-weight: bold;',
  96. 3 => 'color: #330066;'
  97. ),
  98. 'COMMENTS' => array(
  99. 1 => 'color: #008000;',
  100. 2 => 'color: #ff6600;',
  101. 'MULTI' => 'color: #008000;'
  102. ),
  103. 'ESCAPE_CHAR' => array(
  104. 0 => 'color: #000099; font-weight: bold;'
  105. ),
  106. 'BRACKETS' => array(
  107. 0 => 'color: #006600; font-weight:bold;'
  108. ),
  109. 'STRINGS' => array(
  110. 0 => 'color: #cc0000;'
  111. ),
  112. 'NUMBERS' => array(
  113. 0 => 'color: #800000;'
  114. ),
  115. 'METHODS' => array(
  116. 1 => 'color: #9900cc;'
  117. ),
  118. 'SYMBOLS' => array(
  119. 0 => 'color: #006600; font-weight: bold;',
  120. 1 => 'color: #000000; font-weight: bold;'
  121. ),
  122. 'REGEXPS' => array(
  123. ),
  124. 'SCRIPT' => array(
  125. 0 => '',
  126. 1 => '',
  127. 2 => '',
  128. 3 => ''
  129. )
  130. ),
  131. 'URLS' => array(
  132. 1 => '',
  133. 2 => '',
  134. 3 => ''
  135. ),
  136. 'OOLANG' => true,
  137. 'OBJECT_SPLITTERS' => array(
  138. 1 => '.'
  139. ),
  140. 'REGEXPS' => array(
  141. ),
  142. 'STRICT_MODE_APPLIES' => GESHI_MAYBE,
  143. 'SCRIPT_DELIMITERS' => array(
  144. 0 => array(
  145. '<%' => '%>'
  146. ),
  147. 1 => array(
  148. '<script language="vbscript" runat="server">' => '</script>'
  149. ),
  150. 2 => array(
  151. '<script language="javascript" runat="server">' => '</script>'
  152. ),
  153. 3 => "/(?P<start><%=?)(?:\"[^\"]*?\"|\/\*(?!\*\/).*?\*\/|.)*?(?P<end>%>|\Z)/sm"
  154. ),
  155. 'HIGHLIGHT_STRICT_BLOCK' => array(
  156. 0 => true,
  157. 1 => true,
  158. 2 => true,
  159. 3 => true
  160. )
  161. );
  162. ?>