plugins/geshi/geshi/asp.php
changeset 2 9e3258dfae15
parent 0 441963e5b07a
child 3 f3e2bbbd2155
equal deleted inserted replaced
1:c715631f809a 2:9e3258dfae15
     2 /*************************************************************************************
     2 /*************************************************************************************
     3  * asp.php
     3  * asp.php
     4  * --------
     4  * --------
     5  * Author: Amit Gupta (http://blog.igeek.info/)
     5  * Author: Amit Gupta (http://blog.igeek.info/)
     6  * Copyright: (c) 2004 Amit Gupta (http://blog.igeek.info/), Nigel McNie (http://qbnz.com/highlighter)
     6  * Copyright: (c) 2004 Amit Gupta (http://blog.igeek.info/), Nigel McNie (http://qbnz.com/highlighter)
     7  * Release Version: 1.0.7.20
     7  * Release Version: 1.0.8.2
     8  * Date Started: 2004/08/13
     8  * Date Started: 2004/08/13
     9  *
     9  *
    10  * ASP language file for GeSHi.
    10  * ASP language file for GeSHi.
    11  *
    11  *
    12  * CHANGES
    12  * CHANGES
    43  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    43  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    44  *
    44  *
    45  ************************************************************************************/
    45  ************************************************************************************/
    46 
    46 
    47 $language_data = array (
    47 $language_data = array (
    48 	'LANG_NAME' => 'ASP',
    48     'LANG_NAME' => 'ASP',
    49 	'COMMENT_SINGLE' => array(1 => "'", 2 => '//'),
    49     'COMMENT_SINGLE' => array(1 => "'", 2 => '//'),
    50 	'COMMENT_MULTI' => array('/*' => '*/'),
    50     'COMMENT_MULTI' => array('/*' => '*/'),
    51 	'CASE_KEYWORDS' => 0,
    51     'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
    52 	'QUOTEMARKS' => array('"'),
    52     'QUOTEMARKS' => array('"'),
    53 	'ESCAPE_CHAR' => '\\',
    53     'ESCAPE_CHAR' => '',
    54 	'KEYWORDS' => array(
    54     'KEYWORDS' => array(
    55 		1 => array(
    55         1 => array(
    56 			'include', 'file', 'Dim', 'Option', 'Explicit', 'Implicit', 'Set', 'Select', 'ReDim', 'Preserve',
    56             'include', 'file', 'Const', 'Dim', 'Option', 'Explicit', 'Implicit', 'Set', 'Select', 'ReDim', 'Preserve',
    57 			'ByVal', 'ByRef', 'End', 'Private', 'Public', 'If', 'Then', 'Else', 'ElseIf', 'Case', 'With', 'NOT',
    57             'ByVal', 'ByRef', 'End', 'Private', 'Public', 'If', 'Then', 'Else', 'ElseIf', 'Case', 'With', 'NOT',
    58 			'While', 'Wend', 'For', 'Loop', 'Do', 'Request', 'Response', 'Server', 'ADODB', 'Session', 'Application',
    58             'While', 'Wend', 'For', 'Loop', 'Do', 'Request', 'Response', 'Server', 'ADODB', 'Session', 'Application',
    59 			'Each', 'In', 'Get', 'Next', 'INT', 'CINT', 'CBOOL', 'CDATE', 'CBYTE', 'CCUR', 'CDBL', 'CLNG', 'CSNG',
    59             'Each', 'In', 'Get', 'Next', 'INT', 'CINT', 'CBOOL', 'CDATE', 'CBYTE', 'CCUR', 'CDBL', 'CLNG', 'CSNG',
    60 			'CSTR', 'Fix', 'Is', 'Sgn', 'String', 'Boolean', 'Currency', 'Me', 'Single', 'Long', 'Integer', 'Byte',
    60             'CSTR', 'Fix', 'Is', 'Sgn', 'String', 'Boolean', 'Currency', 'Me', 'Single', 'Long', 'Integer', 'Byte',
    61 			'Variant', 'Double', 'To', 'Let', 'Xor', 'Resume', 'On', 'Error', 'Imp', 'GoTo', 'Call', 'Global'
    61             'Variant', 'Double', 'To', 'Let', 'Xor', 'Resume', 'On', 'Error', 'Imp', 'GoTo', 'Call', 'Global'
    62 			),
    62             ),
    63 		2 => array(
    63         2 => array(
    64 			'Null', 'Nothing', 'And',
    64             'Null', 'Nothing', 'And',
    65 			'False', '<%', '%>',
    65             'False',
    66 			'<script language=', '</script>',
    66             'True', 'var', 'Or', 'BOF', 'EOF', 'xor',
    67 			'True', 'var', 'Or', 'BOF', 'EOF',
    67             'Function', 'Class', 'New', 'Sub'
    68 			'Function', 'Class', 'New', 'Sub'
    68             ),
    69 			),
    69         3 => array(
    70 		3 => array(
    70             'CreateObject', 'Write', 'Redirect', 'Cookies', 'BinaryRead', 'ClientCertificate', 'Form', 'QueryString',
    71 			'CreateObject', 'Write', 'Redirect', 'Cookies', 'BinaryRead', 'ClientCertificate', 'Form', 'QueryString',
    71             'ServerVariables', 'TotalBytes', 'AddHeader', 'AppendToLog', 'BinaryWrite', 'Buffer', 'CacheControl',
    72 			'ServerVariables', 'TotalBytes', 'AddHeader', 'AppendToLog', 'BinaryWrite', 'Buffer', 'CacheControl',
    72             'Charset', 'Clear', 'ContentType', 'End()', 'Expires', 'ExpiresAbsolute', 'Flush()', 'IsClientConnected',
    73 			'Charset', 'Clear', 'ContentType', 'End()', 'Expires', 'ExpiresAbsolute', 'Flush()', 'IsClientConnected',
    73             'PICS', 'Status', 'Connection', 'Recordset', 'Execute', 'Abandon', 'Lock', 'UnLock', 'Command', 'Fields',
    74 			'PICS', 'Status', 'Connection', 'Recordset', 'Execute', 'Abandon', 'Lock', 'UnLock', 'Command', 'Fields',
    74             'Properties', 'Property', 'Send', 'Replace', 'InStr', 'TRIM', 'NOW', 'Day', 'Month', 'Hour', 'Minute', 'Second',
    75 			'Properties', 'Property', 'Send', 'Replace', 'InStr', 'TRIM', 'NOW', 'Day', 'Month', 'Hour', 'Minute', 'Second',
    75             'Year', 'MonthName', 'LCase', 'UCase', 'Abs', 'Array', 'As', 'LEN', 'MoveFirst', 'MoveLast', 'MovePrevious',
    76 			'Year', 'MonthName', 'LCase', 'UCase', 'Abs', 'Array', 'As', 'LEN', 'MoveFirst', 'MoveLast', 'MovePrevious',
    76             'MoveNext', 'LBound', 'UBound', 'Transfer', 'Open', 'Close', 'MapPath', 'FileExists', 'OpenTextFile', 'ReadAll'
    77 			'MoveNext', 'LBound', 'UBound', 'Transfer', 'Open', 'Close', 'MapPath', 'FileExists', 'OpenTextFile', 'ReadAll'
    77             )
    78 			)
    78         ),
    79 		),
    79     'SYMBOLS' => array(
    80 	'CASE_SENSITIVE' => array(
    80         1 => array(
    81 		GESHI_COMMENTS => false,
    81             '<%', '%>'
    82 		1 => false,
    82             ),
    83 		2 => false,
    83         0 => array(
    84 		3 => false,
    84             '(', ')', '[', ']', '!', '@', '%', '&', '*', '|', '/', '<', '>',
    85 		),
    85             ';', ':', '?', '='),
    86 	'STYLES' => array(
    86         ),
    87 		'KEYWORDS' => array(
    87     'CASE_SENSITIVE' => array(
    88 			1 => 'color: #990099; font-weight: bold;',
    88         GESHI_COMMENTS => false,
    89 			2 => 'color: #0000ff; font-weight: bold;',
    89         1 => false,
    90 			3 => 'color: #330066;'
    90         2 => false,
    91 			),
    91         3 => false,
    92 		'COMMENTS' => array(
    92         ),
    93 			1 => 'color: #008000;',
    93     'STYLES' => array(
    94 			2 => 'color: #ff6600;',
    94         'KEYWORDS' => array(
    95 			'MULTI' => 'color: #008000;'
    95             1 => 'color: #990099; font-weight: bold;',
    96 			),
    96             2 => 'color: #0000ff; font-weight: bold;',
    97 		'ESCAPE_CHAR' => array(
    97             3 => 'color: #330066;'
    98 			0 => 'color: #000099; font-weight: bold;'
    98             ),
    99 			),
    99         'COMMENTS' => array(
   100 		'BRACKETS' => array(
   100             1 => 'color: #008000;',
   101 			0 => 'color: #006600; font-weight:bold'
   101             2 => 'color: #ff6600;',
   102 			),
   102             'MULTI' => 'color: #008000;'
   103 		'STRINGS' => array(
   103             ),
   104 			0 => 'color: #cc0000;'
   104         'ESCAPE_CHAR' => array(
   105 			),
   105             0 => 'color: #000099; font-weight: bold;'
   106 		'NUMBERS' => array(
   106             ),
   107 			0 => 'color: #800000;'
   107         'BRACKETS' => array(
   108 			),
   108             0 => 'color: #006600; font-weight:bold;'
   109 		'METHODS' => array(
   109             ),
   110 			1 => 'color: #9900cc;'
   110         'STRINGS' => array(
   111 			),
   111             0 => 'color: #cc0000;'
   112 		'SYMBOLS' => array(
   112             ),
   113 			0 => 'color: #006600; font-weight: bold'
   113         'NUMBERS' => array(
   114 			),
   114             0 => 'color: #800000;'
   115 		'REGEXPS' => array(
   115             ),
   116 			),
   116         'METHODS' => array(
   117 		'SCRIPT' => array(
   117             1 => 'color: #9900cc;'
   118 			0 => '',
   118             ),
   119 			1 => '',
   119         'SYMBOLS' => array(
   120 			2 => '',
   120             0 => 'color: #006600; font-weight: bold;',
   121 			)
   121             1 => 'color: #000000; font-weight: bold;'
   122 		),
   122             ),
   123 	'URLS' => array(
   123         'REGEXPS' => array(
   124 		1 => '',
   124             ),
   125 		2 => '',
   125         'SCRIPT' => array(
   126 		3 => ''
   126             0 => '',
   127 		),
   127             1 => '',
   128 	'OOLANG' => true,
   128             2 => '',
   129 	'OBJECT_SPLITTERS' => array(
   129             3 => ''
   130 		1 => '.'
   130             )
   131 		),
   131         ),
   132 	'REGEXPS' => array(
   132     'URLS' => array(
   133 		),
   133         1 => '',
   134 	'STRICT_MODE_APPLIES' => GESHI_MAYBE,
   134         2 => '',
   135 	'SCRIPT_DELIMITERS' => array(
   135         3 => ''
   136 		0 => array(
   136         ),
   137 			'<%' => '%>'
   137     'OOLANG' => true,
   138 			),
   138     'OBJECT_SPLITTERS' => array(
   139 		1 => array(
   139         1 => '.'
   140 			'<script language="vbscript" runat="server">' => '</script>'
   140         ),
   141 			),
   141     'REGEXPS' => array(
   142 		2 => array(
   142         ),
   143 			'<script language="javascript" runat="server">' => '</script>'
   143     'STRICT_MODE_APPLIES' => GESHI_MAYBE,
   144 			)
   144     'SCRIPT_DELIMITERS' => array(
   145 		),
   145         0 => array(
   146 	'HIGHLIGHT_STRICT_BLOCK' => array(
   146             '<%' => '%>'
   147 		0 => true,
   147             ),
   148 		1 => true,
   148         1 => array(
   149 		2 => true,
   149             '<script language="vbscript" runat="server">' => '</script>'
   150 		)
   150             ),
       
   151         2 => array(
       
   152             '<script language="javascript" runat="server">' => '</script>'
       
   153             ),
       
   154         3 => "/(<%=?)(?:\"[^\"]*?\"|\/\*(?!\*\/).*?\*\/|.)*?(%>|\Z)/sm"
       
   155         ),
       
   156     'HIGHLIGHT_STRICT_BLOCK' => array(
       
   157         0 => true,
       
   158         1 => true,
       
   159         2 => true,
       
   160         3 => true
       
   161         )
   151 );
   162 );
   152 
   163 
   153 ?>
   164 ?>