@@ -0,0 +1 @@ | |||
paste |
@@ -0,0 +1,6 @@ | |||
Options -Indexes | |||
RewriteEngine On | |||
RewriteCond %{REQUEST_FILENAME} !-f | |||
RewriteCond %{REQUEST_FILENAME} !-d | |||
RewriteRule ^(.*)$ /paste/index.php?id=$1 [L,QSA] |
@@ -0,0 +1,32 @@ | |||
<?php | |||
function downloadFile($dlFile, $dlSize) { | |||
// Must be fresh start | |||
if (headers_sent()) | |||
die('Headers Sent'); | |||
// Required for some browsers | |||
if (ini_get('zlib.output_compression')) | |||
ini_set('zlib.output_compression', 'Off'); | |||
header("Pragma: public"); // required | |||
header("Expires: 0"); | |||
header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); | |||
header("Cache-Control: private", false); // required for certain browsers | |||
header("Content-Type: application/force-download"); | |||
header("Content-Disposition: attachment; filename=\"" . basename($dlFile) . "\";" ); | |||
header("Content-Transfer-Encoding: binary"); | |||
header("Content-Length: " . $dlSize); | |||
ob_clean(); | |||
// flush(); | |||
readfile($dlFile); | |||
} | |||
if (! (empty($_GET["file"]) || empty($_GET["size"]))) { | |||
$dlFile = htmlspecialchars($_GET["file"]); | |||
$dlSize = htmlspecialchars($_GET["size"]); | |||
downloadFile($dlFile, $dlSize); | |||
} | |||
?> |
@@ -0,0 +1 @@ | |||
<p style="color: #CF2525; font-size: 20px;">Failed to create new Paste</p> |
@@ -0,0 +1,39 @@ | |||
<?php | |||
$base_dir = "/home/groups/k/kx/kxstudio/htdocs/paste/"; | |||
// $base_dir = "/var/www/falktx/kxstudio-new/paste/"; | |||
function downloadFile($fullPath) { | |||
// Must be fresh start | |||
if(headers_sent()) | |||
die('Headers Sent'); | |||
// Required for some browsers | |||
if(ini_get('zlib.output_compression')) | |||
ini_set('zlib.output_compression', 'Off'); | |||
$fsize = filesize($fullPath); | |||
header("Pragma: public"); // required | |||
header("Expires: 0"); | |||
header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); | |||
header("Cache-Control: private",false); // required for certain browsers | |||
header("Content-Type: application/force-download"); | |||
header("Content-Disposition: attachment; filename=\"".basename($fullPath)."\";" ); | |||
header("Content-Transfer-Encoding: binary"); | |||
header("Content-Length: ".$fsize); | |||
ob_clean(); | |||
flush(); | |||
readfile($fullPath); | |||
} | |||
if (!empty($_GET["id"])) { | |||
$paste_id = htmlspecialchars($_GET["id"]); | |||
$paste_file = $base_dir . "repo/" . $paste_id; | |||
if (!file_exists($paste_file)) die("File does not exist"); | |||
downloadFile($paste_file); | |||
} | |||
?> |
@@ -0,0 +1,139 @@ | |||
<?php | |||
/************************************************************************************* | |||
* 4cs.php | |||
* ------ | |||
* Author: Jason Curl (jason.curl@continental-corporation.com) | |||
* Copyright: (c) 2009 Jason Curl | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2009/09/05 | |||
* | |||
* 4CS language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2009/09/05 | |||
* - First Release | |||
* | |||
* TODO (updated 2009/09/01) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'GADV 4CS', | |||
'COMMENT_SINGLE' => array(1 => "//"), | |||
'COMMENT_MULTI' => array(), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"'), | |||
'ESCAPE_CHAR' => '', | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'All', 'AllMatches', 'And', 'And_Filters', 'As', 'Asc', 'BasedOn', | |||
'BestMatch', 'Block', 'Buffer', 'ByRef', 'ByVal', 'Call', 'Channel', | |||
'Chr', 'Clear', 'Close', 'Confirm', 'Const', 'Continue', 'Cos', | |||
'Critical', 'Declare', 'Default', 'DefaultChannel', 'DefaultDelayTime', | |||
'DefaultReceiveMode', 'DefaultResponseTime', '#Define', 'DelayTime', | |||
'Delete', 'Div', 'Else', '#Else', 'ElseIf', '#ElseIf', 'End', 'EndCritical', | |||
'EndInlineC', 'EndFunction', 'EndIf', '#EndIf', 'EndInputList', | |||
'EndLocalChannel', 'EndScenario', 'EndSub', 'EndWhile', 'Error', | |||
'ErrorLevelOff', 'ErrorLevelOn', 'ErrorLevelSet', 'ErrorLevelSetRaw', | |||
'Event', 'EventMode', 'EventOff', 'EventOn', 'EventSet', 'EventSetRaw', | |||
'Execute', 'Exit', 'Exp', 'FileClose', 'FilterClear', 'FileEOF', 'FileOpen', | |||
'FileRead', 'FileSize', 'FileWrite', 'FilterAdd', 'FilterMode', | |||
'FilterOff', 'FilterOn', 'For', 'Format', 'Function', 'GoOnline', 'GoTo', | |||
'Handle', 'Hide', 'If', '#If', '#IfDef', '#IfNDef', 'Ignore', '#Include', | |||
'InlineC', 'Input', 'InputItem', 'InputList', 'Kill', 'LBound', 'LocalChannel', | |||
'Local', 'Log', 'Log10', 'LogOff', 'LogOn', 'Loop', 'Message', 'Mod', | |||
'MonitorChannel', 'MostFormat', 'MostMessage', 'Named', 'Never', 'Next', | |||
'NoOrder', 'Not', 'Nothing', 'NoWait', 'Numeric', 'OnError', 'OnEvent', | |||
'Or', 'Or_Filters', 'Order', 'Pass', 'Pow', 'Prototype', 'Quit', 'Raise', | |||
'Random', 'Receive', 'ReceiveMode', 'ReceiveRaw', 'Redim', 'Remote', 'Repeat', | |||
'Repeated', 'ResponseTime', 'Resume', 'ResumeCritical', 'RT_Common', | |||
'RT_Dll_Call', 'RT_FILEIO', 'RT_General', 'RT_HardwareAccess', | |||
'RT_MessageVariableAccess', 'RT_Scenario', 'RT_VariableAccess', 'Runtime', | |||
'Scenario', 'ScenarioEnd', 'ScenarioStart', 'ScenarioStatus', 'ScenarioTerminate', | |||
'Send', 'SendRaw', 'Set', 'SetError', 'Sin', 'Single', 'Show', 'Start', | |||
'StartCritical', 'Starts', 'Static', 'Step', 'Stop', 'String', 'Sub', | |||
'System_Error', 'TerminateAllChilds', 'Terminates', 'Then', 'Throw', 'TimeOut', | |||
'To', 'TooLate', 'Trunc', 'UBound', 'Unexpected', 'Until', 'User_Error', | |||
'View', 'Wait', 'Warning', 'While', 'XOr' | |||
), | |||
2 => array( | |||
'alias', 'winapi', 'long', 'char', 'double', 'float', 'int', 'short', 'lib' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'=', ':=', '<', '>', '<>' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #0000C0; font-weight: bold;', | |||
2 => 'color: #808080;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #008000;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #000080;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #800080;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #cc66cc;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #66cc66;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #000080;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099;' | |||
), | |||
'SCRIPT' => array( | |||
), | |||
'REGEXPS' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '' | |||
), | |||
'OOLANG' => true, | |||
'OBJECT_SPLITTERS' => array( | |||
1 => '.' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
) | |||
); | |||
?> |
@@ -0,0 +1,230 @@ | |||
<?php | |||
/************************************************************************************* | |||
* 6502acme.php | |||
* ------- | |||
* Author: Warren Willmey | |||
* Copyright: (c) 2010 Warren Willmey. | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2010/05/26 | |||
* | |||
* MOS 6502 (more specifically 6510) ACME Cross Assembler 0.93 by Marco Baye language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2010/07/22 | |||
* - First Release | |||
* | |||
* TODO (updated 2010/07/22) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'MOS 6502 (6510) ACME Cross Assembler format', | |||
'COMMENT_SINGLE' => array(1 => ';'), | |||
'COMMENT_MULTI' => array(), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'ESCAPE_CHAR' => '', | |||
'KEYWORDS' => array( | |||
/* 6502/6510 Opcodes. */ | |||
1 => array( | |||
'adc', 'and', 'asl', 'bcc', 'bcs', 'beq', 'bit', 'bmi', | |||
'bne', 'bpl', 'brk', 'bvc', 'bvs', 'clc', 'cld', 'cli', | |||
'clv', 'cmp', 'cpx', 'cpy', 'dec', 'dex', 'dey', 'eor', | |||
'inc', 'inx', 'iny', 'jmp', 'jsr', 'lda', 'ldx', 'ldy', | |||
'lsr', 'nop', 'ora', 'pha', 'php', 'pla', 'plp', 'rol', | |||
'ror', 'rti', 'rts', 'sbc', 'sec', 'sed', 'sei', 'sta', | |||
'stx', 'sty', 'tax', 'tay', 'tsx', 'txa', 'txs', 'tya', | |||
), | |||
/* Index Registers, yes the 6502 has other registers by they are only | |||
* accessable by specific opcodes. The 65816 also has access to the stack pointer S. */ | |||
2 => array( | |||
'x', 'y', 's' | |||
), | |||
/* Directives or "pseudo opcodes" as defined by ACME 0.93 file AllPOs.txt. */ | |||
3 => array( | |||
'!8', '!08', '!by', '!byte', | |||
'!16', '!wo', '!word', | |||
'!24', '!32', | |||
'!fi', '!fill', | |||
'!align', | |||
'!ct', '!convtab', | |||
'!tx', '!text', | |||
'!pet', | |||
'!raw', | |||
'!scrxor', | |||
'!to', | |||
'!source', | |||
'!bin', '!binary', | |||
'!zn', '!zone', | |||
'!sl', | |||
'!svl', | |||
'!sal', | |||
'!if', '!ifdef', | |||
'!for', | |||
'!set', | |||
'!do', 'while', 'until', | |||
'!eof', '!endoffile', | |||
'!warn', '!error', '!serious', | |||
'!macro', | |||
// , '*=' // Not a valid keyword (uses both * and = signs) moved to symbols instead. | |||
'!initmem', | |||
'!pseudopc', | |||
'!cpu', | |||
'!al', '!as', '!rl', '!rs', | |||
), | |||
/* 6502/6510 undocumented opcodes (often referred to as illegal instructions). | |||
* These are present in the 6502/6510 but NOT in the newer CMOS revisions of the 65C02 or 65816. | |||
* As they are undocumented instructions there are no "official" names for them, there are also | |||
* several more that mainly perform various forms of crash and are not supported by ACME 0.93. | |||
*/ | |||
4 => array( | |||
'anc', 'arr', 'asr', 'dcp', 'dop', 'isc', 'jam', 'lax', | |||
'rla', 'rra', 'sax', 'sbx', 'slo', 'sre', 'top', | |||
), | |||
/* 65c02 instructions, MOS added a few (much needed) instructions in the CMOS version of the 6502, but stupidly removed the undocumented/illegal opcodes. | |||
* ACME 0.93 does not support the rmb0-7 and smb0-7 instructions (they are currently rem'ed out). */ | |||
5 => array( | |||
'bra', 'phx', 'phy', 'plx', 'ply', 'stz', 'trb', 'tsb' | |||
), | |||
/* 65816 instructions. */ | |||
6 => array( | |||
'brl', 'cop', 'jml', 'jsl', 'mvn', 'mvp', 'pea', 'pei', | |||
'per', 'phb', 'phd', 'phk', 'plb', 'pld', 'rep', 'rtl', | |||
'sep', 'tcd', 'tcs', 'tdc', 'tsc', 'txy', 'tyx', 'wdm', | |||
'xba', 'xce', | |||
), | |||
/* Deprecated directives or "pseudo opcodes" as defined by ACME 0.93 file AllPOs.txt. */ | |||
7 => array( | |||
'!cbm', | |||
'!sz', '!subzone', | |||
'!realpc', | |||
), | |||
/* Math functions, some are aliases for the symbols. */ | |||
8 => array( | |||
'not', 'div', 'mod', 'xor', 'or', 'sin', 'cos', 'tan', | |||
'arcsin', 'arccos', 'arctan', 'int', 'float', | |||
), | |||
), | |||
'SYMBOLS' => array( | |||
// '[', ']', '(', ')', '{', '}', // These are already defined by GeSHi as BRACKETS. | |||
'*=', '#', '!', '^', '-', '*', '/', | |||
'%', '+', '-', '<<', '>>', '>>>', | |||
'<', '>', '^', '<=', '<', '>=', '>', '!=', | |||
'=', '&', '|', '<>', | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
4 => false, | |||
5 => false, | |||
6 => false, | |||
7 => false, | |||
8 => false, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #00f; font-weight:bold;', | |||
2 => 'color: #00f; font-weight:bold;', | |||
3 => 'color: #080; font-weight:bold;', | |||
4 => 'color: #f00; font-weight:bold;', | |||
5 => 'color: #80f; font-weight:bold;', | |||
6 => 'color: #f08; font-weight:bold;', | |||
7 => 'color: #a04; font-weight:bold; font-style: italic;', | |||
8 => 'color: #000;', | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #999; font-style: italic;', | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #009; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #000;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #080;' | |||
), | |||
'NUMBERS' => array( | |||
GESHI_NUMBER_INT_BASIC => 'color: #f00;', | |||
GESHI_NUMBER_HEX_PREFIX_DOLLAR => 'color: #f00;', | |||
GESHI_NUMBER_HEX_PREFIX => 'color: #f00;', | |||
GESHI_NUMBER_BIN_PREFIX_PERCENT => 'color: #f00;', | |||
GESHI_NUMBER_FLT_NONSCI => 'color: #f00;', | |||
), | |||
'METHODS' => array( | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #080;' | |||
), | |||
'REGEXPS' => array( | |||
0 => 'color: #f00;' | |||
, 1 => 'color: #933;' | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '', | |||
4 => '', | |||
5 => '', | |||
6 => '', | |||
7 => '', | |||
8 => '', | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
'NUMBERS' => | |||
GESHI_NUMBER_INT_BASIC | | |||
GESHI_NUMBER_FLT_NONSCI | | |||
GESHI_NUMBER_HEX_PREFIX_DOLLAR | | |||
GESHI_NUMBER_HEX_PREFIX | | |||
GESHI_NUMBER_BIN_PREFIX_PERCENT, | |||
// AMCE Octal format not support and gets picked up as Decimal unfortunately. | |||
'REGEXPS' => array( | |||
//ACME .# Binary number format. e.g. %..##..##..## | |||
0 => '\%[\.\#]{1,64}', | |||
//ACME Local Labels | |||
1 => '\.[_a-zA-Z][_a-zA-Z0-9]*', | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 8, | |||
'PARSER_CONTROL' => array( | |||
'NUMBERS' => array( | |||
'PRECHECK_RX' => '/[\da-fA-F\.\$\%]/' | |||
) | |||
) | |||
); | |||
?> |
@@ -0,0 +1,241 @@ | |||
<?php | |||
/************************************************************************************* | |||
* 6502kickass.php | |||
* ------- | |||
* Author: Warren Willmey | |||
* Copyright: (c) 2010 Warren Willmey. | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2010/06/07 | |||
* | |||
* MOS 6502 (6510) Kick Assembler 3.13 language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2010/07/22 | |||
* - First Release | |||
* | |||
* TODO (updated 2010/07/22) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'MOS 6502 (6510) Kick Assembler format', | |||
'COMMENT_SINGLE' => array(1 => '//'), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'ESCAPE_CHAR' => '', | |||
'KEYWORDS' => array( | |||
/* 6502/6510 Opcodes including undocumented opcodes as Kick Assembler 3.13 does not make a distinction - they are ALL valid. */ | |||
1 => array( | |||
'adc', 'ahx', 'alr', 'anc', 'anc2', 'and', 'arr', 'asl', | |||
'axs', 'bcc', 'bcs', 'beq', 'bit', 'bmi', 'bne', 'bpl', | |||
'brk', 'bvc', 'bvs', 'clc', 'cld', 'cli', 'clv', 'cmp', | |||
'cpx', 'cpy', 'dcp', 'dec', 'dex', 'dey', 'eor', 'inc', | |||
'inx', 'iny', 'isc', 'jmp', 'jsr', 'las', 'lax', 'lda', | |||
'ldx', 'ldy', 'lsr', 'nop', 'ora', 'pha', 'php', 'pla', | |||
'plp', 'rla', 'rol', 'ror', 'rra', 'rti', 'rts', 'sax', | |||
'sbc', 'sbc2', 'sec', 'sed', 'sei', 'shx', 'shy', 'slo', | |||
'sre', 'sta', 'stx', 'sty', 'tas', 'tax', 'tay', 'tsx', | |||
'txa', 'txs', 'tya', 'xaa', | |||
), | |||
/* DTV additional Opcodes. */ | |||
2 => array( | |||
'bra', 'sac', 'sir' | |||
), | |||
/* Index Registers, yes the 6502 has other registers by they are only | |||
* accessable by specific opcodes. */ | |||
3 => array( | |||
'x', 'y' | |||
), | |||
/* Directives. */ | |||
4 => array( | |||
'.pc', '.pseudopc', 'virtual', '.align', '.byte', '.word', '.text', '.fill', | |||
'.import source', '.import binary', '.import c64', '.import text', '.import', '.print', '.printnow', | |||
'.error', '.var', '.eval', '.const', '.eval const', '.enum', '.label', '.define', '.struct', | |||
'if', '.for', '.macro', '.function', '.return', '.pseudocommand', '.namespace', '.filenamespace', | |||
'.assert', '.asserterror', | |||
), | |||
/* Kick Assembler 3.13 Functions/Operators. */ | |||
5 => array( | |||
'size', 'charAt', 'substring', 'asNumber', 'asBoolean', 'toIntString', 'toBinaryString', 'toOctalString', | |||
'toHexString', 'lock', // String functions/operators. | |||
'get', 'set', 'add', 'remove', 'shuffle', // List functions. | |||
'put', 'keys', // Hashtable functions. | |||
'getType', 'getValue', 'CmdArgument', // Pseudo Commands functions. | |||
'asmCommandSize', // Opcode Constants functions. | |||
'LoadBinary', 'getSize', | |||
'LoadSid', 'getData', | |||
'LoadPicture', 'width', 'height', 'getPixel', 'getSinglecolorByte', 'getMulticolorByte', | |||
'createFile', 'writeln', | |||
'cmdLineVars', | |||
'getX', 'getY', 'getZ', // Vector functions. | |||
'RotationMatrix', 'ScaleMatrix', 'MoveMatrix', 'PerspectiveMatrix', // Matrix functions. | |||
), | |||
/* Kick Assembler 3.13 Math Functions. */ | |||
6 => array( | |||
'abs', 'acos', 'asin', 'atan', 'atan2', 'cbrt', 'ceil', 'cos', 'cosh', | |||
'exp', 'expm1', 'floor', 'hypot', 'IEEEremainder', 'log', 'log10', | |||
'log1p', 'max', 'min', 'pow', 'mod', 'random', 'round', 'signum', | |||
'sin', 'sinh', 'sqrt', 'tan', 'tanh', 'toDegrees', 'toRadians', | |||
), | |||
/* Kick Assembler 3.13 Objects/Data Types. */ | |||
7 => array( | |||
'List', // List() Object. | |||
'Hashtable', // Hashtable() Object. | |||
'Vector', // Vector() Object. | |||
'Matrix', // Matrix() Object. | |||
), | |||
/* Kick Assembler 3.13 Constants. */ | |||
8 => array( | |||
'PI', 'E', // Math Constants. | |||
'AT_ABSOLUTE' , 'AT_ABSOLUTEX' , 'AT_ABSOLUTEY' , 'AT_IMMEDIATE', // Pseudo Commands Constants. | |||
'AT_INDIRECT' , 'AT_IZEROPAGEX' , 'AT_IZEROPAGEY' , 'AT_NONE', | |||
'BLACK', 'WHITE', 'RED', 'CYAN', 'PURPLE', 'GREEN', 'BLUE', // Colour Constants. | |||
'YELLOW', 'ORANGE', 'BROWN', 'LIGHT_RED', 'DARK_GRAY', 'GRAY', | |||
'LIGHT_GREEN', 'LIGHT_BLUE', 'LIGHT_GRAY', | |||
'C64FILE', // Template Tag names. | |||
'BF_C64FILE', 'BF_BITMAP_SINGLECOLOR', 'BF_KOALA' , 'BF_FLI', // Binary format constant | |||
), | |||
), | |||
'SYMBOLS' => array( | |||
// '[', ']', '(', ')', '{', '}', // These are already defined by GeSHi as BRACKETS. | |||
'-', '+', '-', '*', '/', '>', '<', '<<', '>>', '&', '|', '^', '=', '==', | |||
'!=', '>=', '<=', '!', '&&', '||', '#', | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
4 => true, | |||
5 => true, | |||
6 => true, | |||
7 => true, | |||
8 => true, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #00f; font-weight:bold;', | |||
2 => 'color: #00f; font-weight:bold;', | |||
3 => 'color: #00f; font-weight:bold;', | |||
4 => 'color: #080; font-weight:bold;', | |||
5 => 'color: #80f; font-weight:bold;', | |||
6 => 'color: #f08; font-weight:bold;', | |||
7 => 'color: #a04; font-weight:bold; font-style: italic;', | |||
8 => 'color: #f08; font-weight:bold;', | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #999; font-style: italic;', | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #009; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #000;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #080;' | |||
), | |||
'NUMBERS' => array( | |||
GESHI_NUMBER_INT_BASIC => 'color: #f00;', | |||
GESHI_NUMBER_HEX_PREFIX_DOLLAR => 'color: #f00;', | |||
GESHI_NUMBER_BIN_PREFIX_PERCENT => 'color: #f00;', | |||
GESHI_NUMBER_FLT_NONSCI => 'color: #f00;', | |||
), | |||
'METHODS' => array( | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #080;' | |||
), | |||
'REGEXPS' => array( | |||
0 => 'color: #933;', | |||
1 => 'color: #933;', | |||
2 => 'color: #933;', | |||
3 => 'color: #00f; font-weight:bold;', | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '', | |||
4 => '', | |||
5 => '', | |||
6 => '', | |||
7 => '', | |||
8 => '', | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
'NUMBERS' => | |||
GESHI_NUMBER_INT_BASIC | | |||
GESHI_NUMBER_FLT_NONSCI | | |||
GESHI_NUMBER_HEX_PREFIX_DOLLAR | | |||
GESHI_NUMBER_BIN_PREFIX_PERCENT, | |||
// AMCE Octal format not support and gets picked up as Decimal unfortunately. | |||
'REGEXPS' => array( | |||
//Labels end with a collon. | |||
0 => '[!]{0,1}[_a-zA-Z][_a-zA-Z0-9]*\:', | |||
//Multi Labels (local labels) references start with ! and end with + or - for forward/backward reference. | |||
1 => '![_a-zA-Z][_a-zA-Z0-9]*[+-]', | |||
//Macros start with a colon :Macro. | |||
2 => ':[_a-zA-Z][_a-zA-Z0-9]*', | |||
// Opcode Constants, such as LDA_IMM, STA_IZPY are basically all 6502 opcodes | |||
// in UPPER case followed by _underscore_ and the ADDRESS MODE. | |||
// As you might imagine that is rather a lot ( 78 supported Opcodes * 12 Addressing modes = 936 variations) | |||
// So I thought it better and easier to maintain as a regular expression. | |||
// NOTE: The order of the Address Modes must be maintained or it wont work properly (eg. place ZP first and find out!) | |||
3 => '[A-Z]{3}[2]?_(?:IMM|IND|IZPX|IZPY|ZPX|ZPY|ABSX|ABSY|REL|ABS|ZP)', | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 8, | |||
'PARSER_CONTROL' => array( | |||
'NUMBERS' => array( | |||
'PRECHECK_RX' => '/[\da-fA-F\.\$\%]/' | |||
), | |||
'KEYWORDS' => array( | |||
5 => array ( | |||
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\;>|^&'\"])" | |||
), | |||
6 => array ( | |||
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\;>|^&'\"])" | |||
), | |||
8 => array ( | |||
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\;>|^&'\"])" | |||
) | |||
) | |||
), | |||
); | |||
?> |
@@ -0,0 +1,189 @@ | |||
<?php | |||
/************************************************************************************* | |||
* 6502tasm.php | |||
* ------- | |||
* Author: Warren Willmey | |||
* Copyright: (c) 2010 Warren Willmey. | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2010/06/02 | |||
* | |||
* MOS 6502 (6510) TASM/64TASS (64TASS being the super set of TASM) language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2010/07/22 | |||
* - First Release | |||
* | |||
* TODO (updated 2010/07/22) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'MOS 6502 (6510) TASM/64TASS 1.46 Assembler format', | |||
'COMMENT_SINGLE' => array(1 => ';'), | |||
'COMMENT_MULTI' => array(), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'ESCAPE_CHAR' => '', | |||
'KEYWORDS' => array( | |||
/* 6502/6510 Opcodes. */ | |||
1 => array( | |||
'adc', 'and', 'asl', 'bcc', 'bcs', 'beq', 'bit', 'bmi', | |||
'bne', 'bpl', 'brk', 'bvc', 'bvs', 'clc', 'cld', 'cli', | |||
'clv', 'cmp', 'cpx', 'cpy', 'dec', 'dex', 'dey', 'eor', | |||
'inc', 'inx', 'iny', 'jmp', 'jsr', 'lda', 'ldx', 'ldy', | |||
'lsr', 'nop', 'ora', 'pha', 'php', 'pla', 'plp', 'rol', | |||
'ror', 'rti', 'rts', 'sbc', 'sec', 'sed', 'sei', 'sta', | |||
'stx', 'sty', 'tax', 'tay', 'tsx', 'txa', 'txs', 'tya', | |||
), | |||
/* Index Registers, yes the 6502 has other registers by they are only | |||
* accessable by specific opcodes. The 65816 also has access to the stack pointer S. */ | |||
2 => array( | |||
'x', 'y', 's' | |||
), | |||
/* Directives. */ | |||
3 => array( | |||
'.al', '.align', '.as', '.assert', '.binary', '.byte', '.cerror', '.char', | |||
'.comment', '.cpu', '.cwarn', '.databank', '.dpage', '.else', '.elsif', | |||
'.enc', '.endc', '.endif', '.endm', '.endp', '.error', '.fi', '.fill', | |||
'.for', '.here', '.if', '.ifeq', '.ifmi', '.ifne', '.ifpl', | |||
'.include', '.int', '.logical', '.long', '.macro', '.next', '.null', '.offs', | |||
'.page', '.pend', '.proc', '.rept', '.rta', '.shift', '.text', '.warn', '.word', | |||
'.xl', '.xs', | |||
// , '*=' // Not a valid keyword (uses both * and = signs) moved to symbols instead. | |||
), | |||
/* 6502/6510 undocumented opcodes (often referred to as illegal instructions). | |||
* These are present in the 6502/6510 but NOT in the newer CMOS revisions of the 65C02 or 65816. | |||
* As they are undocumented instructions there are no "official" names for them, these are the names | |||
* used by 64TASS V1.46. | |||
*/ | |||
4 => array( | |||
'ahx', 'alr', 'anc', 'ane', 'arr', 'asr', 'axs', 'dcm', | |||
'dcp', 'ins', 'isb', 'isc', 'jam', 'lae', 'las', 'lax', | |||
'lds', 'lxa', 'rla', 'rra', 'sax', 'sbx', 'sha', 'shs', | |||
'shx', 'shy', 'slo', 'sre', 'tas', 'xaa', | |||
), | |||
/* 65c02 instructions, MOS added a few (much needed) instructions in the | |||
* CMOS version of the 6502, but stupidly removed the undocumented/illegal opcodes. */ | |||
5 => array( | |||
'bra', 'dea', 'gra', 'ina', 'phx', 'phy', 'plx', 'ply', | |||
'stz', 'trb', 'tsb', | |||
), | |||
/* 65816 instructions. */ | |||
6 => array( | |||
'brl', 'cop', 'jml', 'jsl', 'mvn', 'mvp', 'pea', 'pei', | |||
'per', 'phb', 'phd', 'phk', 'plb', 'pld', 'rep', 'rtl', | |||
'sep', 'stp', 'swa', 'tad', 'tcd', 'tcs', 'tda', | |||
'tdc', 'tsa', 'tsc', 'txy', 'tyx', 'wai', 'xba', 'xce', | |||
), | |||
/* Deprecated directives (or yet to be implemented). */ | |||
7 => array( | |||
'.global', '.check' | |||
), | |||
), | |||
'SYMBOLS' => array( | |||
// '[', ']', '(', ')', '{', '}', // These are already defined by GeSHi as BRACKETS. | |||
'*=', '#', '<', '>', '`', '=', '<', '>', | |||
'!=', '>=', '<=', '+', '-', '*', '/', '//', '|', | |||
'^', '&', '<<', '>>', '-', '~', '!', | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
4 => false, | |||
5 => false, | |||
6 => false, | |||
7 => false, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #00f; font-weight:bold;', | |||
2 => 'color: #00f; font-weight:bold;', | |||
3 => 'color: #080; font-weight:bold;', | |||
4 => 'color: #f00; font-weight:bold;', | |||
5 => 'color: #80f; font-weight:bold;', | |||
6 => 'color: #f08; font-weight:bold;', | |||
7 => 'color: #a04; font-weight:bold; font-style: italic;', | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #999; font-style: italic;', | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #009; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #000;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #080;' | |||
), | |||
'NUMBERS' => array( | |||
GESHI_NUMBER_INT_BASIC => 'color: #f00;', | |||
GESHI_NUMBER_HEX_PREFIX_DOLLAR => 'color: #f00;', | |||
GESHI_NUMBER_BIN_PREFIX_PERCENT => 'color: #f00;', | |||
), | |||
'METHODS' => array( | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #080;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '', | |||
4 => '', | |||
5 => '', | |||
6 => '', | |||
7 => '', | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
'NUMBERS' => | |||
GESHI_NUMBER_INT_BASIC | | |||
GESHI_NUMBER_HEX_PREFIX_DOLLAR | | |||
GESHI_NUMBER_BIN_PREFIX_PERCENT, | |||
// AMCE Octal format not support and gets picked up as Decimal unfortunately. | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 8, | |||
'PARSER_CONTROL' => array( | |||
'NUMBERS' => array( | |||
'PRECHECK_RX' => '/[\da-fA-F\.\$\%]/' | |||
) | |||
) | |||
); | |||
?> |
@@ -0,0 +1,168 @@ | |||
<?php | |||
/************************************************************************************* | |||
* 68000devpac.php | |||
* ------- | |||
* Author: Warren Willmey | |||
* Copyright: (c) 2010 Warren Willmey. | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2010/06/09 | |||
* | |||
* Motorola 68000 - HiSoft Devpac ST 2 Assembler language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2010/07/22 | |||
* - First Release | |||
* | |||
* TODO (updated 2010/07/22) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'Motorola 68000 - HiSoft Devpac ST 2 Assembler format', | |||
'COMMENT_SINGLE' => array(1 => ';'), | |||
'COMMENT_MULTI' => array(), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'ESCAPE_CHAR' => '', | |||
'KEYWORDS' => array( | |||
/* Directives. */ | |||
1 => array( | |||
'end', 'include', 'incbin', 'opt', 'even', 'cnop', 'dc.b', 'dc.w', | |||
'dc.l', 'ds.b', 'ds.w', 'ds.l', 'dcb.b', 'dcb.w', 'dcb.l', | |||
'fail', 'output', '__g2', 'rept', 'endr', 'list', 'nolist', 'plen', | |||
'llen', 'ttl', 'subttl', 'spc', 'page', 'listchar', 'format', | |||
'equ', 'equr', 'set', 'reg', 'rs.b', 'rs.w', 'rs.l', 'rsreset', | |||
'rsset', '__rs', 'ifeq', 'ifne', 'ifgt', 'ifge', 'iflt', 'ifle', 'endc', | |||
'ifd', 'ifnd', 'ifc', 'ifnc', 'elseif', 'iif', 'macro', 'endm', 'mexit', | |||
'narg', '\@', 'section', 'text', 'data', 'bss', 'xdef', 'xref', 'org', | |||
'offset', '__lk', 'comment', | |||
), | |||
/* 68000 Opcodes. */ | |||
2 => array( | |||
'abcd', 'add', 'adda', 'addi', 'addq', 'addx', 'and', 'andi', | |||
'asl', 'asr', 'bcc', 'bchg', 'bclr', 'bcs', 'beq', 'bge', | |||
'bgt', 'bhi', 'ble', 'bls', 'blt', 'bmi', 'bne', 'bpl', | |||
'bra', 'bset', 'bsr', 'btst', 'bvc', 'bvs', 'chk', 'clr', | |||
'cmp', 'cmpa', 'cmpi', 'cmpm', 'dbcc', 'dbcs', 'dbeq', 'dbf', | |||
'dbge', 'dbgt', 'dbhi', 'dble', 'dbls', 'dblt', 'dbmi', 'dbne', | |||
'dbpl', 'dbra', 'dbt', 'dbvc', 'dbvs', 'divs', 'divu', 'eor', | |||
'eori', 'exg', 'ext','illegal','jmp', 'jsr', 'lea', 'link', | |||
'lsl', 'lsr', 'move','movea','movem','movep','moveq', 'muls', | |||
'mulu', 'nbcd', 'neg', 'negx', 'nop', 'not', 'or', 'ori', | |||
'pea', 'reset', 'rol', 'ror', 'roxl', 'roxr', 'rte', 'rtr', | |||
'rts', 'sbcd', 'scc', 'scs', 'seq', 'sf', 'sge', 'sgt', | |||
'shi', 'sle', 'sls', 'slt', 'smi', 'sne', 'spl', 'st', | |||
'stop', 'sub', 'suba', 'subi', 'subq', 'subx', 'svc', 'svs', | |||
'swap', 'tas', 'trap','trapv', 'tst', 'unlk', | |||
), | |||
/* oprand sizes. */ | |||
3 => array( | |||
'b', 'w', 'l' , 's' | |||
), | |||
/* 68000 Registers. */ | |||
4 => array( | |||
'd0', 'd1', 'd2', 'd3', 'd4', 'd5', 'd6', 'd7', | |||
'a0', 'a1', 'a2', 'a3', 'a4', 'a5', 'a6', 'a7', 'sp', 'usp', 'ssp', | |||
'pc', 'ccr', 'sr', | |||
), | |||
), | |||
'SYMBOLS' => array( | |||
// '[', ']', '(', ')', '{', '}', // These are already defined by GeSHi as BRACKETS. | |||
'+', '-', '~', '<<', '>>', '&', | |||
'!', '^', '*', '/', '=', '<', '>', | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
4 => false, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #f08; font-weight:bold;', | |||
2 => 'color: #00f; font-weight:bold;', | |||
3 => 'color: #00f; font-weight:bold;', | |||
4 => 'color: #080; font-weight:bold;', | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #999; font-style: italic;', | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #009; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #000;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #080;' | |||
), | |||
'NUMBERS' => array( | |||
GESHI_NUMBER_INT_BASIC => 'color: #f00;', | |||
GESHI_NUMBER_HEX_PREFIX_DOLLAR => 'color: #f00;', | |||
GESHI_NUMBER_BIN_PREFIX_PERCENT => 'color: #f00;', | |||
GESHI_NUMBER_OCT_PREFIX_AT => 'color: #f00;', | |||
), | |||
'METHODS' => array( | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #080;' | |||
), | |||
'REGEXPS' => array( | |||
0 => 'color: #933;' | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '', | |||
4 => '', | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
'NUMBERS' => | |||
GESHI_NUMBER_INT_BASIC | | |||
GESHI_NUMBER_HEX_PREFIX_DOLLAR | | |||
GESHI_NUMBER_OCT_PREFIX_AT | | |||
GESHI_NUMBER_BIN_PREFIX_PERCENT, | |||
'REGEXPS' => array( | |||
//Labels may end in a colon. | |||
0 => '(?<=\A\x20|\r|\n|^)[\._a-zA-Z][\._a-zA-Z0-9]*[\:]?[\s]' | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 8, | |||
'PARSER_CONTROL' => array( | |||
'NUMBERS' => array( | |||
'PRECHECK_RX' => '/[\da-fA-F\.\$\%\@]/' | |||
) | |||
) | |||
); | |||
?> |
@@ -0,0 +1,197 @@ | |||
<?php | |||
/************************************************************************************* | |||
* actionscript.php | |||
* ---------------- | |||
* Author: Steffen Krause (Steffen.krause@muse.de) | |||
* Copyright: (c) 2004 Steffen Krause, Nigel McNie (http://qbnz.com/highlighter) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2004/06/20 | |||
* | |||
* Actionscript language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2004/11/27 (1.0.1) | |||
* - Added support for multiple object splitters | |||
* 2004/10/27 (1.0.0) | |||
* - First Release | |||
* | |||
* TODO (updated 2004/11/27) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'ActionScript', | |||
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'ESCAPE_CHAR' => '\\', | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'#include', 'for', 'foreach', 'each', 'if', 'elseif', 'else', 'while', 'do', 'dowhile', | |||
'endwhile', 'endif', 'switch', 'case', 'endswitch', 'return', 'break', 'continue', 'in' | |||
), | |||
2 => array( | |||
'null', 'false', 'true', 'var', | |||
'default', 'function', 'class', | |||
'new', '_global' | |||
), | |||
3 => array( | |||
'#endinitclip', '#initclip', '__proto__', '_accProps', '_alpha', '_currentframe', | |||
'_droptarget', '_focusrect', '_framesloaded', '_height', '_highquality', '_lockroot', | |||
'_name', '_parent', '_quality', '_root', '_rotation', '_soundbuftime', '_target', '_totalframes', | |||
'_url', '_visible', '_width', '_x', '_xmouse', '_xscale', '_y', '_ymouse', '_yscale', 'abs', | |||
'Accessibility', 'acos', 'activityLevel', 'add', 'addListener', 'addPage', 'addProperty', | |||
'addRequestHeader', 'align', 'allowDomain', 'allowInsecureDomain', 'and', 'appendChild', | |||
'apply', 'Arguments', 'Array', 'asfunction', 'asin', 'atan', 'atan2', 'attachAudio', 'attachMovie', | |||
'attachSound', 'attachVideo', 'attributes', 'autosize', 'avHardwareDisable', 'background', | |||
'backgroundColor', 'BACKSPACE', 'bandwidth', 'beginFill', 'beginGradientFill', 'blockIndent', | |||
'bold', 'Boolean', 'border', 'borderColor', 'bottomScroll', 'bufferLength', 'bufferTime', | |||
'builtInItems', 'bullet', 'Button', 'bytesLoaded', 'bytesTotal', 'call', 'callee', 'caller', | |||
'Camera', 'capabilities', 'CAPSLOCK', 'caption', 'catch', 'ceil', 'charAt', 'charCodeAt', | |||
'childNodes', 'chr', 'clear', 'clearInterval', 'cloneNode', 'close', 'Color', 'concat', | |||
'connect', 'condenseWhite', 'constructor', 'contentType', 'ContextMenu', 'ContextMenuItem', | |||
'CONTROL', 'copy', 'cos', 'createElement', 'createEmptyMovieClip', 'createTextField', | |||
'createTextNode', 'currentFps', 'curveTo', 'CustomActions', 'customItems', 'data', 'Date', | |||
'deblocking', 'delete', 'DELETEKEY', 'docTypeDecl', 'domain', 'DOWN', | |||
'duplicateMovieClip', 'duration', 'dynamic', 'E', 'embedFonts', 'enabled', | |||
'END', 'endFill', 'ENTER', 'eq', 'Error', 'ESCAPE(Konstante)', 'escape(Funktion)', 'eval', | |||
'exactSettings', 'exp', 'extends', 'finally', 'findText', 'firstChild', 'floor', | |||
'flush', 'focusEnabled', 'font', 'fps', 'fromCharCode', 'fscommand', | |||
'gain', 'ge', 'get', 'getAscii', 'getBeginIndex', 'getBounds', 'getBytesLoaded', 'getBytesTotal', | |||
'getCaretIndex', 'getCode', 'getCount', 'getDate', 'getDay', 'getDepth', 'getEndIndex', 'getFocus', | |||
'getFontList', 'getFullYear', 'getHours', 'getInstanceAtDepth', 'getLocal', 'getMilliseconds', | |||
'getMinutes', 'getMonth', 'getNewTextFormat', 'getNextHighestDepth', 'getPan', 'getProgress', | |||
'getProperty', 'getRGB', 'getSeconds', 'getSelected', 'getSelectedText', 'getSize', 'getStyle', | |||
'getStyleNames', 'getSWFVersion', 'getText', 'getTextExtent', 'getTextFormat', 'getTextSnapshot', | |||
'getTime', 'getTimer', 'getTimezoneOffset', 'getTransform', 'getURL', 'getUTCDate', 'getUTCDay', | |||
'getUTCFullYear', 'getUTCHours', 'getUTCMilliseconds', 'getUTCMinutes', 'getUTCMonth', 'getUTCSeconds', | |||
'getVersion', 'getVolume', 'getYear', 'globalToLocal', 'goto', 'gotoAndPlay', 'gotoAndStop', | |||
'hasAccessibility', 'hasAudio', 'hasAudioEncoder', 'hasChildNodes', 'hasEmbeddedVideo', 'hasMP3', | |||
'hasPrinting', 'hasScreenBroadcast', 'hasScreenPlayback', 'hasStreamingAudio', 'hasStreamingVideo', | |||
'hasVideoEncoder', 'height', 'hide', 'hideBuiltInItems', 'hitArea', 'hitTest', 'hitTestTextNearPos', | |||
'HOME', 'hscroll', 'html', 'htmlText', 'ID3', 'ifFrameLoaded', 'ignoreWhite', 'implements', | |||
'import', 'indent', 'index', 'indexOf', 'Infinity', '-Infinity', 'INSERT', 'insertBefore', 'install', | |||
'instanceof', 'int', 'interface', 'isActive', 'isDebugger', 'isDown', 'isFinite', 'isNaN', 'isToggled', | |||
'italic', 'join', 'Key', 'language', 'lastChild', 'lastIndexOf', 'le', 'leading', 'LEFT', 'leftMargin', | |||
'length', 'level', 'lineStyle', 'lineTo', 'list', 'LN10', 'LN2', 'load', 'loadClip', 'loaded', 'loadMovie', | |||
'loadMovieNum', 'loadSound', 'loadVariables', 'loadVariablesNum', 'LoadVars', 'LocalConnection', | |||
'localFileReadDisable', 'localToGlobal', 'log', 'LOG10E', 'LOG2E', 'manufacturer', 'Math', 'max', | |||
'MAX_VALUE', 'maxChars', 'maxhscroll', 'maxscroll', 'mbchr', 'mblength', 'mbord', 'mbsubstring', 'menu', | |||
'message', 'Microphone', 'min', 'MIN_VALUE', 'MMExecute', 'motionLevel', 'motionTimeOut', 'Mouse', | |||
'mouseWheelEnabled', 'moveTo', 'Movieclip', 'MovieClipLoader', 'multiline', 'muted', 'name', 'names', 'NaN', | |||
'ne', 'NEGATIVE_INFINITY', 'NetConnection', 'NetStream', 'newline', 'nextFrame', | |||
'nextScene', 'nextSibling', 'nodeName', 'nodeType', 'nodeValue', 'not', 'Number', 'Object', | |||
'on', 'onActivity', 'onChanged', 'onClipEvent', 'onClose', 'onConnect', 'onData', 'onDragOut', | |||
'onDragOver', 'onEnterFrame', 'onID3', 'onKeyDown', 'onKeyUp', 'onKillFocus', 'onLoad', 'onLoadComplete', | |||
'onLoadError', 'onLoadInit', 'onLoadProgress', 'onLoadStart', 'onMouseDown', 'onMouseMove', 'onMouseUp', | |||
'onMouseWheel', 'onPress', 'onRelease', 'onReleaseOutside', 'onResize', 'onRollOut', 'onRollOver', | |||
'onScroller', 'onSelect', 'onSetFocus', 'onSoundComplete', 'onStatus', 'onUnload', 'onUpdate', 'onXML', | |||
'or(logischesOR)', 'ord', 'os', 'parentNode', 'parseCSS', 'parseFloat', 'parseInt', 'parseXML', 'password', | |||
'pause', 'PGDN', 'PGUP', 'PI', 'pixelAspectRatio', 'play', 'playerType', 'pop', 'position', | |||
'POSITIVE_INFINITY', 'pow', 'prevFrame', 'previousSibling', 'prevScene', 'print', 'printAsBitmap', | |||
'printAsBitmapNum', 'PrintJob', 'printNum', 'private', 'prototype', 'public', 'push', 'quality', | |||
'random', 'rate', 'registerClass', 'removeListener', 'removeMovieClip', 'removeNode', 'removeTextField', | |||
'replaceSel', 'replaceText', 'resolutionX', 'resolutionY', 'restrict', 'reverse', 'RIGHT', | |||
'rightMargin', 'round', 'scaleMode', 'screenColor', 'screenDPI', 'screenResolutionX', 'screenResolutionY', | |||
'scroll', 'seek', 'selectable', 'Selection', 'send', 'sendAndLoad', 'separatorBefore', 'serverString', | |||
'set', 'setvariable', 'setBufferTime', 'setClipboard', 'setDate', 'setFocus', 'setFullYear', 'setGain', | |||
'setHours', 'setInterval', 'setMask', 'setMilliseconds', 'setMinutes', 'setMode', 'setMonth', | |||
'setMotionLevel', 'setNewTextFormat', 'setPan', 'setProperty', 'setQuality', 'setRate', 'setRGB', | |||
'setSeconds', 'setSelectColor', 'setSelected', 'setSelection', 'setSilenceLevel', 'setStyle', | |||
'setTextFormat', 'setTime', 'setTransform', 'setUseEchoSuppression', 'setUTCDate', 'setUTCFullYear', | |||
'setUTCHours', 'setUTCMilliseconds', 'setUTCMinutes', 'setUTCMonth', 'setUTCSeconds', 'setVolume', | |||
'setYear', 'SharedObject', 'SHIFT(Konstante)', 'shift(Methode)', 'show', 'showMenu', 'showSettings', | |||
'silenceLevel', 'silenceTimeout', 'sin', 'size', 'slice', 'smoothing', 'sort', 'sortOn', 'Sound', 'SPACE', | |||
'splice', 'split', 'sqrt', 'SQRT1_2', 'SQRT2', 'Stage', 'start', 'startDrag', 'static', 'status', 'stop', | |||
'stopAllSounds', 'stopDrag', 'String', 'StyleSheet(Klasse)', 'styleSheet(Eigenschaft)', 'substr', | |||
'substring', 'super', 'swapDepths', 'System', 'TAB', 'tabChildren', 'tabEnabled', 'tabIndex', | |||
'tabStops', 'tan', 'target', 'targetPath', 'tellTarget', 'text', 'textColor', 'TextField', 'TextFormat', | |||
'textHeight', 'TextSnapshot', 'textWidth', 'this', 'throw', 'time', 'toggleHighQuality', 'toLowerCase', | |||
'toString', 'toUpperCase', 'trace', 'trackAsMenu', 'try', 'type', 'typeof', 'undefined', | |||
'underline', 'unescape', 'uninstall', 'unloadClip', 'unloadMovie', 'unLoadMovieNum', 'unshift', 'unwatch', | |||
'UP', 'updateAfterEvent', 'updateProperties', 'url', 'useCodePage', 'useEchoSuppression', 'useHandCursor', | |||
'UTC', 'valueOf', 'variable', 'version', 'Video', 'visible', 'void', 'watch', 'width', | |||
'with', 'wordwrap', 'XML', 'xmlDecl', 'XMLNode', 'XMLSocket' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #b1b100;', | |||
2 => 'color: #000000; font-weight: bold;', | |||
3 => 'color: #0066CC;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #808080; font-style: italic;', | |||
2 => 'color: #808080; font-style: italic;', | |||
'MULTI' => 'color: #808080; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #66cc66;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #ff0000;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #cc66cc;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #006600;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #66cc66;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '' | |||
), | |||
'OOLANG' => true, | |||
'OBJECT_SPLITTERS' => array( | |||
1 => '.' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array(), | |||
'HIGHLIGHT_STRICT_BLOCK' => array() | |||
); | |||
?> |
@@ -0,0 +1,473 @@ | |||
<?php | |||
/************************************************************************************* | |||
* actionscript3.php | |||
* ---------------- | |||
* Author: Jordi Boggiano (j.boggiano@seld.be) | |||
* Copyright: (c) 2007 Jordi Boggiano (http://www.seld.be/), Benny Baumann (http://qbnz.com/highlighter) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2007/11/26 | |||
* | |||
* ActionScript3 language file for GeSHi. | |||
* | |||
* All keywords scraped from the Flex 2.0.1 Documentation | |||
* | |||
* The default style is based on FlexBuilder2 coloring, with the addition of class, package, method and | |||
* constant names that are highlighted to help identifying problem when used on public pastebins. | |||
* | |||
* For styling, keywords data from 0 to 1 (accessible through .kw1, etc.) are described here : | |||
* | |||
* 1 : operators | |||
* 2 : 'var' keyword | |||
* 3 : 'function' keyword | |||
* 4 : 'class' and 'package' keywords | |||
* 5 : all flash.* class names plus Top Level classes, mx are excluded | |||
* 6 : all flash.* package names, mx are excluded | |||
* 7 : valid flash method names and properties (there is no type checks sadly, for example String().x will be highlighted as 'x' is valid, but obviously strings don't have a x property) | |||
* 8 : valid flash constant names (again, no type check) | |||
* | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2007/12/06 (1.0.7.22) | |||
* - Added the 'this' keyword (oops) | |||
* | |||
* TODO (updated 2007/11/30) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'ActionScript 3', | |||
'COMMENT_SINGLE' => array(1 => '//'), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
'COMMENT_REGEXP' => array( | |||
//Regular expressions | |||
2 => "/(?<=[\\s^])(s|tr|y)\\/(?!\s)(?:\\\\.|(?!\n)[^\\/\\\\])+(?<!\s)\\/(?!\s)(?:\\\\.|(?!\n)[^\\/\\\\])*(?<!\s)\\/[msixpogcde]*(?=[\\s$\\.\\;])|(?<=[\\s^(=])(m|q[qrwx]?)?\\/(?!\s)(?:\\\\.|(?!\n)[^\\/\\\\])+(?<!\s)\\/[msixpogc]*(?=[\\s$\\.\\,\\;\\)])/iU", | |||
), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'ESCAPE_CHAR' => '\\', | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'with', 'while', 'void', 'undefined', 'typeof', 'try', 'true', | |||
'throw', 'this', 'switch', 'super', 'set', 'return', 'public', 'protected', | |||
'private', 'null', 'new', 'is', 'internal', 'instanceof', 'in', | |||
'import', 'if', 'get', 'for', 'false', 'else', 'each', 'do', | |||
'delete', 'default', 'continue', 'catch', 'case', 'break', 'as', | |||
'extends' | |||
), | |||
2 => array( | |||
'var' | |||
), | |||
3 => array( | |||
'function' | |||
), | |||
4 => array( | |||
'class', 'package' | |||
), | |||
6 => array( | |||
'flash.xml', 'flash.utils', 'flash.ui', 'flash.text', | |||
'flash.system', 'flash.profiler', 'flash.printing', 'flash.net', | |||
'flash.media', 'flash.geom', 'flash.filters', 'flash.external', | |||
'flash.events', 'flash.errors', 'flash.display', | |||
'flash.accessibility' | |||
), | |||
7 => array( | |||
'zoom', 'year', 'y', 'xmlDecl', 'x', 'writeUnsignedInt', | |||
'writeUTFBytes', 'writeUTF', 'writeShort', 'writeObject', | |||
'writeMultiByte', 'writeInt', 'writeFloat', 'writeExternal', | |||
'writeDynamicProperty', 'writeDynamicProperties', 'writeDouble', | |||
'writeBytes', 'writeByte', 'writeBoolean', 'wordWrap', | |||
'willTrigger', 'width', 'volume', 'visible', 'videoWidth', | |||
'videoHeight', 'version', 'valueOf', 'value', 'usingTLS', | |||
'useRichTextClipboard', 'useHandCursor', 'useEchoSuppression', | |||
'useCodePage', 'url', 'uri', 'uploadCompleteData', 'upload', | |||
'updateProperties', 'updateAfterEvent', 'upState', 'unshift', | |||
'unlock', 'unload', 'union', 'unescapeMultiByte', 'unescape', | |||
'underline', 'uncompress', 'type', 'ty', 'tx', 'transparent', | |||
'translate', 'transformPoint', 'transform', 'trackAsMenu', 'track', | |||
'trace', 'totalMemory', 'totalFrames', 'topLeft', 'top', | |||
'togglePause', 'toXMLString', 'toUpperCase', 'toUTCString', | |||
'toTimeString', 'toString', 'toPrecision', 'toLowerCase', | |||
'toLocaleUpperCase', 'toLocaleTimeString', 'toLocaleString', | |||
'toLocaleLowerCase', 'toLocaleDateString', 'toFixed', | |||
'toExponential', 'toDateString', 'timezoneOffset', 'timerComplete', | |||
'timer', 'time', 'threshold', 'thickness', 'textWidth', | |||
'textSnapshot', 'textInput', 'textHeight', 'textColor', 'text', | |||
'test', 'target', 'tan', 'tabStops', 'tabIndexChange', 'tabIndex', | |||
'tabEnabledChange', 'tabEnabled', 'tabChildrenChange', | |||
'tabChildren', 'sync', 'swfVersion', 'swapChildrenAt', | |||
'swapChildren', 'subtract', 'substring', 'substr', 'styleSheet', | |||
'styleNames', 'strength', 'stopPropagation', | |||
'stopImmediatePropagation', 'stopDrag', 'stopAll', 'stop', 'status', | |||
'startDrag', 'start', 'stageY', 'stageX', 'stageWidth', | |||
'stageHeight', 'stageFocusRect', 'stage', 'sqrt', 'split', 'splice', | |||
'source', 'soundTransform', 'soundComplete', 'sortOn', 'sort', | |||
'songName', 'some', 'socketData', 'smoothing', 'slice', 'size', | |||
'sin', 'silent', 'silenceTimeout', 'silenceLevel', 'showSettings', | |||
'showRedrawRegions', 'showDefaultContextMenu', 'show', 'shortcut', | |||
'shiftKey', 'shift', 'sharpness', 'sharedEvents', 'shadowColor', | |||
'shadowAlpha', 'settings', 'setUseEchoSuppression', 'setUTCSeconds', | |||
'setUTCMonth', 'setUTCMinutes', 'setUTCMilliseconds', 'setUTCHours', | |||
'setUTCFullYear', 'setUTCDate', 'setTimeout', 'setTime', | |||
'setTextFormat', 'setStyle', 'setSilenceLevel', 'setSettings', | |||
'setSelection', 'setSelected', 'setSelectColor', 'setSeconds', | |||
'setQuality', 'setPropertyIsEnumerable', 'setProperty', 'setPixels', | |||
'setPixel32', 'setPixel', 'setNamespace', 'setName', | |||
'setMotionLevel', 'setMonth', 'setMode', 'setMinutes', | |||
'setMilliseconds', 'setLoopback', 'setLoopBack', 'setLocalName', | |||
'setKeyFrameInterval', 'setInterval', 'setHours', 'setFullYear', | |||
'setEmpty', 'setDirty', 'setDate', 'setCompositionString', | |||
'setClipboard', 'setChildren', 'setChildIndex', | |||
'setAdvancedAntiAliasingTable', 'serverString', 'separatorBefore', | |||
'sendToURL', 'send', 'selectionEndIndex', 'selectionBeginIndex', | |||
'selectable', 'select', 'seek', 'securityError', 'securityDomain', | |||
'secondsUTC', 'seconds', 'search', 'scrollV', 'scrollRect', | |||
'scrollH', 'scroll', 'screenResolutionY', 'screenResolutionX', | |||
'screenDPI', 'screenColor', 'scenes', 'scaleY', 'scaleX', | |||
'scaleMode', 'scale9Grid', 'scale', 'save', 'sandboxType', | |||
'sameDomain', 'running', 'round', 'rotation', 'rotate', 'root', | |||
'rollOver', 'rollOut', 'rightToRight', 'rightToLeft', 'rightPeak', | |||
'rightMargin', 'right', 'rewind', 'reverse', 'resume', 'restrict', | |||
'resize', 'reset', 'requestHeaders', 'replaceText', | |||
'replaceSelectedText', 'replace', 'repeatCount', 'render', | |||
'removedFromStage', 'removed', 'removeNode', 'removeNamespace', | |||
'removeEventListener', 'removeChildAt', 'removeChild', | |||
'relatedObject', 'registerFont', 'registerClassAlias', 'redOffset', | |||
'redMultiplier', 'rect', 'receiveVideo', 'receiveAudio', | |||
'readUnsignedShort', 'readUnsignedInt', 'readUnsignedByte', | |||
'readUTFBytes', 'readUTF', 'readShort', 'readObject', | |||
'readMultiByte', 'readInt', 'readFloat', 'readExternal', | |||
'readDouble', 'readBytes', 'readByte', 'readBoolean', 'ratios', | |||
'rate', 'random', 'quality', 'push', 'publish', 'proxyType', | |||
'prototype', 'propertyIsEnumerable', 'progress', | |||
'processingInstructions', 'printAsBitmap', 'print', | |||
'previousSibling', 'preventDefault', 'prevScene', 'prevFrame', | |||
'prettyPrinting', 'prettyIndent', 'preserveAlpha', 'prependChild', | |||
'prefix', 'pow', 'position', 'pop', 'polar', 'playerType', 'play', | |||
'pixelSnapping', 'pixelDissolve', 'pixelBounds', 'pixelAspectRatio', | |||
'perlinNoise', 'pause', 'parseXML', 'parseInt', 'parseFloat', | |||
'parseCSS', 'parse', 'parentNode', 'parentDomain', | |||
'parentAllowsChild', 'parent', 'parameters', 'paperWidth', | |||
'paperHeight', 'pan', 'paletteMap', 'pageWidth', 'pageHeight', | |||
'overState', 'outsideCutoff', 'os', 'orientation', 'open', | |||
'opaqueBackground', 'onPlayStatus', 'onMetaData', 'onCuePoint', | |||
'offsetPoint', 'offset', 'objectID', 'objectEncoding', 'numLock', | |||
'numLines', 'numFrames', 'numChildren', 'normalize', 'noise', | |||
'nodeValue', 'nodeType', 'nodeName', 'nodeKind', 'noAutoLabeling', | |||
'nextValue', 'nextSibling', 'nextScene', 'nextNameIndex', | |||
'nextName', 'nextFrame', 'netStatus', 'navigateToURL', | |||
'namespaceURI', 'namespaceDeclarations', 'namespace', 'names', | |||
'name', 'muted', 'multiline', 'moveTo', 'mouseY', 'mouseX', | |||
'mouseWheelEnabled', 'mouseWheel', 'mouseUp', 'mouseTarget', | |||
'mouseOver', 'mouseOut', 'mouseMove', 'mouseLeave', | |||
'mouseFocusChange', 'mouseEnabled', 'mouseDown', 'mouseChildren', | |||
'motionTimeout', 'motionLevel', 'monthUTC', 'month', | |||
'modificationDate', 'mode', 'minutesUTC', 'minutes', 'min', | |||
'millisecondsUTC', 'milliseconds', 'method', 'message', 'merge', | |||
'menuSelect', 'menuItemSelect', 'maxScrollV', 'maxScrollH', | |||
'maxLevel', 'maxChars', 'max', 'matrixY', 'matrixX', 'matrix', | |||
'match', 'mask', 'mapPoint', 'mapBitmap', 'map', 'manufacturer', | |||
'macType', 'loopback', 'loop', 'log', 'lock', 'localeCompare', | |||
'localY', 'localX', 'localToGlobal', 'localName', | |||
'localFileReadDisable', 'loaderURL', 'loaderInfo', 'loader', | |||
'loadPolicyFile', 'loadBytes', 'load', 'liveDelay', 'link', | |||
'lineTo', 'lineStyle', 'lineGradientStyle', 'level', | |||
'letterSpacing', 'length', 'leftToRight', 'leftToLeft', 'leftPeak', | |||
'leftMargin', 'left', 'leading', 'lastIndexOf', 'lastIndex', | |||
'lastChild', 'language', 'labels', 'knockout', 'keyUp', | |||
'keyLocation', 'keyFrameInterval', 'keyFocusChange', 'keyDown', | |||
'keyCode', 'kerning', 'join', 'italic', 'isXMLName', | |||
'isPrototypeOf', 'isNaN', 'isFocusInaccessible', 'isFinite', | |||
'isEmpty', 'isDefaultPrevented', 'isDebugger', 'isBuffering', | |||
'isAttribute', 'isAccessible', 'ioError', 'invert', 'invalidate', | |||
'intersects', 'intersection', 'interpolate', 'insideCutoff', | |||
'insertChildBefore', 'insertChildAfter', 'insertBefore', 'inner', | |||
'init', 'info', 'inflatePoint', 'inflate', 'indexOf', 'index', | |||
'indent', 'inScopeNamespaces', 'imeComposition', 'ime', | |||
'ignoreWhitespace', 'ignoreWhite', 'ignoreProcessingInstructions', | |||
'ignoreComments', 'ignoreCase', 'identity', 'idMap', 'id3', | |||
'httpStatus', 'htmlText', 'hoursUTC', 'hours', 'hitTestTextNearPos', | |||
'hitTestState', 'hitTestPoint', 'hitTestObject', 'hitTest', | |||
'hitArea', 'highlightColor', 'highlightAlpha', 'hideObject', | |||
'hideBuiltInItems', 'hide', 'height', 'hasVideoEncoder', 'hasTLS', | |||
'hasStreamingVideo', 'hasStreamingAudio', 'hasSimpleContent', | |||
'hasScreenPlayback', 'hasScreenBroadcast', 'hasProperty', | |||
'hasPrinting', 'hasOwnProperty', 'hasMP3', 'hasIME', 'hasGlyphs', | |||
'hasEventListener', 'hasEmbeddedVideo', 'hasDefinition', | |||
'hasComplexContent', 'hasChildNodes', 'hasAudioEncoder', 'hasAudio', | |||
'hasAccessibility', 'gridFitType', 'greenOffset', 'greenMultiplier', | |||
'graphics', 'gotoAndStop', 'gotoAndPlay', 'globalToLocal', 'global', | |||
'getUTCSeconds', 'getUTCMonth', 'getUTCMinutes', | |||
'getUTCMilliseconds', 'getUTCHours', 'getUTCFullYear', 'getUTCDay', | |||
'getUTCDate', 'getTimezoneOffset', 'getTimer', 'getTime', | |||
'getTextRunInfo', 'getTextFormat', 'getText', 'getStyle', | |||
'getStackTrace', 'getSelectedText', 'getSelected', 'getSeconds', | |||
'getRemote', 'getRect', 'getQualifiedSuperclassName', | |||
'getQualifiedClassName', 'getProperty', 'getPrefixForNamespace', | |||
'getPixels', 'getPixel32', 'getPixel', 'getParagraphLength', | |||
'getObjectsUnderPoint', 'getNamespaceForPrefix', 'getMonth', | |||
'getMinutes', 'getMilliseconds', 'getMicrophone', 'getLocal', | |||
'getLineText', 'getLineOffset', 'getLineMetrics', 'getLineLength', | |||
'getLineIndexOfChar', 'getLineIndexAtPoint', 'getImageReference', | |||
'getHours', 'getFullYear', 'getFirstCharInParagraph', | |||
'getDescendants', 'getDefinitionByName', 'getDefinition', 'getDay', | |||
'getDate', 'getColorBoundsRect', 'getClassByAlias', 'getChildIndex', | |||
'getChildByName', 'getChildAt', 'getCharIndexAtPoint', | |||
'getCharBoundaries', 'getCamera', 'getBounds', 'genre', | |||
'generateFilterRect', 'gain', 'fullYearUTC', 'fullYear', | |||
'fullScreen', 'fscommand', 'fromCharCode', 'framesLoaded', | |||
'frameRate', 'frame', 'fps', 'forwardAndBack', 'formatToString', | |||
'forceSimple', 'forEach', 'fontType', 'fontStyle', 'fontSize', | |||
'fontName', 'font', 'focusRect', 'focusOut', 'focusIn', 'focus', | |||
'flush', 'floor', 'floodFill', 'firstChild', 'findText', 'filters', | |||
'filter', 'fillRect', 'fileList', 'extension', 'extended', 'exp', | |||
'exec', 'exactSettings', 'every', 'eventPhase', 'escapeMultiByte', | |||
'escape', 'errorID', 'error', 'equals', 'enumerateFonts', | |||
'enterFrame', 'endian', 'endFill', 'encodeURIComponent', | |||
'encodeURI', 'enabled', 'embedFonts', 'elements', | |||
'dynamicPropertyWriter', 'dropTarget', 'drawRoundRect', 'drawRect', | |||
'drawEllipse', 'drawCircle', 'draw', 'download', 'downState', | |||
'doubleClickEnabled', 'doubleClick', 'dotall', 'domain', | |||
'docTypeDecl', 'doConversion', 'divisor', 'distance', 'dispose', | |||
'displayState', 'displayMode', 'displayAsPassword', 'dispatchEvent', | |||
'description', 'describeType', 'descent', 'descendants', | |||
'deltaTransformPoint', 'delta', 'deleteProperty', 'delay', | |||
'defaultTextFormat', 'defaultSettings', 'defaultObjectEncoding', | |||
'decodeURIComponent', 'decodeURI', 'decode', 'deblocking', | |||
'deactivate', 'dayUTC', 'day', 'dateUTC', 'date', 'dataFormat', | |||
'data', 'd', 'customItems', 'curveTo', 'currentTarget', | |||
'currentScene', 'currentLabels', 'currentLabel', 'currentFrame', | |||
'currentFPS', 'currentDomain', 'currentCount', 'ctrlKey', 'creator', | |||
'creationDate', 'createTextNode', 'createGradientBox', | |||
'createElement', 'createBox', 'cos', 'copyPixels', 'copyChannel', | |||
'copy', 'conversionMode', 'contextMenuOwner', 'contextMenu', | |||
'contentType', 'contentLoaderInfo', 'content', 'containsRect', | |||
'containsPoint', 'contains', 'constructor', 'connectedProxyType', | |||
'connected', 'connect', 'condenseWhite', 'concatenatedMatrix', | |||
'concatenatedColorTransform', 'concat', 'computeSpectrum', | |||
'compress', 'componentY', 'componentX', 'complete', 'compare', | |||
'comments', 'comment', 'colors', 'colorTransform', 'color', 'code', | |||
'close', 'cloneNode', 'clone', 'client', 'click', 'clearTimeout', | |||
'clearInterval', 'clear', 'clamp', 'children', 'childNodes', | |||
'childIndex', 'childAllowsParent', 'child', 'checkPolicyFile', | |||
'charCount', 'charCodeAt', 'charCode', 'charAt', 'changeList', | |||
'change', 'ceil', 'caretIndex', 'caption', 'capsLock', 'cancelable', | |||
'cancel', 'callee', 'callProperty', 'call', 'cacheAsBitmap', 'c', | |||
'bytesTotal', 'bytesLoaded', 'bytesAvailable', 'buttonMode', | |||
'buttonDown', 'bullet', 'builtInItems', 'bufferTime', | |||
'bufferLength', 'bubbles', 'browse', 'bottomScrollV', 'bottomRight', | |||
'bottom', 'borderColor', 'border', 'bold', 'blurY', 'blurX', | |||
'blueOffset', 'blueMultiplier', 'blockIndent', 'blendMode', | |||
'bitmapData', 'bias', 'beginGradientFill', 'beginFill', | |||
'beginBitmapFill', 'bandwidth', 'backgroundColor', 'background', | |||
'b', 'available', 'avHardwareDisable', 'autoSize', 'attributes', | |||
'attribute', 'attachNetStream', 'attachCamera', 'attachAudio', | |||
'atan2', 'atan', 'asyncError', 'asin', 'ascent', 'artist', | |||
'areSoundsInaccessible', 'areInaccessibleObjectsUnderPoint', | |||
'applyFilter', 'apply', 'applicationDomain', 'appendText', | |||
'appendChild', 'antiAliasType', 'angle', 'alwaysShowSelection', | |||
'altKey', 'alphas', 'alphaOffset', 'alphaMultiplier', 'alpha', | |||
'allowInsecureDomain', 'allowDomain', 'align', 'album', | |||
'addedToStage', 'added', 'addPage', 'addNamespace', 'addHeader', | |||
'addEventListener', 'addChildAt', 'addChild', 'addCallback', 'add', | |||
'activityLevel', 'activity', 'active', 'activating', 'activate', | |||
'actionScriptVersion', 'acos', 'accessibilityProperties', 'abs' | |||
), | |||
8 => array( | |||
'WRAP', 'VERTICAL', 'VARIABLES', | |||
'UTC', 'UPLOAD_COMPLETE_DATA', 'UP', 'UNLOAD', 'UNKNOWN', | |||
'UNIQUESORT', 'TOP_RIGHT', 'TOP_LEFT', 'TOP', 'TIMER_COMPLETE', | |||
'TIMER', 'TEXT_NODE', 'TEXT_INPUT', 'TEXT', 'TAB_INDEX_CHANGE', | |||
'TAB_ENABLED_CHANGE', 'TAB_CHILDREN_CHANGE', 'TAB', 'SYNC', | |||
'SUBTRACT', 'SUBPIXEL', 'STATUS', 'STANDARD', 'SQUARE', 'SQRT2', | |||
'SQRT1_2', 'SPACE', 'SOUND_COMPLETE', 'SOCKET_DATA', 'SHOW_ALL', | |||
'SHIFT', 'SETTINGS_MANAGER', 'SELECT', 'SECURITY_ERROR', 'SCROLL', | |||
'SCREEN', 'ROUND', 'ROLL_OVER', 'ROLL_OUT', 'RIGHT', 'RGB', | |||
'RETURNINDEXEDARRAY', 'RESIZE', 'REPEAT', 'RENDER', | |||
'REMOVED_FROM_STAGE', 'REMOVED', 'REMOTE', 'REGULAR', 'REFLECT', | |||
'RED', 'RADIAL', 'PROGRESS', 'PRIVACY', 'POST', 'POSITIVE_INFINITY', | |||
'PORTRAIT', 'PIXEL', 'PI', 'PENDING', 'PAGE_UP', 'PAGE_DOWN', 'PAD', | |||
'OVERLAY', 'OUTER', 'OPEN', 'NaN', 'NUM_PAD', 'NUMPAD_SUBTRACT', | |||
'NUMPAD_MULTIPLY', 'NUMPAD_ENTER', 'NUMPAD_DIVIDE', | |||
'NUMPAD_DECIMAL', 'NUMPAD_ADD', 'NUMPAD_9', 'NUMPAD_8', 'NUMPAD_7', | |||
'NUMPAD_6', 'NUMPAD_5', 'NUMPAD_4', 'NUMPAD_3', 'NUMPAD_2', | |||
'NUMPAD_1', 'NUMPAD_0', 'NUMERIC', 'NO_SCALE', 'NO_BORDER', | |||
'NORMAL', 'NONE', 'NEVER', 'NET_STATUS', 'NEGATIVE_INFINITY', | |||
'MULTIPLY', 'MOUSE_WHEEL', 'MOUSE_UP', 'MOUSE_OVER', 'MOUSE_OUT', | |||
'MOUSE_MOVE', 'MOUSE_LEAVE', 'MOUSE_FOCUS_CHANGE', 'MOUSE_DOWN', | |||
'MITER', 'MIN_VALUE', 'MICROPHONE', 'MENU_SELECT', | |||
'MENU_ITEM_SELECT', 'MEDIUM', 'MAX_VALUE', 'LOW', 'LOG2E', 'LOG10E', | |||
'LOCAL_WITH_NETWORK', 'LOCAL_WITH_FILE', 'LOCAL_TRUSTED', | |||
'LOCAL_STORAGE', 'LN2', 'LN10', 'LITTLE_ENDIAN', 'LINK', | |||
'LINEAR_RGB', 'LINEAR', 'LIGHT_COLOR', 'LIGHTEN', 'LEFT', 'LCD', | |||
'LAYER', 'LANDSCAPE', 'KOREAN', 'KEY_UP', 'KEY_FOCUS_CHANGE', | |||
'KEY_DOWN', 'JUSTIFY', 'JAPANESE_KATAKANA_HALF', | |||
'JAPANESE_KATAKANA_FULL', 'JAPANESE_HIRAGANA', 'Infinity', 'ITALIC', | |||
'IO_ERROR', 'INVERT', 'INSERT', 'INPUT', 'INNER', 'INIT', | |||
'IME_COMPOSITION', 'IGNORE', 'ID3', 'HTTP_STATUS', 'HORIZONTAL', | |||
'HOME', 'HIGH', 'HARDLIGHT', 'GREEN', 'GET', 'FULLSCREEN', 'FULL', | |||
'FOCUS_OUT', 'FOCUS_IN', 'FLUSHED', 'FLASH9', 'FLASH8', 'FLASH7', | |||
'FLASH6', 'FLASH5', 'FLASH4', 'FLASH3', 'FLASH2', 'FLASH1', 'F9', | |||
'F8', 'F7', 'F6', 'F5', 'F4', 'F3', 'F2', 'F15', 'F14', 'F13', | |||
'F12', 'F11', 'F10', 'F1', 'EXACT_FIT', 'ESCAPE', 'ERROR', 'ERASE', | |||
'ENTER_FRAME', 'ENTER', 'END', 'EMBEDDED', 'ELEMENT_NODE', 'E', | |||
'DYNAMIC', 'DOWN', 'DOUBLE_CLICK', 'DIFFERENCE', 'DEVICE', | |||
'DESCENDING', 'DELETE', 'DEFAULT', 'DEACTIVATE', 'DATA', | |||
'DARK_COLOR', 'DARKEN', 'CRT', 'CONTROL', 'CONNECT', 'COMPLETE', | |||
'COLOR', 'CLOSE', 'CLICK', 'CLAMP', 'CHINESE', 'CHANGE', 'CENTER', | |||
'CASEINSENSITIVE', 'CAPTURING_PHASE', 'CAPS_LOCK', 'CANCEL', | |||
'CAMERA', 'BUBBLING_PHASE', 'BOTTOM_RIGHT', 'BOTTOM_LEFT', 'BOTTOM', | |||
'BOLD_ITALIC', 'BOLD', 'BLUE', 'BINARY', 'BIG_ENDIAN', 'BEVEL', | |||
'BEST', 'BACKSPACE', 'AUTO', 'AT_TARGET', 'ASYNC_ERROR', 'AMF3', | |||
'AMF0', 'ALWAYS', 'ALPHANUMERIC_HALF', 'ALPHANUMERIC_FULL', 'ALPHA', | |||
'ADVANCED', 'ADDED_TO_STAGE', 'ADDED', 'ADD', 'ACTIVITY', | |||
'ACTIONSCRIPT3', 'ACTIONSCRIPT2' | |||
), | |||
//FIX: Must be last in order to avoid conflicts with keywords present | |||
//in other keyword groups, that might get highlighted as part of the URL. | |||
//I know this is not a proper work-around, but should do just fine. | |||
5 => array( | |||
'uint', 'int', 'arguments', 'XMLSocket', 'XMLNodeType', 'XMLNode', | |||
'XMLList', 'XMLDocument', 'XML', 'Video', 'VerifyError', | |||
'URLVariables', 'URLStream', 'URLRequestMethod', 'URLRequestHeader', | |||
'URLRequest', 'URLLoaderDataFormat', 'URLLoader', 'URIError', | |||
'TypeError', 'Transform', 'TimerEvent', 'Timer', 'TextSnapshot', | |||
'TextRenderer', 'TextLineMetrics', 'TextFormatAlign', 'TextFormat', | |||
'TextFieldType', 'TextFieldAutoSize', 'TextField', 'TextEvent', | |||
'TextDisplayMode', 'TextColorType', 'System', 'SyntaxError', | |||
'SyncEvent', 'StyleSheet', 'String', 'StatusEvent', 'StaticText', | |||
'StageScaleMode', 'StageQuality', 'StageAlign', 'Stage', | |||
'StackOverflowError', 'Sprite', 'SpreadMethod', 'SoundTransform', | |||
'SoundMixer', 'SoundLoaderContext', 'SoundChannel', 'Sound', | |||
'Socket', 'SimpleButton', 'SharedObjectFlushStatus', 'SharedObject', | |||
'Shape', 'SecurityPanel', 'SecurityErrorEvent', 'SecurityError', | |||
'SecurityDomain', 'Security', 'ScriptTimeoutError', 'Scene', | |||
'SWFVersion', 'Responder', 'RegExp', 'ReferenceError', 'Rectangle', | |||
'RangeError', 'QName', 'Proxy', 'ProgressEvent', | |||
'PrintJobOrientation', 'PrintJobOptions', 'PrintJob', 'Point', | |||
'PixelSnapping', 'ObjectEncoding', 'Object', 'Number', 'NetStream', | |||
'NetStatusEvent', 'NetConnection', 'Namespace', 'MovieClip', | |||
'MouseEvent', 'Mouse', 'MorphShape', 'Microphone', 'MemoryError', | |||
'Matrix', 'Math', 'LocalConnection', 'LoaderInfo', 'LoaderContext', | |||
'Loader', 'LineScaleMode', 'KeyboardEvent', 'Keyboard', | |||
'KeyLocation', 'JointStyle', 'InvalidSWFError', | |||
'InterpolationMethod', 'InteractiveObject', 'IllegalOperationError', | |||
'IOErrorEvent', 'IOError', 'IMEEvent', 'IMEConversionMode', 'IME', | |||
'IExternalizable', 'IEventDispatcher', 'IDynamicPropertyWriter', | |||
'IDynamicPropertyOutput', 'IDataOutput', 'IDataInput', 'ID3Info', | |||
'IBitmapDrawable', 'HTTPStatusEvent', 'GridFitType', 'Graphics', | |||
'GradientType', 'GradientGlowFilter', 'GradientBevelFilter', | |||
'GlowFilter', 'Function', 'FrameLabel', 'FontType', 'FontStyle', | |||
'Font', 'FocusEvent', 'FileReferenceList', 'FileReference', | |||
'FileFilter', 'ExternalInterface', 'EventPhase', 'EventDispatcher', | |||
'Event', 'EvalError', 'ErrorEvent', 'Error', 'Endian', 'EOFError', | |||
'DropShadowFilter', 'DisplayObjectContainer', 'DisplayObject', | |||
'DisplacementMapFilterMode', 'DisplacementMapFilter', 'Dictionary', | |||
'DefinitionError', 'Date', 'DataEvent', 'ConvolutionFilter', | |||
'ContextMenuItem', 'ContextMenuEvent', 'ContextMenuBuiltInItems', | |||
'ContextMenu', 'ColorTransform', 'ColorMatrixFilter', 'Class', | |||
'CapsStyle', 'Capabilities', 'Camera', 'CSMSettings', 'ByteArray', | |||
'Boolean', 'BlurFilter', 'BlendMode', 'BitmapFilterType', | |||
'BitmapFilterQuality', 'BitmapFilter', 'BitmapDataChannel', | |||
'BitmapData', 'Bitmap', 'BevelFilter', 'AsyncErrorEvent', 'Array', | |||
'ArgumentError', 'ApplicationDomain', 'AntiAliasType', | |||
'ActivityEvent', 'ActionScriptVersion', 'AccessibilityProperties', | |||
'Accessibility', 'AVM1Movie' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'(', ')', '[', ']', '{', '}', '!', '%', '&', '*', '|', '/', '<', '>', '^', '-', '+', '~', '?', ':', ';', '.', ',' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => true, | |||
2 => true, | |||
3 => true, | |||
4 => true, | |||
5 => true, | |||
6 => true, | |||
7 => true, | |||
8 => true | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #0033ff; font-weight: bold;', | |||
2 => 'color: #6699cc; font-weight: bold;', | |||
3 => 'color: #339966; font-weight: bold;', | |||
4 => 'color: #9900cc; font-weight: bold;', | |||
5 => 'color: #004993;', | |||
6 => 'color: #004993;', | |||
7 => 'color: #004993;', | |||
8 => 'color: #004993;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #009900; font-style: italic;', | |||
2 => 'color: #009966; font-style: italic;', | |||
'MULTI' => 'color: #3f5fbf;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => '' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #000000;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #990000;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #000000; font-weight:bold;' | |||
), | |||
'METHODS' => array( | |||
0 => 'color: #000000;', | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #000066; font-weight: bold;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '', | |||
4 => '', | |||
5 => 'http://www.google.com/search?q={FNAMEL}%20inurl:http://livedocs.adobe.com/flex/201/langref/%20inurl:{FNAMEL}.html', | |||
6 => '', | |||
7 => '', | |||
8 => '' | |||
), | |||
'OOLANG' => false,//Save some time as OO identifiers aren't used | |||
'OBJECT_SPLITTERS' => array( | |||
// commented out because it's not very relevant for AS, as all properties, methods and constants are dot-accessed. | |||
// I believe it's preferable to have package highlighting for example, which is not possible with this enabled. | |||
// 0 => '.' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array(), | |||
'HIGHLIGHT_STRICT_BLOCK' => array() | |||
); | |||
?> |
@@ -0,0 +1,135 @@ | |||
<?php | |||
/************************************************************************************* | |||
* ada.php | |||
* ------- | |||
* Author: Tux (tux@inmail.cz) | |||
* Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2004/07/29 | |||
* | |||
* Ada language file for GeSHi. | |||
* Words are from SciTe configuration file | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2004/11/27 (1.0.2) | |||
* - Added support for multiple object splitters | |||
* 2004/10/27 (1.0.1) | |||
* - Removed apostrophe as string delimiter | |||
* - Added URL support | |||
* 2004/08/05 (1.0.0) | |||
* - First Release | |||
* | |||
* TODO (updated 2004/11/27) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'Ada', | |||
'COMMENT_SINGLE' => array(1 => '--'), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"'), | |||
'ESCAPE_CHAR' => '\\', | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'begin', 'declare', 'do', 'else', 'elsif', 'exception', 'for', 'if', | |||
'is', 'loop', 'while', 'then', 'end', 'select', 'case', 'until', | |||
'goto', 'return' | |||
), | |||
2 => array( | |||
'abs', 'and', 'at', 'mod', 'not', 'or', 'rem', 'xor' | |||
), | |||
3 => array( | |||
'abort', 'abstract', 'accept', 'access', 'aliased', 'all', 'array', | |||
'body', 'constant', 'delay', 'delta', 'digits', 'entry', 'exit', | |||
'function', 'generic', 'in', 'interface', 'limited', 'new', 'null', | |||
'of', 'others', 'out', 'overriding', 'package', 'pragma', 'private', | |||
'procedure', 'protected', 'raise', 'range', 'record', 'renames', | |||
'requeue', 'reverse', 'separate', 'subtype', 'synchronized', | |||
'tagged', 'task', 'terminate', 'type', 'use', 'when', 'with' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'(', ')' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #00007f;', | |||
2 => 'color: #0000ff;', | |||
3 => 'color: #46aa03; font-weight:bold;', | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #66cc66;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #adadad; font-style: italic;', | |||
'MULTI' => 'color: #808080; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #66cc66;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #7f007f;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #ff0000;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #202020;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #66cc66;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '' | |||
), | |||
'OOLANG' => true, | |||
'OBJECT_SPLITTERS' => array( | |||
1 => '.' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
) | |||
); | |||
?> |
@@ -0,0 +1,329 @@ | |||
<?php | |||
/************************************************************************************* | |||
* algol68.php | |||
* -------- | |||
* Author: Neville Dempsey (NevilleD.sourceforge@sgr-a.net) | |||
* Copyright: (c) 2010 Neville Dempsey (https://sourceforge.net/projects/algol68/files/) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2010/04/24 | |||
* | |||
* ALGOL 68 language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2010/04/24 (1.0.8.8.0) | |||
* - First Release - machine generated by http://rosettacode.org/geshi/ | |||
* 2010/05/24 (1.0.8.8.1) | |||
* - #2324 - converted comment detection to RegEx | |||
* 2010/06/16 (1.0.8.8.2) | |||
* - separate symbols from keywords - quick fix | |||
* 2010/06/16 (1.0.8.8.3) | |||
* - reverse length order symbols | |||
* - Add RegEx for BITS and REAL literals (INT to do) | |||
* - recognise LONG and SHORT prefixes to literals | |||
* 2010/07/23 (1.0.8.8.4) | |||
* - fix errors detected by langcheck.php, eg rm tab, fix indenting, rm duplicate keywords, fix symbols as keywords etc | |||
* - removed bulk of local variables from name space. | |||
* - unfolded arrays | |||
* | |||
* TODO (updated yyyy/mm/dd) | |||
* ------------------------- | |||
* - Use "Parser Control" to fix KEYWORD parsing, eg: (INT minus one= -1; print(ABSminus one)) | |||
* - Parse $FORMATS$ more fully - if possible. | |||
* - Pull reserved words from the source of A68G and A68RS | |||
* - Pull stdlib PROC/OP/MODE symbols from the soruce of A68G and A68RS | |||
* - Pull PROC/OP/MODE extensions from the soruce of A68G and A68RS | |||
* - Use RegEx to detect extended precision PROC names, eg 'long long sin' etc | |||
* - Use RegEx to detect white space std PROC names, eg 'new line' | |||
* - Use RegEx to detect white space ext PROC names, eg 'cgs speed of light' | |||
* - Use RegEx to detect BOLD symbols, eg userdefined MODEs and OPs | |||
* - Add REgEx for INT literals - Adding INT breaks formatting... | |||
* - Adding PIPE as a key word breaks formatting of "|" symbols!! | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
if(!function_exists('geshi_langfile_algol68_vars')) { | |||
function geshi_langfile_algol68_vars(){ | |||
$pre='(?<![0-9a-z_\.])'; | |||
$post='?(?![0-9a-z]|\.(?:[eE][+\-]?)?\d)'; | |||
$post=""; # assuming the RegEx is greedy # | |||
$_="\s*"; | |||
$srad="Rr"; $rrad="[".$srad."]"; # either one digit, OR opt-space in digits # | |||
$sbin="0-1"; $rbin="[".$sbin."]"; $_bin=$rbin."(?:[".$sbin."\s]*".$rbin."|)"; | |||
$snib="0-3"; $rnib="[".$snib."]"; $_nib=$rnib."(?:[".$snib."\s]*".$rnib."|)"; | |||
$soct="0-7"; $roct="[".$soct."]"; $_oct=$roct."(?:[".$soct."\s]*".$roct."|)"; | |||
$sdec="0-9"; $rdec="[".$sdec."]"; $_dec=$rdec."(?:[".$sdec."\s]*".$rdec."|)"; | |||
$shex="0-9A-Fa-f"; $rhex="[".$shex."]"; $_hex=$rhex."(?:[".$shex."\s]*".$rhex."|)"; | |||
# Define BITS: # | |||
$prebits=$pre; $postbits=$post; | |||
$bl="2".$_.$rrad.$_.$_bin; | |||
$bl=$bl."|"."2".$_.$rrad.$_.$_bin; | |||
$bl=$bl."|"."4".$_.$rrad.$_.$_nib; | |||
$bl=$bl."|"."8".$_.$rrad.$_.$_oct; | |||
$bl=$bl."|"."1".$_."0".$_.$rrad.$_.$_dec; | |||
$bl=$bl."|"."1".$_."6".$_.$rrad.$_.$_hex; | |||
# Define INT: # | |||
$preint=$pre; $postint=$post; | |||
# for some reason ".0 e - 2" is not recognised, but ".0 e + 2" IS! | |||
# work around: remove spaces between sign and digits! Maybe because | |||
# of the Unary '-' Operator | |||
$sign_="(?:-|\-|[-]|[\-]|\+|)"; # attempts # | |||
$sign_="(?:-\s*|\+\s*|)"; # n.b. sign is followed by white space # | |||
$_int=$sign_.$_dec; | |||
$il= $_int; # +_9 # | |||
$GESHI_NUMBER_INT_BASIC='(?:(?<![0-9a-z_\.%])|(?<=\.\.))(?<![\d\.]e[+\-])([1-9]\d*?|0)(?![0-9a-z]|\.(?:[eE][+\-]?)?\d)'; | |||
# Define REAL: # | |||
$prereal=$pre; $postreal=$post; | |||
$sexp="Ee\\\\"; $_exp="(?:โจ|[".$sexp."])".$_.$_int; | |||
$_decimal="[.]".$_.$_dec; | |||
# Add permitted permutations of various parts # | |||
$rl= $_int.$_.$_decimal.$_.$_exp; # +_9_._9_e_+_9 # | |||
$rl=$rl."|".$_int.$_."[.]".$_.$_exp; # +_9_.___e_+_9 # | |||
$rl=$rl."|".$_int.$_.$_exp; # +_9_____e_+_9 # | |||
$rl=$rl."|".$sign_.$_decimal.$_.$_exp; # +___._9_e_+_9 # | |||
$rl=$rl."|".$_int.$_.$_decimal; # +_9_._9 # | |||
$rl=$rl."|".$sign_.$_decimal; # +___._9 # | |||
# The following line damaged formatting... | |||
#$rl=$rl."|".$_int; # +_9 # | |||
# Apparently Algol68 does not support '2.', c.f. Algol 68G | |||
#$rl=$rl."|".$_int.$_."[.]"; # +_9_. # | |||
# Literal prefixes are overridden by KEYWORDS :-( | |||
$LONGS="(?:(?:(LONG\s+)*|(SHORT\s+))*|)"; | |||
return array( | |||
"BITS" => $prebits.$LONGS."(?:".$bl.")".$postbits, | |||
"INT" => $preint.$LONGS."(?:".$il.")".$postint, | |||
"REAL" => $prereal.$LONGS."(?:".$rl.")".$postreal, | |||
"BOLD" => 'color: #b1b100; font-weight: bold;', | |||
"ITALIC" => 'color: #b1b100;', # procedures traditionally italic # | |||
"NONSTD" => 'color: #FF0000; font-weight: bold;', # RED # | |||
"COMMENT" => 'color: #666666; font-style: italic;' | |||
); | |||
} | |||
} | |||
$a68=geshi_langfile_algol68_vars(); | |||
$language_data = array( | |||
'LANG_NAME' => 'ALGOL 68', | |||
'COMMENT_SINGLE' => array(), | |||
'COMMENT_MULTI' => array( | |||
'ยข' => 'ยข', | |||
'ยฃ' => 'ยฃ', | |||
'#' => '#', | |||
), | |||
'COMMENT_REGEXP' => array( | |||
1 => '/\bCO((?:MMENT)?)\b.*?\bCO\\1\b/i', | |||
2 => '/\bPR((?:AGMAT)?)\b.*?\bPR\\1\b/i', | |||
3 => '/\bQUOTE\b.*?\bQUOTE\b/i' | |||
), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"'), | |||
'ESCAPE_CHAR' => '"', | |||
'NUMBERS' => GESHI_NUMBER_HEX_SUFFIX, # Warning: Feature!! # | |||
# GESHI_NUMBER_HEX_SUFFIX, # Attempt ignore default # | |||
'KEYWORDS' => array( | |||
# Extensions | |||
1 => array('KEEP', 'FINISH', 'USE', 'SYSPROCS', 'IOSTATE', 'USING', 'ENVIRON', 'PROGRAM', 'CONTEXT'), | |||
# 2 => array('CASE', 'IN', 'OUSE', 'IN', 'OUT', 'ESAC', '(', '|', '|:', ')', 'FOR', 'FROM', 'TO', 'BY', 'WHILE', 'DO', 'OD', 'IF', 'THEN', 'ELIF', 'THEN', 'ELSE', 'FI', 'PAR', 'BEGIN', 'EXIT', 'END', 'GO', 'GOTO', 'FORALL', 'UPTO', 'DOWNTO', 'FOREACH', 'ASSERT'), # | |||
2 => array('CASE', 'IN', 'OUSE', /* 'IN',*/ 'OUT', 'ESAC', 'PAR', 'BEGIN', 'EXIT', 'END', 'GO TO', 'GOTO', 'FOR', 'FROM', 'TO', 'BY', 'WHILE', 'DO', 'OD', 'IF', 'THEN', 'ELIF', /* 'THEN',*/ 'ELSE', 'FI' ), | |||
3 => array('BITS', 'BOOL', 'BYTES', 'CHAR', 'COMPL', 'INT', 'REAL', 'SEMA', 'STRING', 'VOID'), | |||
4 => array('MODE', 'OP', 'PRIO', 'PROC', 'FLEX', 'HEAP', 'LOC', 'REF', 'LONG', 'SHORT', 'EITHER'), | |||
# Extensions or deprecated keywords | |||
# 'PIPE': keyword somehow interferes with the internal operation of GeSHi | |||
5 => array('FORALL', 'UPTO', 'DOWNTO', 'FOREACH', 'ASSERT', 'CTB', 'CT', 'CTAB', 'COMPLEX', 'VECTOR', 'SOUND' /*, 'PIPE'*/), | |||
6 => array('CHANNEL', 'FILE', 'FORMAT', 'STRUCT', 'UNION', 'OF'), | |||
# '(', '|', '|:', ')', # | |||
# 7 => array('OF', 'AT', '@', 'IS', ':=:', 'ISNT', ':/=:', ':โ :', 'CTB', 'CT', '::', 'CTAB', '::=', 'TRUE', 'FALSE', 'EMPTY', 'NIL', 'โ', 'SKIP', '~'), | |||
7 => array('AT', 'IS', 'ISNT', 'TRUE', 'FALSE', 'EMPTY', 'NIL', 'SKIP'), | |||
8 => array('NOT', 'UP', 'DOWN', 'LWB', 'UPB', /* '-',*/ 'ABS', 'ARG', 'BIN', 'ENTIER', 'LENG', 'LEVEL', 'ODD', 'REPR', 'ROUND', 'SHORTEN', 'CONJ', 'SIGN'), | |||
# OPERATORS ordered roughtly by PRIORITY # | |||
# 9 => array('ยฌ', 'โ', 'โ', 'โ', 'โ', '~', 'โฉ', 'โง'), | |||
# 10 => array('+*', 'I', '+ร', 'โฅ', '!', 'โจ'), | |||
10 => array('I'), | |||
# 11 => array('SHL', 'SHR', '**', 'UP', 'DOWN', 'LWB', 'UPB', 'โ', 'โ', 'โ', 'โ', 'โฉ', 'โง'), | |||
11 => array('SHL', 'SHR', /*'UP', 'DOWN', 'LWB', 'UPB'*/), | |||
# 12 => array('*', '/', '%', 'OVER', '%*', 'MOD', 'ELEM', 'ร', 'รท', 'รทร', 'รท*', '%ร', 'โก', 'รท:'), | |||
12 => array('OVER', 'MOD', 'ELEM'), | |||
# 13 => array('-', '+'), | |||
# 14 => array('<', 'LT', '<=', 'LE', '>=', 'GE', '>', 'GT', 'โค', 'โฅ'), | |||
14 => array('LT', 'LE', 'GE', 'GT'), | |||
# 15 => array('=', 'EQ', '/=', 'NE', 'โ ', '~='), | |||
15 => array('EQ', 'NE'), | |||
# 16 => array('&', 'AND', 'โง', 'OR', 'โจ', '/\\', '\\/'), | |||
16 => array('AND', 'OR'), | |||
17 => array('MINUSAB', 'PLUSAB', 'TIMESAB', 'DIVAB', 'OVERAB', 'MODAB', 'PLUSTO'), | |||
# 18 => array('-:=', '+:=', '*:=', '/:=', '%:=', '%*:=', '+=:', 'ร:=', 'รท:=', 'รทร:=', 'รท*:=', '%ร:=', 'รท::=', 'MINUS', 'PLUS', 'DIV', 'MOD', 'PRUS'), | |||
# Extensions or deprecated keywords | |||
18 => array('MINUS', 'PLUS', 'DIV', /* 'MOD',*/ 'PRUS', 'IS NOT'), | |||
# Extensions or deprecated keywords | |||
19 => array('THEF', 'ANDF', 'ORF', 'ANDTH', 'OREL', 'ANDTHEN', 'ORELSE'), | |||
# Built in procedures - from standard prelude # | |||
20 => array('int lengths', 'intlengths', 'int shorths', 'intshorths', 'max int', 'maxint', 'real lengths', 'reallengths', 'real shorths', 'realshorths', 'bits lengths', 'bitslengths', 'bits shorths', 'bitsshorths', 'bytes lengths', 'byteslengths', 'bytes shorths', 'bytesshorths', 'max abs char', 'maxabschar', 'int width', 'intwidth', 'long int width', 'longintwidth', 'long long int width', 'longlongintwidth', 'real width', 'realwidth', 'long real width', 'longrealwidth', 'long long real width', 'longlongrealwidth', 'exp width', 'expwidth', 'long exp width', 'longexpwidth', 'long long exp width', 'longlongexpwidth', 'bits width', 'bitswidth', 'long bits width', 'longbitswidth', 'long long bits width', 'longlongbitswidth', 'bytes width', 'byteswidth', 'long bytes width', 'longbyteswidth', 'max real', 'maxreal', 'small real', 'smallreal', 'long max int', 'longmaxint', 'long long max int', 'longlongmaxint', 'long max real', 'longmaxreal', 'long small real', 'longsmallreal', 'long long max real', 'longlongmaxreal', 'long long small real', 'longlongsmallreal', 'long max bits', 'longmaxbits', 'long long max bits', 'longlongmaxbits', 'null character', 'nullcharacter', 'blank', 'flip', 'flop', 'error char', 'errorchar', 'exp char', 'expchar', 'newline char', 'newlinechar', 'formfeed char', 'formfeedchar', 'tab char', 'tabchar'), | |||
21 => array('stand in channel', 'standinchannel', 'stand out channel', 'standoutchannel', 'stand back channel', 'standbackchannel', 'stand draw channel', 'standdrawchannel', 'stand error channel', 'standerrorchannel'), | |||
22 => array('put possible', 'putpossible', 'get possible', 'getpossible', 'bin possible', 'binpossible', 'set possible', 'setpossible', 'reset possible', 'resetpossible', 'reidf possible', 'reidfpossible', 'draw possible', 'drawpossible', 'compressible', 'on logical file end', 'onlogicalfileend', 'on physical file end', 'onphysicalfileend', 'on line end', 'onlineend', 'on page end', 'onpageend', 'on format end', 'onformatend', 'on value error', 'onvalueerror', 'on open error', 'onopenerror', 'on transput error', 'ontransputerror', 'on format error', 'onformaterror', 'open', 'establish', 'create', 'associate', 'close', 'lock', 'scratch', 'space', 'new line', 'newline', 'print', 'write f', 'writef', 'print f', 'printf', 'write bin', 'writebin', 'print bin', 'printbin', 'read f', 'readf', 'read bin', 'readbin', 'put f', 'putf', 'get f', 'getf', 'make term', 'maketerm', 'make device', 'makedevice', 'idf', 'term', 'read int', 'readint', 'read long int', 'readlongint', 'read long long int', 'readlonglongint', 'read real', 'readreal', 'read long real', 'readlongreal', 'read long long real', 'readlonglongreal', 'read complex', 'readcomplex', 'read long complex', 'readlongcomplex', 'read long long complex', 'readlonglongcomplex', 'read bool', 'readbool', 'read bits', 'readbits', 'read long bits', 'readlongbits', 'read long long bits', 'readlonglongbits', 'read char', 'readchar', 'read string', 'readstring', 'print int', 'printint', 'print long int', 'printlongint', 'print long long int', 'printlonglongint', 'print real', 'printreal', 'print long real', 'printlongreal', 'print long long real', 'printlonglongreal', 'print complex', 'printcomplex', 'print long complex', 'printlongcomplex', 'print long long complex', 'printlonglongcomplex', 'print bool', 'printbool', 'print bits', 'printbits', 'print long bits', 'printlongbits', 'print long long bits', 'printlonglongbits', 'print char', 'printchar', 'print string', 'printstring', 'whole', 'fixed', 'float'), | |||
23 => array('pi', 'long pi', 'longpi', 'long long pi', 'longlongpi'), | |||
24 => array('sqrt', 'curt', 'cbrt', 'exp', 'ln', 'log', 'sin', 'arc sin', 'arcsin', 'cos', 'arc cos', 'arccos', 'tan', 'arc tan', 'arctan', 'long sqrt', 'longsqrt', 'long curt', 'longcurt', 'long cbrt', 'longcbrt', 'long exp', 'longexp', 'long ln', 'longln', 'long log', 'longlog', 'long sin', 'longsin', 'long arc sin', 'longarcsin', 'long cos', 'longcos', 'long arc cos', 'longarccos', 'long tan', 'longtan', 'long arc tan', 'longarctan', 'long long sqrt', 'longlongsqrt', 'long long curt', 'longlongcurt', 'long long cbrt', 'longlongcbrt', 'long long exp', 'longlongexp', 'long long ln', 'longlongln', 'long long log', 'longlonglog', 'long long sin', 'longlongsin', 'long long arc sin', 'longlongarcsin', 'long long cos', 'longlongcos', 'long long arc cos', 'longlongarccos', 'long long tan', 'longlongtan', 'long long arc tan', 'longlongarctan'), | |||
25 => array('first random', 'firstrandom', 'next random', 'nextrandom', 'long next random', 'longnextrandom', 'long long next random', 'longlongnextrandom'), | |||
26 => array('real', 'bits pack', 'bitspack', 'long bits pack', 'longbitspack', 'long long bits pack', 'longlongbitspack', 'bytes pack', 'bytespack', 'long bytes pack', 'longbytespack', 'char in string', 'charinstring', 'last char in string', 'lastcharinstring', 'string in string', 'stringinstring'), | |||
27 => array('utc time', 'utctime', 'local time', 'localtime', 'argc', 'argv', 'get env', 'getenv', 'reset errno', 'reseterrno', 'errno', 'strerror'), | |||
28 => array('sinh', 'long sinh', 'longsinh', 'long long sinh', 'longlongsinh', 'arc sinh', 'arcsinh', 'long arc sinh', 'longarcsinh', 'long long arc sinh', 'longlongarcsinh', 'cosh', 'long cosh', 'longcosh', 'long long cosh', 'longlongcosh', 'arc cosh', 'arccosh', 'long arc cosh', 'longarccosh', 'long long arc cosh', 'longlongarccosh', 'tanh', 'long tanh', 'longtanh', 'long long tanh', 'longlongtanh', 'arc tanh', 'arctanh', 'long arc tanh', 'longarctanh', 'long long arc tanh', 'longlongarctanh', 'arc tan2', 'arctan2', 'long arc tan2', 'longarctan2', 'long long arc tan2', 'longlongarctan2'), | |||
29 => array('complex sqrt', 'complexsqrt', 'long complex sqrt', 'longcomplexsqrt', 'long long complex sqrt', 'longlongcomplexsqrt', 'complex exp', 'complexexp', 'long complex exp', 'longcomplexexp', 'long long complex exp', 'longlongcomplexexp', 'complex ln', 'complexln', 'long complex ln', 'longcomplexln', 'long long complex ln', 'longlongcomplexln', 'complex sin', 'complexsin', 'long complex sin', 'longcomplexsin', 'long long complex sin', 'longlongcomplexsin', 'complex arc sin', 'complexarcsin', 'long complex arc sin', 'longcomplexarcsin', 'long long complex arc sin', 'longlongcomplexarcsin', 'complex cos', 'complexcos', 'long complex cos', 'longcomplexcos', 'long long complex cos', 'longlongcomplexcos', 'complex arc cos', 'complexarccos', 'long complex arc cos', 'longcomplexarccos', 'long long complex arc cos', 'longlongcomplexarccos', 'complex tan', 'complextan', 'long complex tan', 'longcomplextan', 'long long complex tan', 'longlongcomplextan', 'complex arc tan', 'complexarctan', 'long complex arc tan', 'longcomplexarctan', 'long long complex arc tan', 'longlongcomplexarctan', 'complex sinh', 'complexsinh', 'complex arc sinh', 'complexarcsinh', 'complex cosh', 'complexcosh', 'complex arc cosh', 'complexarccosh', 'complex tanh', 'complextanh', 'complex arc tanh', 'complexarctanh') | |||
), | |||
'SYMBOLS' => array( | |||
1 => array( /* reverse length sorted... */ 'รทร:=', '%ร:=', ':โ :', 'รท*:=', 'รท::=', '%*:=', ':/=:', 'ร:=', 'รท:=', 'รทร', '%:=', '%ร', '*:=', '+:=', '+=:', '+ร', '-:=', '/:=', '::=', ':=:', 'รท*', 'รท:', 'โ', 'โ', 'โง', 'โจ', 'โ ', 'โค', 'โฅ', 'โฅ', 'โ', 'โ', 'โง', 'โฉ', /* 'โจ', */ 'โก', 'โ', '%*', '**', '+*', '/=', '::', '/\\', '\\/', '<=', '>=', '|:', '~=', 'ยฌ', 'ร', 'รท', '!', '%', '&', '(', ')', '*', '+', ',', '-', '/', ':', ';', '<', '=', '>', '?', '@', '[', ']', '^', '{', '|', '}', '~') | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => true, | |||
2 => true, | |||
3 => true, | |||
4 => true, | |||
5 => true, | |||
6 => true, | |||
7 => true, | |||
8 => true, | |||
# 9 => true, | |||
10 => true, | |||
11 => true, | |||
12 => true, | |||
# 13 => true, | |||
14 => true, | |||
15 => true, | |||
16 => true, | |||
17 => true, | |||
18 => true, | |||
19 => true, | |||
20 => true, | |||
21 => true, | |||
22 => true, | |||
23 => true, | |||
24 => true, | |||
25 => true, | |||
26 => true, | |||
27 => true, | |||
28 => true, | |||
29 => true | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => $a68['NONSTD'], 2 => $a68['BOLD'], 3 => $a68['BOLD'], 4 => $a68['BOLD'], | |||
5 => $a68['NONSTD'], 6 => $a68['BOLD'], 7 => $a68['BOLD'], 8 => $a68['BOLD'], | |||
/* 9 => $a68['BOLD'],*/ 10 => $a68['BOLD'], 11 => $a68['BOLD'], 12 => $a68['BOLD'], | |||
/* 13 => $a68['BOLD'],*/ 14 => $a68['BOLD'], 15 => $a68['BOLD'], 16 => $a68['BOLD'], 17 => $a68['BOLD'], | |||
18 => $a68['NONSTD'], 19 => $a68['NONSTD'], | |||
20 => $a68['ITALIC'], 21 => $a68['ITALIC'], 22 => $a68['ITALIC'], 23 => $a68['ITALIC'], | |||
24 => $a68['ITALIC'], 25 => $a68['ITALIC'], 26 => $a68['ITALIC'], 27 => $a68['ITALIC'], | |||
28 => $a68['ITALIC'], 29 => $a68['ITALIC'] | |||
), | |||
'COMMENTS' => array( | |||
1 => $a68['COMMENT'], 2 => $a68['COMMENT'], 3 => $a68['COMMENT'], /* 4 => $a68['COMMENT'], | |||
5 => $a68['COMMENT'],*/ 'MULTI' => $a68['COMMENT'] | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #009900;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #0000ff;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #cc66cc;', | |||
), | |||
'METHODS' => array( | |||
0 => 'color: #004000;', | |||
1 => 'color: #004000;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #339933;', | |||
1 => 'color: #339933;' | |||
), | |||
'REGEXPS' => array( | |||
0 => 'color: #cc66cc;', # BITS # | |||
1 => 'color: #cc66cc;', # REAL # | |||
/* 2 => 'color: #cc66cc;', # INT # */ | |||
), | |||
'SCRIPT' => array() | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '', | |||
4 => '', | |||
5 => '', | |||
6 => '', | |||
7 => '', | |||
8 => '', | |||
# 9 => '', | |||
10 => '', | |||
11 => '', | |||
12 => '', | |||
# 13 => '', | |||
14 => '', | |||
15 => '', | |||
16 => '', | |||
17 => '', | |||
18 => '', | |||
19 => '', | |||
20 => '', | |||
21 => '', | |||
22 => '', | |||
23 => '', | |||
24 => '', | |||
25 => '', | |||
26 => '', | |||
27 => '', | |||
28 => '', | |||
29 => '' | |||
), | |||
'OOLANG' => true, | |||
'OBJECT_SPLITTERS' => array( | |||
0 => 'โ', | |||
1 => 'OF' | |||
), | |||
'REGEXPS' => array( | |||
0 => $a68['BITS'], | |||
1 => $a68['REAL'] | |||
# 2 => $a68['INT'], # Breaks formatting for some reason # | |||
# 2 => $GESHI_NUMBER_INT_BASIC # Also breaks formatting # | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array(), | |||
'HIGHLIGHT_STRICT_BLOCK' => array() | |||
); | |||
unset($a68); | |||
?> |
@@ -0,0 +1,483 @@ | |||
<?php | |||
/************************************************************************************* | |||
* apache.php | |||
* ---------- | |||
* Author: Tux (tux@inmail.cz) | |||
* Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2004/29/07 | |||
* | |||
* Apache language file for GeSHi. | |||
* Words are from SciTe configuration file | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2008/17/06 (1.0.8) | |||
* - Added support for apache configuration sections (milian) | |||
* - Added missing php keywords (milian) | |||
* - Added some more keywords | |||
* - Disabled highlighting of brackets by default | |||
* 2004/11/27 (1.0.2) | |||
* - Added support for multiple object splitters | |||
* 2004/10/27 (1.0.1) | |||
* - Added support for URLs | |||
* 2004/08/05 (1.0.0) | |||
* - First Release | |||
* | |||
* TODO (updated 2004/07/29) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'Apache configuration', | |||
'COMMENT_SINGLE' => array(1 => '#'), | |||
'COMMENT_MULTI' => array(), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'ESCAPE_CHAR' => '\\', | |||
'KEYWORDS' => array( | |||
/*keywords*/ | |||
1 => array( | |||
//core.c | |||
'AcceptFilter','AcceptPathInfo','AccessConfig','AccessFileName', | |||
'AddDefaultCharset','AddOutputFilterByType','AllowEncodedSlashes', | |||
'AllowOverride','AuthName','AuthType','ContentDigest', | |||
'CoreDumpDirectory','DefaultType','DocumentRoot','EnableMMAP', | |||
'EnableSendfile','ErrorDocument','ErrorLog','FileETag','ForceType', | |||
'HostnameLookups','Include','LimitInternalRecursion', | |||
'LimitRequestBody','LimitRequestFields','LimitRequestFieldsize', | |||
'LimitRequestLine','LimitXMLRequestBody','LogLevel','MaxMemFree', | |||
'MaxRequestsPerChild','NameVirtualHost','Options','PidFile','Port', | |||
'Protocol','Require','RLimitCPU','RLimitMEM','RLimitNPROC', | |||
'Satisfy','ScoreBoardFile','ServerAdmin','ServerAlias','ServerName', | |||
'ServerPath','ServerRoot','ServerSignature','ServerTokens', | |||
'SetHandler','SetInputFilter','SetOutputFilter','ThreadStackSize', | |||
'Timeout','TraceEnable','UseCanonicalName', | |||
'UseCanonicalPhysicalPort', | |||
//http_core.c | |||
'KeepAlive','KeepAliveTimeout','MaxKeepAliveRequests', | |||
//mod_actions.c | |||
'Action','Script', | |||
//mod_alias.c | |||
'Alias','AliasMatch','Redirect','RedirectMatch','RedirectPermanent', | |||
'RedirectTemp','ScriptAlias','ScriptAliasMatch', | |||
//mod_asis.c | |||
//mod_auth_basic.c | |||
'AuthBasicAuthoritative','AuthBasicProvider', | |||
//mod_auth_digest.c | |||
'AuthDigestAlgorithm','AuthDigestDomain','AuthDigestNcCheck', | |||
'AuthDigestNonceFormat','AuthDigestNonceLifetime', | |||
'AuthDigestProvider','AuthDigestQop','AuthDigestShmemSize', | |||
//mod_authn_alias.c | |||
//mod_authn_anon.c | |||
'Anonymous','Anonymous_LogEmail','Anonymous_MustGiveEmail', | |||
'Anonymous_NoUserId','Anonymous_VerifyEmail', | |||
//mod_authn_dbd.c | |||
'AuthDBDUserPWQuery','AuthDBDUserRealmQuery', | |||
//mod_authn_dbm.c | |||
'AuthDBMType','AuthDBMUserFile', | |||
//mod_authn_default.c | |||
'AuthDefaultAuthoritative', | |||
//mod_authn_file.c | |||
'AuthUserFile', | |||
//mod_authnz_ldap.c | |||
'AuthLDAPBindDN','AuthLDAPBindPassword','AuthLDAPCharsetConfig', | |||
'AuthLDAPCompareDNOnServer','AuthLDAPDereferenceAliases', | |||
'AuthLDAPGroupAttribute','AuthLDAPGroupAttributeIsDN', | |||
'AuthLDAPRemoteUserAttribute','AuthLDAPRemoteUserIsDN', | |||
'AuthLDAPURL','AuthzLDAPAuthoritative', | |||
//mod_authz_dbm.c | |||
'AuthDBMGroupFile','AuthzDBMAuthoritative','AuthzDBMType', | |||
//mod_authz_default.c | |||
'AuthzDefaultAuthoritative', | |||
//mod_authz_groupfile.c | |||
'AuthGroupFile','AuthzGroupFileAuthoritative', | |||
//mod_authz_host.c | |||
'Allow','Deny','Order', | |||
//mod_authz_owner.c | |||
'AuthzOwnerAuthoritative', | |||
//mod_authz_svn.c | |||
'AuthzForceUsernameCase','AuthzSVNAccessFile','AuthzSVNAnonymous', | |||
'AuthzSVNAuthoritative','AuthzSVNNoAuthWhenAnonymousAllowed', | |||
//mod_authz_user.c | |||
'AuthzUserAuthoritative', | |||
//mod_autoindex.c | |||
'AddAlt','AddAltByEncoding','AddAltByType','AddDescription', | |||
'AddIcon','AddIconByEncoding','AddIconByType','DefaultIcon', | |||
'FancyIndexing','HeaderName','IndexHeadInsert','IndexIgnore', | |||
'IndexOptions','IndexOrderDefault','IndexStyleSheet','ReadmeName', | |||
//mod_bt.c | |||
'Tracker','TrackerDetailURL','TrackerFlags','TrackerHashMaxAge', | |||
'TrackerHashMinAge','TrackerHashWatermark','TrackerHome', | |||
'TrackerReturnInterval','TrackerReturnMax', | |||
'TrackerReturnPeerFactor','TrackerReturnPeers','TrackerRootInclude', | |||
'TrackerStyleSheet', | |||
//mod_bw.c | |||
'BandWidth','BandWidthError','BandWidthModule','BandWidthPacket', | |||
'ForceBandWidthModule','LargeFileLimit','MaxConnection', | |||
'MinBandWidth', | |||
//mod_cache.c | |||
'CacheDefaultExpire','CacheDisable','CacheEnable', | |||
'CacheIgnoreCacheControl','CacheIgnoreHeaders', | |||
'CacheIgnoreNoLastMod','CacheIgnoreQueryString', | |||
'CacheLastModifiedFactor','CacheMaxExpire','CacheStoreNoStore', | |||
'CacheStorePrivate', | |||
//mod_cern_meta.c | |||
'MetaDir','MetaFiles','MetaSuffix', | |||
//mod_cgi.c | |||
'ScriptLog','ScriptLogBuffer','ScriptLogLength', | |||
//mod_charset_lite.c | |||
'CharsetDefault','CharsetOptions','CharsetSourceEnc', | |||
//mod_dav.c | |||
'DAV','DAVDepthInfinity','DAVMinTimeout', | |||
//mod_dav_fs.c | |||
'DAVLockDB', | |||
//mod_dav_lock.c | |||
'DAVGenericLockDB', | |||
//mod_dav_svn.c | |||
'SVNActivitiesDB','SVNAllowBulkUpdates','SVNAutoversioning', | |||
'SVNIndexXSLT','SVNListParentPath','SVNMasterURI','SVNParentPath', | |||
'SVNPath','SVNPathAuthz','SVNReposName','SVNSpecialURI', | |||
//mod_dbd.c | |||
'DBDExptime','DBDKeep','DBDMax','DBDMin','DBDParams','DBDPersist', | |||
'DBDPrepareSQL','DBDriver', | |||
//mod_deflate.c | |||
'DeflateBufferSize','DeflateCompressionLevel','DeflateFilterNote', | |||
'DeflateMemLevel','DeflateWindowSize', | |||
//mod_dir.c | |||
'DirectoryIndex','DirectorySlash', | |||
//mod_disk_cache.c | |||
'CacheDirLength','CacheDirLevels','CacheMaxFileSize', | |||
'CacheMinFileSize','CacheRoot', | |||
//mod_dumpio.c | |||
'DumpIOInput','DumpIOLogLevel','DumpIOOutput', | |||
//mod_env.c | |||
'PassEnv','SetEnv','UnsetEnv', | |||
//mod_expires.c | |||
'ExpiresActive','ExpiresByType','ExpiresDefault', | |||
//mod_ext_filter.c | |||
'ExtFilterDefine','ExtFilterOptions', | |||
//mod_file_cache.c | |||
'cachefile','mmapfile', | |||
//mod_filter.c | |||
'FilterChain','FilterDeclare','FilterProtocol','FilterProvider', | |||
'FilterTrace', | |||
//mod_gnutls.c | |||
'GnuTLSCache','GnuTLSCacheTimeout','GnuTLSCertificateFile', | |||
'GnuTLSKeyFile','GnuTLSPGPCertificateFile','GnuTLSPGPKeyFile', | |||
'GnuTLSClientVerify','GnuTLSClientCAFile','GnuTLSPGPKeyringFile', | |||
'GnuTLSEnable','GnuTLSDHFile','GnuTLSRSAFile','GnuTLSSRPPasswdFile', | |||
'GnuTLSSRPPasswdConfFile','GnuTLSPriorities', | |||
'GnuTLSExportCertificates', | |||
//mod_headers.c | |||
'Header','RequestHeader', | |||
//mod_imagemap.c | |||
'ImapBase','ImapDefault','ImapMenu', | |||
//mod_include.c | |||
'SSIAccessEnable','SSIEndTag','SSIErrorMsg','SSIStartTag', | |||
'SSITimeFormat','SSIUndefinedEcho','XBitHack', | |||
//mod_ident.c | |||
'IdentityCheck','IdentityCheckTimeout', | |||
//mod_info.c | |||
'AddModuleInfo', | |||
//mod_isapi.c | |||
'ISAPIAppendLogToErrors','ISAPIAppendLogToQuery','ISAPICacheFile', | |||
'ISAPIFakeAsync','ISAPILogNotSupported','ISAPIReadAheadBuffer', | |||
//mod_log_config.c | |||
'BufferedLogs','CookieLog','CustomLog','LogFormat','TransferLog', | |||
//mod_log_forensic.c | |||
'ForensicLog', | |||
//mod_log_rotate.c | |||
'RotateInterval','RotateLogs','RotateLogsLocalTime', | |||
//mod_logio.c | |||
//mod_mem_cache.c | |||
'MCacheMaxObjectCount','MCacheMaxObjectSize', | |||
'MCacheMaxStreamingBuffer','MCacheMinObjectSize', | |||
'MCacheRemovalAlgorithm','MCacheSize', | |||
//mod_mime.c | |||
'AddCharset','AddEncoding','AddHandler','AddInputFilter', | |||
'AddLanguage','AddOutputFilter','AddType','DefaultLanguage', | |||
'ModMimeUsePathInfo','MultiviewsMatch','RemoveCharset', | |||
'RemoveEncoding','RemoveHandler','RemoveInputFilter', | |||
'RemoveLanguage','RemoveOutputFilter','RemoveType','TypesConfig', | |||
//mod_mime_magic.c | |||
'MimeMagicFile', | |||
//mod_negotiation.c | |||
'CacheNegotiatedDocs','ForceLanguagePriority','LanguagePriority', | |||
//mod_php5.c | |||
'php_admin_flag','php_admin_value','php_flag','php_value', | |||
'PHPINIDir', | |||
//mod_proxy.c | |||
'AllowCONNECT','BalancerMember','NoProxy','ProxyBadHeader', | |||
'ProxyBlock','ProxyDomain','ProxyErrorOverride', | |||
'ProxyFtpDirCharset','ProxyIOBufferSize','ProxyMaxForwards', | |||
'ProxyPass','ProxyPassInterpolateEnv','ProxyPassMatch', | |||
'ProxyPassReverse','ProxyPassReverseCookieDomain', | |||
'ProxyPassReverseCookiePath','ProxyPreserveHost', | |||
'ProxyReceiveBufferSize','ProxyRemote','ProxyRemoteMatch', | |||
'ProxyRequests','ProxySet','ProxyStatus','ProxyTimeout','ProxyVia', | |||
//mod_proxy_ajp.c | |||
//mod_proxy_balancer.c | |||
//mod_proxy_connect.c | |||
//mod_proxy_ftp.c | |||
//mod_proxy_http.c | |||
//mod_rewrite.c | |||
'RewriteBase','RewriteCond','RewriteEngine','RewriteLock', | |||
'RewriteLog','RewriteLogLevel','RewriteMap','RewriteOptions', | |||
'RewriteRule', | |||
//mod_setenvif.c | |||
'BrowserMatch','BrowserMatchNoCase','SetEnvIf','SetEnvIfNoCase', | |||
//mod_so.c | |||
'LoadFile','LoadModule', | |||
//mod_speling.c | |||
'CheckCaseOnly','CheckSpelling', | |||
//mod_ssl.c | |||
'SSLCACertificateFile','SSLCACertificatePath','SSLCADNRequestFile', | |||
'SSLCADNRequestPath','SSLCARevocationFile','SSLCARevocationPath', | |||
'SSLCertificateChainFile','SSLCertificateFile', | |||
'SSLCertificateKeyFile','SSLCipherSuite','SSLCryptoDevice', | |||
'SSLEngine','SSLHonorCipherOrder','SSLMutex','SSLOptions', | |||
'SSLPassPhraseDialog','SSLProtocol','SSLProxyCACertificateFile', | |||
'SSLProxyCACertificatePath','SSLProxyCARevocationFile', | |||
'SSLProxyCARevocationPath','SSLProxyCipherSuite','SSLProxyEngine', | |||
'SSLProxyMachineCertificateFile','SSLProxyMachineCertificatePath', | |||
'SSLProxyProtocol','SSLProxyVerify','SSLProxyVerifyDepth', | |||
'SSLRandomSeed','SSLRenegBufferSize','SSLRequire','SSLRequireSSL', | |||
'SSLSessionCache','SSLSessionCacheTimeout','SSLUserName', | |||
'SSLVerifyClient','SSLVerifyDepth', | |||
//mod_status.c | |||
'ExtendedStatus','SeeRequestTail', | |||
//mod_substitute.c | |||
'Substitute', | |||
//mod_suexec.c | |||
'SuexecUserGroup', | |||
//mod_unique_id.c | |||
//mod_upload_progress | |||
'ReportUploads', 'TrackUploads', 'UploadProgressSharedMemorySize', | |||
//mod_userdir.c | |||
'UserDir', | |||
//mod_usertrack.c | |||
'CookieDomain','CookieExpires','CookieName','CookieStyle', | |||
'CookieTracking', | |||
//mod_version.c | |||
//mod_vhost_alias.c | |||
'VirtualDocumentRoot','VirtualDocumentRootIP', | |||
'VirtualScriptAlias','VirtualScriptAliasIP', | |||
//mod_view.c | |||
'ViewEnable', | |||
//mod_win32.c | |||
'ScriptInterpreterSource', | |||
//mpm_winnt.c | |||
'Listen','ListenBacklog','ReceiveBufferSize','SendBufferSize', | |||
'ThreadLimit','ThreadsPerChild','Win32DisableAcceptEx', | |||
//mpm_common.c | |||
'AcceptMutex','AddModule','ClearModuleList','EnableExceptionHook', | |||
'Group','LockFile','MaxClients','MaxSpareServers','MaxSpareThreads', | |||
'MinSpareServers','MinSpareThreads','ServerLimit','StartServers', | |||
'StartThreads','User', | |||
//util_ldap.c | |||
'LDAPCacheEntries','LDAPCacheTTL','LDAPConnectionTimeout', | |||
'LDAPOpCacheEntries','LDAPOpCacheTTL','LDAPSharedCacheFile', | |||
'LDAPSharedCacheSize','LDAPTrustedClientCert', | |||
'LDAPTrustedGlobalCert','LDAPTrustedMode','LDAPVerifyServerCert', | |||
//Unknown Mods ... | |||
'AgentLog','BindAddress','bs2000account','CacheForceCompletion', | |||
'CacheGCInterval','CacheSize','NoCache','qsc','RefererIgnore', | |||
'RefererLog','Resourceconfig','ServerType','SingleListen' | |||
), | |||
/*keywords 2*/ | |||
2 => array( | |||
'all','on','off','standalone','inetd','indexes', | |||
'force-response-1.0','downgrade-1.0','nokeepalive', | |||
'includes','followsymlinks','none', | |||
'x-compress','x-gzip' | |||
), | |||
/*keywords 3*/ | |||
3 => array( | |||
//core.c | |||
'Directory','DirectoryMatch','Files','FilesMatch','IfDefine', | |||
'IfModule','Limit','LimitExcept','Location','LocationMatch', | |||
'VirtualHost', | |||
//mod_authn_alias.c | |||
'AuthnProviderAlias', | |||
//mod_proxy.c | |||
'Proxy','ProxyMatch', | |||
//mod_version.c | |||
'IfVersion' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'+', '-' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #00007f;', | |||
2 => 'color: #0000ff;', | |||
3 => 'color: #000000; font-weight:bold;', | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #adadad; font-style: italic;', | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #339933;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #7f007f;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #ff0000;' | |||
), | |||
'METHODS' => array( | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #008000;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '' | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'PARSER_CONTROL' => array( | |||
'ENABLE_FLAGS' => array( | |||
'BRACKETS' => GESHI_NEVER, | |||
'SYMBOLS' => GESHI_NEVER | |||
), | |||
'KEYWORDS' => array( | |||
3 => array( | |||
'DISALLOWED_BEFORE' => '(?<=<|<\/)', | |||
'DISALLOWED_AFTER' => '(?=\s|\/|>)', | |||
) | |||
) | |||
) | |||
); | |||
?> |
@@ -0,0 +1,157 @@ | |||
<?php | |||
/************************************************************************************* | |||
* applescript.php | |||
* -------- | |||
* Author: Stephan Klimek (http://www.initware.org) | |||
* Copyright: Stephan Klimek (http://www.initware.org) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2005/07/20 | |||
* | |||
* AppleScript language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2008/05/23 (1.0.7.22) | |||
* - Added description of extra language features (SF#1970248) | |||
* | |||
* TODO | |||
* ------------------------- | |||
* URL settings to references | |||
* | |||
************************************************************************************** | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'AppleScript', | |||
'COMMENT_SINGLE' => array(1 => '--'), | |||
'COMMENT_MULTI' => array( '(*' => '*)'), | |||
'COMMENT_REGEXP' => array( | |||
2 => '/(?<=[a-z])\'/i', | |||
3 => '/(?<![a-z])\'.*?\'/i', | |||
), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"'), | |||
'ESCAPE_CHAR' => '\\', | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'application','close','count','delete','duplicate','exists','launch','make','move','open', | |||
'print','quit','reopen','run','save','saving', 'idle', 'path to', 'number', 'alias', 'list', 'text', 'string', | |||
'integer', 'it','me','version','pi','result','space','tab','anything','case','diacriticals','expansion', | |||
'hyphens','punctuation','bold','condensed','expanded','hidden','italic','outline','plain', | |||
'shadow','strikethrough','subscript','superscript','underline','ask','no','yes','false', 'id', | |||
'true','weekday','monday','mon','tuesday','tue','wednesday','wed','thursday','thu','friday', | |||
'fri','saturday','sat','sunday','sun','month','january','jan','february','feb','march', | |||
'mar','april','apr','may','june','jun','july','jul','august','aug','september', 'quote', 'do JavaScript', | |||
'sep','october','oct','november','nov','december','dec','minutes','hours', 'name', 'default answer', | |||
'days','weeks', 'folder', 'folders', 'file', 'files', 'window', 'eject', 'disk', 'reveal', 'sleep', | |||
'shut down', 'restart', 'display dialog', 'buttons', 'invisibles', 'item', 'items', 'delimiters', 'offset of', | |||
'AppleScript\'s', 'choose file', 'choose folder', 'choose from list', 'beep', 'contents', 'do shell script', | |||
'paragraph', 'paragraphs', 'missing value', 'quoted form', 'desktop', 'POSIX path', 'POSIX file', | |||
'activate', 'document', 'adding', 'receiving', 'content', 'new', 'properties', 'info for', 'bounds', | |||
'selection', 'extension', 'into', 'onto', 'by', 'between', 'against', 'set the clipboard to', 'the clipboard' | |||
), | |||
2 => array( | |||
'each','some','every','whose','where','index','first','second','third','fourth', | |||
'fifth','sixth','seventh','eighth','ninth','tenth','last','front','back','st','nd', | |||
'rd','th','middle','named','through','thru','before','after','beginning','the', 'as', | |||
'div','mod','and','not','or','contains','equal','equals','isnt', 'less', 'greater' | |||
), | |||
3 => array( | |||
'script','property','prop','end','to','set','global','local','on','of', | |||
'in','given','with','without','return','continue','tell','if','then','else','repeat', | |||
'times','while','until','from','exit','try','error','considering','ignoring','timeout', | |||
'transaction','my','get','put','is', 'copy' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
')','+','-','^','*','/','&','<','>=','<','<=','=','๏ฟฝ' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #0066ff;', | |||
2 => 'color: #ff0033;', | |||
3 => 'color: #ff0033; font-weight: bold;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #808080; font-style: italic;', | |||
2 => '', | |||
3 => 'color: #ff0000;', | |||
'MULTI' => 'color: #808080; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000000; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #000000;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #009900;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #000000;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #006600;', | |||
2 => 'color: #006600;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #000000;' | |||
), | |||
'REGEXPS' => array( | |||
0 => 'color: #339933;', | |||
4 => 'color: #0066ff;', | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '' | |||
), | |||
'OOLANG' => true, | |||
'OBJECT_SPLITTERS' => array( | |||
1 => ',+-=<>/?^&*' | |||
), | |||
'REGEXPS' => array( | |||
//Variables | |||
0 => '[\\$%@]+[a-zA-Z_][a-zA-Z0-9_]*', | |||
//File descriptors | |||
4 => '<[a-zA-Z_][a-zA-Z0-9_]*>', | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'PARSER_CONTROL' => array( | |||
'KEYWORDS' => array( | |||
'SPACE_AS_WHITESPACE' => true | |||
) | |||
) | |||
); | |||
?> |
@@ -0,0 +1,148 @@ | |||
<?php | |||
/************************************************************************************* | |||
* apt_sources.php | |||
* ---------- | |||
* Author: Milian Wolff (mail@milianw.de) | |||
* Copyright: (c) 2008 Milian Wolff (http://milianw.de) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2008/06/17 | |||
* | |||
* Apt sources.list language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2008/06/17 (1.0.8) | |||
* - Initial import | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'Apt sources', | |||
'COMMENT_SINGLE' => array(1 => '#'), | |||
'COMMENT_MULTI' => array(), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array(), | |||
'ESCAPE_CHAR' => '\\', | |||
'KEYWORDS' => array( | |||
/*keywords*/ | |||
1 => array( | |||
'deb-src', 'deb' | |||
), | |||
2 => array( | |||
//Generic | |||
'stable', 'old-stable', 'testing', 'testing-proposed-updates', | |||
'unstable', 'unstable-proposed-updates', 'experimental', | |||
'non-US', 'security', 'volatile', 'volatile-sloppy', | |||
'apt-build', | |||
'stable/updates', | |||
//Debian | |||
'buzz', 'rex', 'bo', 'hamm', 'slink', 'potato', 'woody', 'sarge', | |||
'etch', 'lenny', 'wheezy', 'sid', | |||
//Ubuntu | |||
'warty', 'warty-updates', 'warty-security', 'warty-proposed', 'warty-backports', | |||
'hoary', 'hoary-updates', 'hoary-security', 'hoary-proposed', 'hoary-backports', | |||
'breezy', 'breezy-updates', 'breezy-security', 'breezy-proposed', 'breezy-backports', | |||
'dapper', 'dapper-updates', 'dapper-security', 'dapper-proposed', 'dapper-backports', | |||
'edgy', 'edgy-updates', 'edgy-security', 'edgy-proposed', 'edgy-backports', | |||
'feisty', 'feisty-updates', 'feisty-security', 'feisty-proposed', 'feisty-backports', | |||
'gutsy', 'gutsy-updates', 'gutsy-security', 'gutsy-proposed', 'gutsy-backports', | |||
'hardy', 'hardy-updates', 'hardy-security', 'hardy-proposed', 'hardy-backports', | |||
'intrepid', 'intrepid-updates', 'intrepid-security', 'intrepid-proposed', 'intrepid-backports', | |||
'jaunty', 'jaunty-updates', 'jaunty-security', 'jaunty-proposed', 'jaunty-backports', | |||
'karmic', 'karmic-updates', 'karmic-security', 'karmic-proposed', 'karmic-backports', | |||
'lucid', 'lucid-updates', 'lucid-security', 'lucid-proposed', 'lucid-backports', | |||
'maverick', 'maverick-updates', 'maverick-security', 'maverick-proposed', 'maverick-backports' | |||
), | |||
3 => array( | |||
'main', 'restricted', 'preview', 'contrib', 'non-free', | |||
'commercial', 'universe', 'multiverse' | |||
) | |||
), | |||
'REGEXPS' => array( | |||
0 => "(((http|ftp):\/\/|file:\/)[^\s]+)|(cdrom:\[[^\]]*\][^\s]*)", | |||
), | |||
'SYMBOLS' => array( | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => true, | |||
3 => true | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #00007f;', | |||
2 => 'color: #b1b100;', | |||
3 => 'color: #b16000;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #adadad; font-style: italic;', | |||
), | |||
'ESCAPE_CHAR' => array( | |||
), | |||
'BRACKETS' => array( | |||
), | |||
'STRINGS' => array( | |||
), | |||
'NUMBERS' => array( | |||
), | |||
'METHODS' => array( | |||
), | |||
'SYMBOLS' => array( | |||
), | |||
'REGEXPS' => array( | |||
0 => 'color: #009900;', | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '' | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'PARSER_CONTROL' => array( | |||
'ENABLE_FLAGS' => array( | |||
'NUMBERS' => GESHI_NEVER, | |||
'METHODS' => GESHI_NEVER, | |||
'SCRIPT' => GESHI_NEVER, | |||
'SYMBOLS' => GESHI_NEVER, | |||
'ESCAPE_CHAR' => GESHI_NEVER, | |||
'BRACKETS' => GESHI_NEVER, | |||
'STRINGS' => GESHI_NEVER, | |||
), | |||
'KEYWORDS' => array( | |||
'DISALLOWED_BEFORE' => '(?<![a-zA-Z0-9\$_\|\#;>|^\/])', | |||
'DISALLOWED_AFTER' => '(?![a-zA-Z0-9_\|%\\-&\.])' | |||
) | |||
), | |||
'TAB_WIDTH' => 4 | |||
); | |||
?> |
@@ -0,0 +1,225 @@ | |||
<?php | |||
/************************************************************************************* | |||
* asm.php | |||
* ------- | |||
* Author: Tux (tux@inmail.cz) | |||
* Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2004/07/27 | |||
* | |||
* x86 Assembler language file for GeSHi. | |||
* Words are from SciTe configuration file (based on NASM syntax) | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2008/05/23 (1.0.7.22) | |||
* - Added description of extra language features (SF#1970248) | |||
* 2004/11/27 (1.0.2) | |||
* - Added support for multiple object splitters | |||
* 2004/10/27 (1.0.1) | |||
* - Added support for URLs | |||
* - Added binary and hexadecimal regexps | |||
* 2004/08/05 (1.0.0) | |||
* - First Release | |||
* | |||
* TODO (updated 2004/11/27) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'ASM', | |||
'COMMENT_SINGLE' => array(1 => ';'), | |||
'COMMENT_MULTI' => array(), | |||
//Line address prefix suppression | |||
'COMMENT_REGEXP' => array(2 => "/^(?:[0-9a-f]{0,4}:)?[0-9a-f]{4}(?:[0-9a-f]{4})?/mi"), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'ESCAPE_CHAR' => '', | |||
'KEYWORDS' => array( | |||
/*CPU*/ | |||
1 => array( | |||
'aaa','aad','aam','aas','adc','add','and','call','cbw','clc','cld','cli','cmc','cmp', | |||
'cmps','cmpsb','cmpsw','cwd','daa','das','dec','div','esc','hlt','idiv','imul','in','inc', | |||
'int','into','iret','ja','jae','jb','jbe','jc','jcxz','je','jg','jge','jl','jle','jmp', | |||
'jna','jnae','jnb','jnbe','jnc','jne','jng','jnge','jnl','jnle','jno','jnp','jns','jnz', | |||
'jo','jp','jpe','jpo','js','jz','lahf','lds','lea','les','lods','lodsb','lodsw','loop', | |||
'loope','loopew','loopne','loopnew','loopnz','loopnzw','loopw','loopz','loopzw','mov', | |||
'movs','movsb','movsw','mul','neg','nop','not','or','out','pop','popf','push','pushf', | |||
'rcl','rcr','ret','retf','retn','rol','ror','sahf','sal','sar','sbb','scas','scasb','scasw', | |||
'shl','shr','stc','std','sti','stos','stosb','stosw','sub','test','wait','xchg','xlat', | |||
'xlatb','xor','bound','enter','ins','insb','insw','leave','outs','outsb','outsw','popa','pusha','pushw', | |||
'arpl','lar','lsl','sgdt','sidt','sldt','smsw','str','verr','verw','clts','lgdt','lidt','lldt','lmsw','ltr', | |||
'bsf','bsr','bt','btc','btr','bts','cdq','cmpsd','cwde','insd','iretd','iretdf','iretf', | |||
'jecxz','lfs','lgs','lodsd','loopd','looped','loopned','loopnzd','loopzd','lss','movsd', | |||
'movsx','movzx','outsd','popad','popfd','pushad','pushd','pushfd','scasd','seta','setae', | |||
'setb','setbe','setc','sete','setg','setge','setl','setle','setna','setnae','setnb','setnbe', | |||
'setnc','setne','setng','setnge','setnl','setnle','setno','setnp','setns','setnz','seto','setp', | |||
'setpe','setpo','sets','setz','shld','shrd','stosd','bswap','cmpxchg','invd','invlpg','wbinvd','xadd','lock', | |||
'rep','repe','repne','repnz','repz' | |||
), | |||
/*FPU*/ | |||
2 => array( | |||
'f2xm1','fabs','fadd','faddp','fbld','fbstp','fchs','fclex','fcom','fcomp','fcompp','fdecstp', | |||
'fdisi','fdiv','fdivp','fdivr','fdivrp','feni','ffree','fiadd','ficom','ficomp','fidiv', | |||
'fidivr','fild','fimul','fincstp','finit','fist','fistp','fisub','fisubr','fld','fld1', | |||
'fldcw','fldenv','fldenvw','fldl2e','fldl2t','fldlg2','fldln2','fldpi','fldz','fmul', | |||
'fmulp','fnclex','fndisi','fneni','fninit','fnop','fnsave','fnsavew','fnstcw','fnstenv', | |||
'fnstenvw','fnstsw','fpatan','fprem','fptan','frndint','frstor','frstorw','fsave', | |||
'fsavew','fscale','fsqrt','fst','fstcw','fstenv','fstenvw','fstp','fstsw','fsub','fsubp', | |||
'fsubr','fsubrp','ftst','fwait','fxam','fxch','fxtract','fyl2x','fyl2xp1', | |||
'fsetpm','fcos','fldenvd','fnsaved','fnstenvd','fprem1','frstord','fsaved','fsin','fsincos', | |||
'fstenvd','fucom','fucomp','fucompp' | |||
), | |||
/*registers*/ | |||
3 => array( | |||
'ah','al','ax','bh','bl','bp','bx','ch','cl','cr0','cr2','cr3','cs','cx','dh','di','dl', | |||
'dr0','dr1','dr2','dr3','dr6','dr7','ds','dx','eax','ebp','ebx','ecx','edi','edx', | |||
'es','esi','esp','fs','gs','si','sp','ss','st','tr3','tr4','tr5','tr6','tr7' | |||
), | |||
/*Directive*/ | |||
4 => array( | |||
'186','286','286c','286p','287','386','386c','386p','387','486','486p', | |||
'8086','8087','alpha','break','code','const','continue','cref','data','data?', | |||
'dosseg','else','elseif','endif','endw','equ','err','err1','err2','errb', | |||
'errdef','errdif','errdifi','erre','erridn','erridni','errnb','errndef', | |||
'errnz','exit','fardata','fardata?','global','if','lall','lfcond','list','listall', | |||
'listif','listmacro','listmacroall',' model','no87','nocref','nolist', | |||
'nolistif','nolistmacro','radix','repeat','sall','seq','sfcond','stack', | |||
'startup','tfcond','type','until','untilcxz','while','xall','xcref', | |||
'xlist','alias','align','assume','catstr','comm','comment','db','dd','df','dq', | |||
'dt','dup','dw','echo','elseif1','elseif2','elseifb','elseifdef','elseifdif', | |||
'elseifdifi','elseife','elseifidn','elseifidni','elseifnb','elseifndef','end', | |||
'endm','endp','ends','eq',' equ','even','exitm','extern','externdef','extrn','for', | |||
'forc','ge','goto','group','high','highword','if1','if2','ifb','ifdef','ifdif', | |||
'ifdifi','ife',' ifidn','ifidni','ifnb','ifndef','include','includelib','instr','invoke', | |||
'irp','irpc','label','le','length','lengthof','local','low','lowword','lroffset', | |||
'macro','mask','mod','msfloat','name','ne','offset','opattr','option','org','%out', | |||
'page','popcontext','private','proc','proto','ptr','public','purge','pushcontext','record', | |||
'resb','resd','resw','rept','section','seg','segment','short','size','sizeof','sizestr','struc','struct', | |||
'substr','subtitle','subttl','textequ','this','title','typedef','union','width', | |||
'.model', '.stack', '.code', '.data' | |||
), | |||
/*Operands*/ | |||
5 => array( | |||
'@b','@f','addr','basic','byte','c','carry?','dword', | |||
'far','far16','fortran','fword','near','near16','overflow?','parity?','pascal','qword', | |||
'real4',' real8','real10','sbyte','sdword','sign?','stdcall','sword','syscall','tbyte', | |||
'vararg','word','zero?','flat','near32','far32', | |||
'abs','all','assumes','at','casemap','common','compact', | |||
'cpu','dotname','emulator','epilogue','error','export','expr16','expr32','farstack', | |||
'forceframe','huge','language','large','listing','ljmp','loadds','m510','medium','memory', | |||
'nearstack','nodotname','noemulator','nokeyword','noljmp','nom510','none','nonunique', | |||
'nooldmacros','nooldstructs','noreadonly','noscoped','nosignextend','nothing', | |||
'notpublic','oldmacros','oldstructs','os_dos','para','prologue', | |||
'readonly','req','scoped','setif2','smallstack','tiny','use16','use32','uses' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'[', ']', '(', ')', | |||
'+', '-', '*', '/', '%', | |||
'.', ',', ';', ':' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
4 => false, | |||
5 => false | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #00007f; font-weight: bold;', | |||
2 => 'color: #0000ff; font-weight: bold;', | |||
3 => 'color: #00007f;', | |||
4 => 'color: #000000; font-weight: bold;', | |||
5 => 'color: #000000; font-weight: bold;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #666666; font-style: italic;', | |||
2 => 'color: #adadad; font-style: italic;', | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #009900; font-weight: bold;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #7f007f;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #0000ff;' | |||
), | |||
'METHODS' => array( | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #339933;' | |||
), | |||
'REGEXPS' => array( | |||
// 0 => 'color: #0000ff;', | |||
// 1 => 'color: #0000ff;' | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '', | |||
4 => '', | |||
5 => '' | |||
), | |||
'NUMBERS' => | |||
GESHI_NUMBER_BIN_PREFIX_PERCENT | | |||
GESHI_NUMBER_BIN_SUFFIX | | |||
GESHI_NUMBER_HEX_PREFIX | | |||
GESHI_NUMBER_HEX_SUFFIX | | |||
GESHI_NUMBER_OCT_SUFFIX | | |||
GESHI_NUMBER_INT_BASIC | | |||
GESHI_NUMBER_FLT_NONSCI | | |||
GESHI_NUMBER_FLT_NONSCI_F | | |||
GESHI_NUMBER_FLT_SCI_ZERO, | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
'REGEXPS' => array( | |||
//Hex numbers | |||
// 0 => /* */ "(?<=([\\s\\(\\)\\[\\],;.:+\\-\\/*]))(?:[0-9][0-9a-fA-F]{0,31}[hH]|0x[0-9a-fA-F]{1,32})(?=([\\s\\(\\)\\[\\],;.:+\\-\\/*]))", | |||
//Binary numbers | |||
// 1 => "(?<=([\\s\\(\\)\\[\\],;.:+\\-\\/*]))[01]{1,64}[bB](?=([\\s\\(\\)\\[\\],;.:+\\-\\/*]))" | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 8, | |||
'PARSER_CONTROL' => array( | |||
'KEYWORDS' => array( | |||
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\#>|^])", | |||
'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_<\|%])" | |||
) | |||
) | |||
); | |||
?> |
@@ -0,0 +1,164 @@ | |||
<?php | |||
/************************************************************************************* | |||
* asp.php | |||
* -------- | |||
* Author: Amit Gupta (http://blog.igeek.info/) | |||
* Copyright: (c) 2004 Amit Gupta (http://blog.igeek.info/), Nigel McNie (http://qbnz.com/highlighter) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2004/08/13 | |||
* | |||
* ASP language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2005/12/30 (1.0.3) | |||
* - Strings only delimited by ", comments by ' | |||
* 2004/11/27 (1.0.2) | |||
* - Added support for multiple object splitters | |||
* 2004/10/27 (1.0.1) | |||
* - Added support for URLs | |||
* 2004/08/13 (1.0.0) | |||
* - First Release | |||
* | |||
* TODO (updated 2004/11/27) | |||
* ------------------------- | |||
* * Include all the functions, keywords etc that I have missed | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'ASP', | |||
'COMMENT_SINGLE' => array(1 => "'", 2 => '//'), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"'), | |||
'ESCAPE_CHAR' => '', | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'include', 'file', 'Const', 'Dim', 'Option', 'Explicit', 'Implicit', 'Set', 'Select', 'ReDim', 'Preserve', | |||
'ByVal', 'ByRef', 'End', 'Private', 'Public', 'If', 'Then', 'Else', 'ElseIf', 'Case', 'With', 'NOT', | |||
'While', 'Wend', 'For', 'Loop', 'Do', 'Request', 'Response', 'Server', 'ADODB', 'Session', 'Application', | |||
'Each', 'In', 'Get', 'Next', 'INT', 'CINT', 'CBOOL', 'CDATE', 'CBYTE', 'CCUR', 'CDBL', 'CLNG', 'CSNG', | |||
'CSTR', 'Fix', 'Is', 'Sgn', 'String', 'Boolean', 'Currency', 'Me', 'Single', 'Long', 'Integer', 'Byte', | |||
'Variant', 'Double', 'To', 'Let', 'Xor', 'Resume', 'On', 'Error', 'Imp', 'GoTo', 'Call', 'Global' | |||
), | |||
2 => array( | |||
'Null', 'Nothing', 'And', | |||
'False', | |||
'True', 'var', 'Or', 'BOF', 'EOF', 'xor', | |||
'Function', 'Class', 'New', 'Sub' | |||
), | |||
3 => array( | |||
'CreateObject', 'Write', 'Redirect', 'Cookies', 'BinaryRead', 'ClientCertificate', 'Form', 'QueryString', | |||
'ServerVariables', 'TotalBytes', 'AddHeader', 'AppendToLog', 'BinaryWrite', 'Buffer', 'CacheControl', | |||
'Charset', 'Clear', 'ContentType', 'End()', 'Expires', 'ExpiresAbsolute', 'Flush()', 'IsClientConnected', | |||
'PICS', 'Status', 'Connection', 'Recordset', 'Execute', 'Abandon', 'Lock', 'UnLock', 'Command', 'Fields', | |||
'Properties', 'Property', 'Send', 'Replace', 'InStr', 'TRIM', 'NOW', 'Day', 'Month', 'Hour', 'Minute', 'Second', | |||
'Year', 'MonthName', 'LCase', 'UCase', 'Abs', 'Array', 'As', 'LEN', 'MoveFirst', 'MoveLast', 'MovePrevious', | |||
'MoveNext', 'LBound', 'UBound', 'Transfer', 'Open', 'Close', 'MapPath', 'FileExists', 'OpenTextFile', 'ReadAll' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
1 => array( | |||
'<%', '%>' | |||
), | |||
0 => array( | |||
'(', ')', '[', ']', '!', '@', '%', '&', '*', '|', '/', '<', '>', | |||
';', ':', '?', '='), | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #990099; font-weight: bold;', | |||
2 => 'color: #0000ff; font-weight: bold;', | |||
3 => 'color: #330066;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #008000;', | |||
2 => 'color: #ff6600;', | |||
'MULTI' => 'color: #008000;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #006600; font-weight:bold;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #cc0000;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #800000;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #9900cc;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #006600; font-weight: bold;', | |||
1 => 'color: #000000; font-weight: bold;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
0 => '', | |||
1 => '', | |||
2 => '', | |||
3 => '' | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '' | |||
), | |||
'OOLANG' => true, | |||
'OBJECT_SPLITTERS' => array( | |||
1 => '.' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_MAYBE, | |||
'SCRIPT_DELIMITERS' => array( | |||
0 => array( | |||
'<%' => '%>' | |||
), | |||
1 => array( | |||
'<script language="vbscript" runat="server">' => '</script>' | |||
), | |||
2 => array( | |||
'<script language="javascript" runat="server">' => '</script>' | |||
), | |||
3 => "/(?P<start><%=?)(?:\"[^\"]*?\"|\/\*(?!\*\/).*?\*\/|.)*?(?P<end>%>|\Z)/sm" | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
0 => true, | |||
1 => true, | |||
2 => true, | |||
3 => true | |||
) | |||
); | |||
?> |
@@ -0,0 +1,512 @@ | |||
<?php | |||
/************************************************************************************* | |||
* autoconf.php | |||
* ----- | |||
* Author: Mihai Vasilian (grayasm@gmail.com) | |||
* Copyright: (c) 2010 Mihai Vasilian | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2010/01/25 | |||
* | |||
* autoconf language file for GeSHi. | |||
* | |||
*********************************************************************************** | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'Autoconf', | |||
'COMMENT_SINGLE' => array(2 => '#'), | |||
'COMMENT_MULTI' => array(), | |||
'COMMENT_REGEXP' => array( | |||
//Multiline-continued single-line comments | |||
1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m', | |||
//Multiline-continued preprocessor define | |||
2 => '/#(?:\\\\\\\\|\\\\\\n|.)*$/m', | |||
//Single Line comment started by dnl | |||
3 => '/(?<!\$)\bdnl\b.*$/m', | |||
), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'ESCAPE_CHAR' => '', | |||
'ESCAPE_REGEXP' => array(), | |||
'NUMBERS' => | |||
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B | | |||
GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI | | |||
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO, | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'AC_ACT_IFELSE', | |||
'AC_AIX', | |||
'AC_ALLOCA', | |||
'AC_ARG_ARRAY', | |||
'AC_ARG_ENABLE', | |||
'AC_ARG_PROGRAM', | |||
'AC_ARG_VAR', | |||
'AC_ARG_WITH', | |||
'AC_AUTOCONF_VERSION', | |||
'AC_BEFORE', | |||
'AC_C_BACKSLASH_A', | |||
'AC_C_BIGENDIAN', | |||
'AC_C_CHAR_UNSIGNED', | |||
'AC_C_CONST', | |||
'AC_C_CROSS', | |||
'AC_C_FLEXIBLE_ARRAY_MEMBER', | |||
'AC_C_INLINE', | |||
'AC_C_LONG_DOUBLE', | |||
'AC_C_PROTOTYPES', | |||
'AC_C_RESTRICT', | |||
'AC_C_STRINGIZE', | |||
'AC_C_TYPEOF', | |||
'AC_C_VARARRAYS', | |||
'AC_C_VOLATILE', | |||
'AC_CACHE_CHECK', | |||
'AC_CACHE_LOAD', | |||
'AC_CACHE_SAVE', | |||
'AC_CACHE_VAL', | |||
'AC_CANONICAL_BUILD', | |||
'AC_CANONICAL_HOST', | |||
'AC_CANONICAL_SYSTEM', | |||
'AC_CANONICAL_TARGET', | |||
'AC_CHAR_UNSIGNED', | |||
'AC_CHECK_ALIGNOF', | |||
'AC_CHECK_DECL', | |||
'AC_CHECK_DECLS', | |||
'AC_CHECK_DECLS_ONCE', | |||
'AC_CHECK_FILE', | |||
'AC_CHECK_FILES', | |||
'AC_CHECK_FUNC', | |||
'AC_CHECK_FUNCS', | |||
'AC_CHECK_FUNCS_ONCE', | |||
'AC_CHECK_HEADER', | |||
'AC_CHECK_HEADERS', | |||
'AC_CHECK_HEADERS_ONCE', | |||
'AC_CHECK_LIB', | |||
'AC_CHECK_MEMBER', | |||
'AC_CHECK_MEMBERS', | |||
'AC_CHECK_PROG', | |||
'AC_CHECK_PROGS', | |||
'AC_CHECK_SIZEOF', | |||
'AC_CHECK_TARGET_TOOL', | |||
'AC_CHECK_TARGET_TOOLS', | |||
'AC_CHECK_TOOL', | |||
'AC_CHECK_TOOLS', | |||
'AC_CHECK_TYPE', | |||
'AC_CHECK_TYPES', | |||
'AC_CHECKING', | |||
'AC_COMPILE_CHECK', | |||
'AC_COMPILE_IFELSE', | |||
'AC_COMPUTE_INT', | |||
'AC_CONFIG_AUX_DIR', | |||
'AC_CONFIG_COMMANDS', | |||
'AC_CONFIG_COMMANDS_POST', | |||
'AC_CONFIG_COMMANDS_PRE', | |||
'AC_CONFIG_FILES', | |||
'AC_CONFIG_HEADERS', | |||
'AC_CONFIG_ITEMS', | |||
'AC_CONFIG_LIBOBJ_DIR', | |||
'AC_CONFIG_LINKS', | |||
'AC_CONFIG_MACRO_DIR', | |||
'AC_CONFIG_SRCDIR', | |||
'AC_CONFIG_SUBDIRS', | |||
'AC_CONFIG_TESTDIR', | |||
'AC_CONST', | |||
'AC_COPYRIGHT', | |||
'AC_CROSS_CHECK', | |||
'AC_CYGWIN', | |||
'AC_DATAROOTDIR_CHECKED', | |||
'AC_DECL_SYS_SIGLIST', | |||
'AC_DECL_YYTEXT', | |||
'AC_DEFINE', | |||
'AC_DEFINE_UNQUOTED', | |||
'AC_DEFUN', | |||
'AC_DEFUN_ONCE', | |||
'AC_DIAGNOSE', | |||
'AC_DIR_HEADER', | |||
'AC_DISABLE_OPTION_CHECKING', | |||
'AC_DYNIX_SEQ', | |||
'AC_EGREP_CPP', | |||
'AC_EGREP_HEADER', | |||
'AC_EMXOS2', | |||
'AC_ENABLE', | |||
'AC_ERLANG_CHECK_LIB', | |||
'AC_ERLANG_NEED_ERL', | |||
'AC_ERLANG_NEED_ERLC', | |||
'AC_ERLANG_PATH_ERL', | |||
'AC_ERLANG_PATH_ERLC', | |||
'AC_ERLANG_SUBST_ERTS_VER', | |||
'AC_ERLANG_SUBST_INSTALL_LIB_DIR', | |||
'AC_ERLANG_SUBST_INSTALL_LIB_SUBDIR', | |||
'AC_ERLANG_SUBST_LIB_DIR', | |||
'AC_ERLANG_SUBST_ROOT_DIR', | |||
'AC_ERROR', | |||
'AC_EXEEXT', | |||
'AC_F77_DUMMY_MAIN', | |||
'AC_F77_FUNC', | |||
'AC_F77_LIBRARY_LDFLAGS', | |||
'AC_F77_MAIN', | |||
'AC_F77_WRAPPERS', | |||
'AC_FATAL', | |||
'AC_FC_FREEFORM', | |||
'AC_FC_FUNC', | |||
'AC_FC_LIBRARY_LDFLAGS', | |||
'AC_FC_MAIN', | |||
'AC_FC_SRCEXT', | |||
'AC_FC_WRAPPERS', | |||
'AC_FIND_X', | |||
'AC_FIND_XTRA', | |||
'AC_FOREACH', | |||
'AC_FUNC_ALLOCA', | |||
'AC_FUNC_CHECK', | |||
'AC_FUNC_CHOWN', | |||
'AC_FUNC_CLOSEDIR_VOID', | |||
'AC_FUNC_ERROR_AT_LINE', | |||
'AC_FUNC_FNMATCH', | |||
'AC_FUNC_FNMATCH_GNU', | |||
'AC_FUNC_FORK', | |||
'AC_FUNC_FSEEKO', | |||
'AC_FUNC_GETGROUPS', | |||
'AC_FUNC_GETLOADAVG', | |||
'AC_FUNC_GETMNTENT', | |||
'AC_FUNC_GETPGRP', | |||
'AC_FUNC_LSTAT', | |||
'AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK', | |||
'AC_FUNC_MALLOC', | |||
'AC_FUNC_MBRTOWC', | |||
'AC_FUNC_MEMCMP', | |||
'AC_FUNC_MKTIME', | |||
'AC_FUNC_MMAP', | |||
'AC_FUNC_OBSTACK', | |||
'AC_FUNC_REALLOC', | |||
'AC_FUNC_SELECT_ARGTYPES', | |||
'AC_FUNC_SETPGRP', | |||
'AC_FUNC_SETVBUF_REVERSED', | |||
'AC_FUNC_STAT', | |||
'AC_FUNC_STRCOLL', | |||
'AC_FUNC_STRERROR_R', | |||
'AC_FUNC_STRFTIME', | |||
'AC_FUNC_STRNLEN', | |||
'AC_FUNC_STRTOD', | |||
'AC_FUNC_STRTOLD', | |||
'AC_FUNC_UTIME_NULL', | |||
'AC_FUNC_VPRINTF', | |||
'AC_FUNC_WAIT3', | |||
'AC_GCC_TRADITIONAL', | |||
'AC_GETGROUPS_T', | |||
'AC_GETLOADAVG', | |||
'AC_GNU_SOURCE', | |||
'AC_HAVE_FUNCS', | |||
'AC_HAVE_HEADERS', | |||
'AC_HAVE_LIBRARY', | |||
'AC_HAVE_POUNDBANG', | |||
'AC_HEADER_ASSERT', | |||
'AC_HEADER_CHECK', | |||
'AC_HEADER_DIRENT', | |||
'AC_HEADER_EGREP', | |||
'AC_HEADER_MAJOR', | |||
'AC_HEADER_RESOLV', | |||
'AC_HEADER_STAT', | |||
'AC_HEADER_STDBOOL', | |||
'AC_HEADER_STDC', | |||
'AC_HEADER_SYS_WAIT', | |||
'AC_HEADER_TIME', | |||
'AC_HEADER_TIOCGWINSZ', | |||
'AC_HELP_STRING', | |||
'AC_INCLUDES_DEFAULT', | |||
'AC_INIT', | |||
'AC_INLINE', | |||
'AC_INT_16_BITS', | |||
'AC_IRIX_SUN', | |||
'AC_ISC_POSIX', | |||
'AC_LANG_ASSERT', | |||
'AC_LANG_C', | |||
'AC_LANG_CALL', | |||
'AC_LANG_CONFTEST', | |||
'AC_LANG_CPLUSPLUS', | |||
'AC_LANG_FORTRAN77', | |||
'AC_LANG_FUNC_LINK_TRY', | |||
'AC_LANG_POP', | |||
'AC_LANG_PROGRAM', | |||
'AC_LANG_PUSH', | |||
'AC_LANG_RESTORE', | |||
'AC_LANG_SAVE', | |||
'AC_LANG_SOURCE', | |||
'AC_LANG_WERROR', | |||
'AC_LIBOBJ', | |||
'AC_LIBSOURCE', | |||
'AC_LIBSOURCES', | |||
'AC_LINK_FILES', | |||
'AC_LINK_IFELSE', | |||
'AC_LN_S', | |||
'AC_LONG_64_BITS', | |||
'AC_LONG_DOUBLE', | |||
'AC_LONG_FILE_NAMES', | |||
'AC_MAJOR_HEADER', | |||
'AC_MEMORY_H', | |||
'AC_MINGW32', | |||
'AC_MINIX', | |||
'AC_MINUS_C_MINUS_O', | |||
'AC_MMAP', | |||
'AC_MODE_T', | |||
'AC_MSG_CHECKING', | |||
'AC_MSG_ERROR', | |||
'AC_MSG_FAILURE', | |||
'AC_MSG_NOTICE', | |||
'AC_MSG_RESULT', | |||
'AC_MSG_WARN', | |||
'AC_OBJEXT', | |||
'AC_OBSOLETE', | |||
'AC_OFF_T', | |||
'AC_OPENMP', | |||
'AC_OUTPUT', | |||
'AC_OUTPUT_COMMANDS', | |||
'AC_PACKAGE_BUGREPORT', | |||
'AC_PACKAGE_NAME', | |||
'AC_PACKAGE_STRING', | |||
'AC_PACKAGE_TARNAME', | |||
'AC_PACKAGE_URL', | |||
'AC_PACKAGE_VERSION', | |||
'AC_PATH_PROG', | |||
'AC_PATH_PROGS', | |||
'AC_PATH_PROGS_FEATURE_CHECK', | |||
'AC_PATH_TARGET_TOOL', | |||
'AC_PATH_TOOL', | |||
'AC_PATH_X', | |||
'AC_PATH_XTRA', | |||
'AC_PID_T', | |||
'AC_PREFIX', | |||
'AC_PREFIX_DEFAULT', | |||
'AC_PREFIX_PROGRAM', | |||
'AC_PREPROC_IFELSE', | |||
'AC_PREREQ', | |||
'AC_PRESERVE_HELP_ORDER', | |||
'AC_PROG_AWK', | |||
'AC_PROG_CC', | |||
'AC_PROG_CC_C89', | |||
'AC_PROG_CC_C99', | |||
'AC_PROG_CC_C_O', | |||
'AC_PROG_CC_STDC', | |||
'AC_PROG_CPP', | |||
'AC_PROG_CPP_WERROR', | |||
'AC_PROG_CXX', | |||
'AC_PROG_CXX_C_O', | |||
'AC_PROG_CXXCPP', | |||
'AC_PROG_EGREP', | |||
'AC_PROG_F77', | |||
'AC_PROG_F77_C_O', | |||
'AC_PROG_FC', | |||
'AC_PROG_FC_C_O', | |||
'AC_PROG_FGREP', | |||
'AC_PROG_GCC_TRADITIONAL', | |||
'AC_PROG_GREP', | |||
'AC_PROG_INSTALL', | |||
'AC_PROG_LEX', | |||
'AC_PROG_LN_S', | |||
'AC_PROG_MAKE_SET', | |||
'AC_PROG_MKDIR_P', | |||
'AC_PROG_OBJC', | |||
'AC_PROG_OBJCPP', | |||
'AC_PROG_OBJCXX', | |||
'AC_PROG_OBJCXXCPP', | |||
'AC_PROG_RANLIB', | |||
'AC_PROG_SED', | |||
'AC_PROG_YACC', | |||
'AC_PROGRAM_CHECK', | |||
'AC_PROGRAM_EGREP', | |||
'AC_PROGRAM_PATH', | |||
'AC_PROGRAMS_CHECK', | |||
'AC_PROGRAMS_PATH', | |||
'AC_REMOTE_TAPE', | |||
'AC_REPLACE_FNMATCH', | |||
'AC_REPLACE_FUNCS', | |||
'AC_REQUIRE', | |||
'AC_REQUIRE_AUX_FILE', | |||
'AC_REQUIRE_CPP', | |||
'AC_RESTARTABLE_SYSCALLS', | |||
'AC_RETSIGTYPE', | |||
'AC_REVISION', | |||
'AC_RSH', | |||
'AC_RUN_IFELSE', | |||
'AC_SCO_INTL', | |||
'AC_SEARCH_LIBS', | |||
'AC_SET_MAKE', | |||
'AC_SETVBUF_REVERSED', | |||
'AC_SIZE_T', | |||
'AC_SIZEOF_TYPE', | |||
'AC_ST_BLKSIZE', | |||
'AC_ST_BLOCKS', | |||
'AC_ST_RDEV', | |||
'AC_STAT_MACROS_BROKEN', | |||
'AC_STDC_HEADERS', | |||
'AC_STRCOLL', | |||
'AC_STRUCT_DIRENT_D_INO', | |||
'AC_STRUCT_DIRENT_D_TYPE', | |||
'AC_STRUCT_ST_BLKSIZE', | |||
'AC_STRUCT_ST_BLOCKS', | |||
'AC_STRUCT_ST_RDEV', | |||
'AC_STRUCT_TIMEZONE', | |||
'AC_STRUCT_TM', | |||
'AC_SUBST', | |||
'AC_SUBST_FILE', | |||
'AC_SYS_INTERPRETER', | |||
'AC_SYS_LARGEFILE', | |||
'AC_SYS_LONG_FILE_NAMES', | |||
'AC_SYS_POSIX_TERMIOS', | |||
'AC_SYS_RESTARTABLE_SYSCALLS', | |||
'AC_SYS_SIGLIST_DECLARED', | |||
'AC_TEST_CPP', | |||
'AC_TEST_PROGRAM', | |||
'AC_TIME_WITH_SYS_TIME', | |||
'AC_TIMEZONE', | |||
'AC_TRY_ACT', | |||
'AC_TRY_COMPILE', | |||
'AC_TRY_CPP', | |||
'AC_TRY_LINK', | |||
'AC_TRY_LINK_FUNC', | |||
'AC_TRY_RUN', | |||
'AC_TYPE_GETGROUPS', | |||
'AC_TYPE_INT16_T', | |||
'AC_TYPE_INT32_T', | |||
'AC_TYPE_INT64_T', | |||
'AC_TYPE_INT8_T', | |||
'AC_TYPE_INTMAX_T', | |||
'AC_TYPE_INTPTR_T', | |||
'AC_TYPE_LONG_DOUBLE', | |||
'AC_TYPE_LONG_DOUBLE_WIDER', | |||
'AC_TYPE_LONG_LONG_INT', | |||
'AC_TYPE_MBSTATE_T', | |||
'AC_TYPE_MODE_T', | |||
'AC_TYPE_OFF_T', | |||
'AC_TYPE_PID_T', | |||
'AC_TYPE_SIGNAL', | |||
'AC_TYPE_SIZE_T', | |||
'AC_TYPE_SSIZE_T', | |||
'AC_TYPE_UID_T', | |||
'AC_TYPE_UINT16_T', | |||
'AC_TYPE_UINT32_T', | |||
'AC_TYPE_UINT64_T', | |||
'AC_TYPE_UINT8_T', | |||
'AC_TYPE_UINTMAX_T', | |||
'AC_TYPE_UINTPTR_T', | |||
'AC_TYPE_UNSIGNED_LONG_LONG_INT', | |||
'AC_UID_T', | |||
'AC_UNISTD_H', | |||
'AC_USE_SYSTEM_EXTENSIONS', | |||
'AC_USG', | |||
'AC_UTIME_NULL', | |||
'AC_VALIDATE_CACHED_SYSTEM_TUPLE', | |||
'AC_VERBOSE', | |||
'AC_VFORK', | |||
'AC_VPRINTF', | |||
'AC_WAIT3', | |||
'AC_WARN', | |||
'AC_WARNING', | |||
'AC_WITH', | |||
'AC_WORDS_BIGENDIAN', | |||
'AC_XENIX_DIR', | |||
'AC_YYTEXT_POINTER', | |||
'AH_BOTTOM', | |||
'AH_HEADER', | |||
'AH_TEMPLATE', | |||
'AH_TOP', | |||
'AH_VERBATIM', | |||
'AU_ALIAS', | |||
'AU_DEFUN'), | |||
), | |||
'SYMBOLS' => array('(', ')', '[', ']', '!', '@', '%', '&', '*', '|', '/', '<', '>', ';;', '`'), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => true, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #00ffff;', | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #666666;', | |||
2 => 'color: #339900;', | |||
3 => 'color: #666666;', | |||
'MULTI' => 'color: #ff0000; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099;', | |||
1 => 'color: #000099;', | |||
2 => 'color: #660099;', | |||
3 => 'color: #660099;', | |||
4 => 'color: #660099;', | |||
5 => 'color: #006699;', | |||
'HARD' => '', | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #008000;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #996600;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #0000dd;', | |||
GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;', | |||
GESHI_NUMBER_OCT_PREFIX => 'color: #208080;', | |||
GESHI_NUMBER_HEX_PREFIX => 'color: #208080;', | |||
GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;', | |||
GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;', | |||
GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;', | |||
GESHI_NUMBER_FLT_NONSCI => 'color:#800080;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #202020;', | |||
2 => 'color: #202020;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #008000;', | |||
1 => 'color: #000080;', | |||
2 => 'color: #000040;', | |||
3 => 'color: #000040;', | |||
4 => 'color: #008080;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 4, | |||
'PARSER_CONTROL' => array( | |||
'COMMENTS' => array( | |||
'DISALLOWED_BEFORE' => '$' | |||
), | |||
'KEYWORDS' => array( | |||
'DISALLOWED_BEFORE' => "(?<![\.\-a-zA-Z0-9_\$\#])", | |||
'DISALLOWED_AFTER' => "(?![\.\-a-zA-Z0-9_%\\/])" | |||
) | |||
) | |||
); | |||
?> |
@@ -0,0 +1,373 @@ | |||
<?php | |||
/************************************************************************************* | |||
* autohotkey.php | |||
* -------- | |||
* Author: Naveen Garg (naveen.garg@gmail.com) | |||
* Copyright: (c) 2009 Naveen Garg and GeSHi | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2009/06/11 | |||
* | |||
* Autohotkey language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* Release 1.0.8.5 (2009/06/11) | |||
* - First Release | |||
* | |||
* TODO | |||
* ---- | |||
* Reference: http://www.autohotkey.com/docs/ | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'Autohotkey', | |||
'COMMENT_SINGLE' => array( | |||
1 => ';' | |||
), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"'), | |||
'ESCAPE_CHAR' => '', | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'while','if','and','or','else','return' | |||
), | |||
2 => array( | |||
// built in variables | |||
'A_AhkPath','A_AhkVersion','A_AppData','A_AppDataCommon', | |||
'A_AutoTrim','A_BatchLines','A_CaretX','A_CaretY', | |||
'A_ComputerName','A_ControlDelay','A_Cursor','A_DD', | |||
'A_DDD','A_DDDD','A_DefaultMouseSpeed','A_Desktop', | |||
'A_DesktopCommon','A_DetectHiddenText','A_DetectHiddenWindows','A_EndChar', | |||
'A_EventInfo','A_ExitReason','A_FormatFloat','A_FormatInteger', | |||
'A_Gui','A_GuiEvent','A_GuiControl','A_GuiControlEvent', | |||
'A_GuiHeight','A_GuiWidth','A_GuiX','A_GuiY', | |||
'A_Hour','A_IconFile','A_IconHidden','A_IconNumber', | |||
'A_IconTip','A_Index','A_IPAddress1','A_IPAddress2', | |||
'A_IPAddress3','A_IPAddress4','A_ISAdmin','A_IsCompiled', | |||
'A_IsCritical','A_IsPaused','A_IsSuspended','A_KeyDelay', | |||
'A_Language','A_LastError','A_LineFile','A_LineNumber', | |||
'A_LoopField','A_LoopFileAttrib','A_LoopFileDir','A_LoopFileExt', | |||
'A_LoopFileFullPath','A_LoopFileLongPath','A_LoopFileName','A_LoopFileShortName', | |||
'A_LoopFileShortPath','A_LoopFileSize','A_LoopFileSizeKB','A_LoopFileSizeMB', | |||
'A_LoopFileTimeAccessed','A_LoopFileTimeCreated','A_LoopFileTimeModified','A_LoopReadLine', | |||
'A_LoopRegKey','A_LoopRegName','A_LoopRegSubkey','A_LoopRegTimeModified', | |||
'A_LoopRegType','A_MDAY','A_Min','A_MM', | |||
'A_MMM','A_MMMM','A_Mon','A_MouseDelay', | |||
'A_MSec','A_MyDocuments','A_Now','A_NowUTC', | |||
'A_NumBatchLines','A_OSType','A_OSVersion','A_PriorHotkey', | |||
'A_ProgramFiles','A_Programs','A_ProgramsCommon','A_ScreenHeight', | |||
'A_ScreenWidth','A_ScriptDir','A_ScriptFullPath','A_ScriptName', | |||
'A_Sec','A_Space','A_StartMenu','A_StartMenuCommon', | |||
'A_Startup','A_StartupCommon','A_StringCaseSense','A_Tab', | |||
'A_Temp','A_ThisFunc','A_ThisHotkey','A_ThisLabel', | |||
'A_ThisMenu','A_ThisMenuItem','A_ThisMenuItemPos','A_TickCount', | |||
'A_TimeIdle','A_TimeIdlePhysical','A_TimeSincePriorHotkey','A_TimeSinceThisHotkey', | |||
'A_TitleMatchMode','A_TitleMatchModeSpeed','A_UserName','A_WDay', | |||
'A_WinDelay','A_WinDir','A_WorkingDir','A_YDay', | |||
'A_YEAR','A_YWeek','A_YYYY','Clipboard', | |||
'ClipboardAll','ComSpec','ErrorLevel','ProgramFiles', | |||
), | |||
3 => array( | |||
'AutoTrim', | |||
'BlockInput','Break','Click', | |||
'ClipWait','Continue','Control', | |||
'ControlClick','ControlFocus','ControlGet', | |||
'ControlGetFocus','ControlGetPos','ControlGetText', | |||
'ControlMove','ControlSend','ControlSendRaw', | |||
'ControlSetText','CoordMode','Critical', | |||
'DetectHiddenText','DetectHiddenWindows','DllCall','Drive', | |||
'DriveGet','DriveSpaceFree', | |||
'Else','EnvAdd','EnvDiv', | |||
'EnvGet','EnvMult','EnvSet', | |||
'EnvSub','EnvUpdate','Exit', | |||
'ExitApp','FileAppend','FileCopy', | |||
'FileCopyDir','FileCreateDir','FileCreateShortcut', | |||
'FileDelete','FileGetAttrib','FileGetShortcut', | |||
'FileGetSize','FileGetTime','FileGetVersion', | |||
'FileInstall','FileMove','FileMoveDir', | |||
'FileRead','FileReadLine','FileRecycle', | |||
'FileRecycleEmpty','FileRemoveDir','FileSelectFile', | |||
'FileSelectFolder','FileSetAttrib','FileSetTime', | |||
'FormatTime','Gosub', | |||
'Goto','GroupActivate','GroupAdd', | |||
'GroupClose','GroupDeactivate','Gui', | |||
'GuiControl','GuiControlGet','Hotkey', | |||
'IfExist','IfGreater','IfGreaterOrEqual', | |||
'IfInString','IfLess','IfLessOrEqual', | |||
'IfMsgBox','IfNotEqual','IfNotExist', | |||
'IfNotInString','IfWinActive','IfWinExist', | |||
'IfWinNotActive','IfWinNotExist','ImageSearch', | |||
'IniDelete','IniRead','IniWrite', | |||
'Input','InputBox','KeyHistory', | |||
'KeyWait','ListHotkeys','ListLines', | |||
'ListVars','Loop', | |||
'Menu','MouseClick','MouseClickDrag', | |||
'MouseGetPos','MouseMove','MsgBox', | |||
'OnMessage','OnExit','OutputDebug', | |||
'PixelGetColor','PixelSearch','PostMessage', | |||
'Process','Progress','Random', | |||
'RegExMatch','RegExReplace','RegisterCallback', | |||
'RegDelete','RegRead','RegWrite', | |||
'Reload','Repeat','Return', | |||
'Run','RunAs','RunWait', | |||
'Send','SendEvent','SendInput', | |||
'SendMessage','SendMode','SendPlay', | |||
'SendRaw','SetBatchLines','SetCapslockState', | |||
'SetControlDelay','SetDefaultMouseSpeed','SetEnv', | |||
'SetFormat','SetKeyDelay','SetMouseDelay', | |||
'SetNumlockState','SetScrollLockState','SetStoreCapslockMode', | |||
'SetTimer','SetTitleMatchMode','SetWinDelay', | |||
'SetWorkingDir','Shutdown','Sleep', | |||
'Sort','SoundBeep','SoundGet', | |||
'SoundGetWaveVolume','SoundPlay','SoundSet', | |||
'SoundSetWaveVolume','SplashImage','SplashTextOff', | |||
'SplashTextOn','SplitPath','StatusBarGetText', | |||
'StatusBarWait','StringCaseSense','StringGetPos', | |||
'StringLeft','StringLen','StringLower', | |||
'StringMid','StringReplace','StringRight', | |||
'StringSplit','StringTrimLeft','StringTrimRight', | |||
'StringUpper','Suspend','SysGet', | |||
'Thread','ToolTip','Transform', | |||
'TrayTip','URLDownloadToFile','While', | |||
'VarSetCapacity', | |||
'WinActivate','WinActivateBottom','WinClose', | |||
'WinGet','WinGetActiveStats','WinGetActiveTitle', | |||
'WinGetClass','WinGetPos','WinGetText', | |||
'WinGetTitle','WinHide','WinKill', | |||
'WinMaximize','WinMenuSelectItem','WinMinimize', | |||
'WinMinimizeAll','WinMinimizeAllUndo','WinMove', | |||
'WinRestore','WinSet','WinSetTitle', | |||
'WinShow','WinWait','WinWaitActive', | |||
'WinWaitClose','WinWaitNotActive' | |||
), | |||
4 => array( | |||
'Abs','ACos','Asc','ASin', | |||
'ATan','Ceil','Chr','Cos', | |||
'Exp','FileExist','Floor', | |||
'GetKeyState','IL_Add','IL_Create','IL_Destroy', | |||
'InStr','IsFunc','IsLabel','Ln', | |||
'Log','LV_Add','LV_Delete','LV_DeleteCol', | |||
'LV_GetCount','LV_GetNext','LV_GetText','LV_Insert', | |||
'LV_InsertCol','LV_Modify','LV_ModifyCol','LV_SetImageList', | |||
'Mod','NumGet','NumPut', | |||
'Round', | |||
'SB_SetIcon','SB_SetParts','SB_SetText','Sin', | |||
'Sqrt','StrLen','SubStr','Tan', | |||
'TV_Add','TV_Delete','TV_GetChild','TV_GetCount', | |||
'TV_GetNext','TV_Get','TV_GetParent','TV_GetPrev', | |||
'TV_GetSelection','TV_GetText','TV_Modify', | |||
'WinActive','WinExist' | |||
), | |||
5 => array( | |||
// #Directives | |||
'AllowSameLineComments','ClipboardTimeout','CommentFlag', | |||
'ErrorStdOut','EscapeChar','HotkeyInterval', | |||
'HotkeyModifierTimeout','Hotstring','IfWinActive', | |||
'IfWinExist','IfWinNotActive','IfWinNotExist', | |||
'Include','IncludeAgain','InstallKeybdHook', | |||
'InstallMouseHook','KeyHistory','LTrim', | |||
'MaxHotkeysPerInterval','MaxMem','MaxThreads', | |||
'MaxThreadsBuffer','MaxThreadsPerHotkey','NoEnv', | |||
'NoTrayIcon','Persistent','SingleInstance', | |||
'UseHook','WinActivateForce' | |||
), | |||
6 => array( | |||
'Shift','LShift','RShift', | |||
'Alt','LAlt','RAlt', | |||
'LControl','RControl', | |||
'Ctrl','LCtrl','RCtrl', | |||
'LWin','RWin','AppsKey', | |||
'AltDown','AltUp','ShiftDown', | |||
'ShiftUp','CtrlDown','CtrlUp', | |||
'LWinDown','LWinUp','RWinDown', | |||
'RWinUp','LButton','RButton', | |||
'MButton','WheelUp','WheelDown', | |||
'WheelLeft','WheelRight','XButton1', | |||
'XButton2','Joy1','Joy2', | |||
'Joy3','Joy4','Joy5', | |||
'Joy6','Joy7','Joy8', | |||
'Joy9','Joy10','Joy11', | |||
'Joy12','Joy13','Joy14', | |||
'Joy15','Joy16','Joy17', | |||
'Joy18','Joy19','Joy20', | |||
'Joy21','Joy22','Joy23', | |||
'Joy24','Joy25','Joy26', | |||
'Joy27','Joy28','Joy29', | |||
'Joy30','Joy31','Joy32', | |||
'JoyX','JoyY','JoyZ', | |||
'JoyR','JoyU','JoyV', | |||
'JoyPOV','JoyName','JoyButtons', | |||
'JoyAxes','JoyInfo','Space', | |||
'Tab','Enter', | |||
'Escape','Esc','BackSpace', | |||
'BS','Delete','Del', | |||
'Insert','Ins','PGUP', | |||
'PGDN','Home','End', | |||
'Up','Down','Left', | |||
'Right','PrintScreen','CtrlBreak', | |||
'Pause','ScrollLock','CapsLock', | |||
'NumLock','Numpad0','Numpad1', | |||
'Numpad2','Numpad3','Numpad4', | |||
'Numpad5','Numpad6','Numpad7', | |||
'Numpad8','Numpad9','NumpadMult', | |||
'NumpadAdd','NumpadSub','NumpadDiv', | |||
'NumpadDot','NumpadDel','NumpadIns', | |||
'NumpadClear','NumpadUp','NumpadDown', | |||
'NumpadLeft','NumpadRight','NumpadHome', | |||
'NumpadEnd','NumpadPgup','NumpadPgdn', | |||
'NumpadEnter','F1','F2', | |||
'F3','F4','F5', | |||
'F6','F7','F8', | |||
'F9','F10','F11', | |||
'F12','F13','F14', | |||
'F15','F16','F17', | |||
'F18','F19','F20', | |||
'F21','F22','F23', | |||
'F24','Browser_Back','Browser_Forward', | |||
'Browser_Refresh','Browser_Stop','Browser_Search', | |||
'Browser_Favorites','Browser_Home','Volume_Mute', | |||
'Volume_Down','Volume_Up','Media_Next', | |||
'Media_Prev','Media_Stop','Media_Play_Pause', | |||
'Launch_Mail','Launch_Media','Launch_App1', | |||
'Launch_App2' | |||
), | |||
7 => array( | |||
// Gui commands | |||
'Add', | |||
'Show', 'Submit', 'Cancel', 'Destroy', | |||
'Font', 'Color', 'Margin', 'Flash', 'Default', | |||
'GuiEscape','GuiClose','GuiSize','GuiContextMenu','GuiDropFilesTabStop', | |||
), | |||
8 => array( | |||
// Gui Controls | |||
'Button', | |||
'Checkbox','Radio','DropDownList','DDL', | |||
'ComboBox','ListBox','ListView', | |||
'Text', 'Edit', 'UpDown', 'Picture', | |||
'TreeView','DateTime', 'MonthCal', | |||
'Slider' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'(',')','[',']', | |||
'+','-','*','/','&','^', | |||
'=','+=','-=','*=','/=','&=', | |||
'==','<','<=','>','>=',':=', | |||
',','.' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
4 => false, | |||
5 => false, | |||
6 => false, | |||
7 => false, | |||
8 => false | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #AAAAFF; font-weight: bold;', // reserved #blue | |||
2 => 'color: #88FF88;', // BIV yellow | |||
3 => 'color: #FF00FF; font-style: italic;', // commands purple | |||
4 => 'color: #888844; font-weight: bold;', // functions #0080FF | |||
5 => 'color: #000000; font-style: italic;', // directives #black | |||
6 => 'color: #FF0000; font-style: italic;', // hotkeys #red | |||
7 => 'color: #000000; font-style: italic;', // gui commands #black | |||
8 => 'color: #000000; font-style: italic;' // gui controls | |||
), | |||
'COMMENTS' => array( | |||
'MULTI' => 'font-style: italic; color: #669900;', | |||
1 => 'font-style: italic; color: #009933;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => '' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #00FF00; font-weight: bold;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'font-weight: bold; color: #008080;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #0000dd;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #0000FF; font-style: italic; font-weight: italic;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #000000; font-weight: italic;' | |||
), | |||
'REGEXPS' => array( | |||
0 => 'font-weight: italic; color: #A00A0;', | |||
1 => 'color: #CC0000; font-style: italic;', | |||
2 => 'color: #DD0000; font-style: italic;', | |||
3 => 'color: #88FF88;' | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
1 => '_' | |||
), | |||
'REGEXPS' => array( | |||
//Variables | |||
0 => '%[a-zA-Z_][a-zA-Z0-9_]*%', | |||
//hotstrings | |||
1 => '::[\w\d]+::', | |||
//labels | |||
2 => '\w[\w\d]+:\s', | |||
//Built-in Variables | |||
3 => '\bA_\w+\b(?![^<]*>)' | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => 'http://www.autohotkey.com/docs/Variables.htm#{FNAME}', | |||
3 => 'http://www.autohotkey.com/docs/commands/{FNAME}.htm', | |||
4 => 'http://www.autohotkey.com/docs/Functions.htm#BuiltIn', | |||
5 => 'http://www.autohotkey.com/docs/commands/_{FNAME}.htm', | |||
6 => '', | |||
7 => 'http://www.autohotkey.com/docs/commands/Gui.htm#{FNAME}', | |||
8 => 'http://www.autohotkey.com/docs/commands/GuiControls.htm#{FNAME}' | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_MAYBE, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
0 => true, | |||
1 => true, | |||
2 => true, | |||
3 => true | |||
), | |||
'PARSER_CONTROL' => array( | |||
'KEYWORDS' => array( | |||
5 => array( | |||
'DISALLOWED_BEFORE' => '(?<!\w)\#' | |||
) | |||
) | |||
) | |||
); | |||
?> |
@@ -0,0 +1,194 @@ | |||
<?php | |||
/************************************************************************************* | |||
* avisynth.php | |||
* -------- | |||
* Author: Ryan Jones (sciguyryan@gmail.com) | |||
* Copyright: (c) 2008 Ryan Jones | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2008/10/08 | |||
* | |||
* AviSynth language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2008/10/08 (1.0.8.1) | |||
* - First Release | |||
* | |||
* TODO (updated 2008/10/08) | |||
* ------------------------- | |||
* * There are also some special words that can't currently be specified directly in GeSHi as they may | |||
* also be used as variables which would really mess things up. | |||
* * Also there is an issue with the escape character as this language uses a muti-character escape system. Escape char should be """ but has been left | |||
* as empty due to this restiction. | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'AviSynth', | |||
'COMMENT_SINGLE' => array(1 => '#'), | |||
'COMMENT_MULTI' => array('/*' => '*/', '[*' => '*]'), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"'), | |||
'ESCAPE_CHAR' => '', | |||
'KEYWORDS' => array( | |||
// Reserved words. | |||
1 => array( | |||
'try', 'cache', 'function', 'global', 'return' | |||
), | |||
// Constants / special variables. | |||
2 => array( | |||
'true', 'yes', 'false', 'no', '__END__' | |||
), | |||
// Internal Filters. | |||
3 => array( | |||
'AviSource', 'AviFileSource', 'AddBorders', 'AlignedSplice', 'AssumeFPS', 'AssumeScaledFPS', | |||
'AssumeFrameBased', 'AssumeFieldBased', 'AssumeBFF', 'AssumeTFF', 'Amplify', 'AmplifydB', | |||
'AssumeSampleRate', 'AudioDub', 'AudioDubEx', 'Animate', 'ApplyRange', | |||
'BicubicResize', 'BilinearResize', 'BlackmanResize', 'Blur', 'Bob', 'BlankClip', 'Blackness', | |||
'ColorYUV', 'ConvertBackToYUY2', 'ConvertToRGB', 'ConvertToRGB24', 'ConvertToRGB32', | |||
'ConvertToYUY2', 'ConvertToY8', 'ConvertToYV411', 'ConvertToYV12', 'ConvertToYV16', 'ConvertToYV24', | |||
'ColorKeyMask', 'Crop', 'CropBottom', 'ChangeFPS', 'ConvertFPS', 'ComplementParity', 'ConvertAudioTo8bit', | |||
'ConvertAudioTo16bit', 'ConvertAudioTo24bit', 'ConvertAudioTo32bit', 'ConvertAudioToFloat', 'ConvertToMono', | |||
'ConditionalFilter', 'ConditionalReader', 'ColorBars', 'Compare', | |||
'DirectShowSource', 'DeleteFrame', 'Dissolve', 'DuplicateFrame', 'DoubleWeave', 'DelayAudio', | |||
'EnsureVBRMP3Sync', | |||
'FixLuminance', 'FlipHorizontal', 'FlipVertical', 'FixBrokenChromaUpsampling', 'FadeIn0', 'FadeIn', | |||
'FadeIn2', 'FadeOut0', 'FadeOut', 'FadeOut2', 'FadeIO0', 'FadeIO', 'FadeIO2', 'FreezeFrame', 'FrameEvaluate', | |||
'GreyScale', 'GaussResize', 'GeneralConvolution', 'GetChannel', 'GetLeftChannel', 'GetRightChannel', | |||
'HorizontalReduceBy2', 'Histogram', | |||
'ImageReader', 'ImageSource', 'ImageWriter', 'Invert', 'Interleave', 'Info', | |||
'KillAudio', 'KillVideo', | |||
'Levels', 'Limiter', 'Layer', 'Letterbox', 'LanczosResize', 'Lanczos4Resize', 'Loop', | |||
'MergeARGB', 'MergeRGB', 'MergeChroma', 'MergeLuma', 'Merge', 'Mask', 'MaskHS', 'MergeChannels', 'MixAudio', | |||
'MonoToStereo', 'MessageClip', | |||
'Normalize', | |||
'OpenDMLSource', 'Overlay', | |||
'PointResize', 'PeculiarBlend', 'Pulldown', | |||
'RGBAdjust', 'ResetMask', 'Reverse', 'ResampleAudio', 'ReduceBy2', | |||
'SegmentedAviSource', 'SegmentedDirectShowSource', 'SoundOut', 'ShowAlpha', 'ShowRed', 'ShowGreen', | |||
'ShowBlue', 'SwapUV', 'Subtract', 'SincResize', 'Spline16Resize', 'Spline36Resize', 'Spline64Resize', | |||
'SelectEven', 'SelectOdd', 'SelectEvery', 'SelectRangeEvery', 'Sharpen', 'SpatialSoften', 'SeparateFields', | |||
'ShowFiveVersions', 'ShowFrameNumber', 'ShowSMPTE', 'ShowTime', 'StackHorizontal', 'StackVertical', 'Subtitle', | |||
'SwapFields', 'SuperEQ', 'SSRC', 'ScriptClip', | |||
'Tweak', 'TurnLeft', 'TurnRight', 'Turn180', 'TemporalSoften', 'TimeStretch', 'TCPServer', 'TCPSource', 'Trim', | |||
'Tone', | |||
'UToY', 'UToY8', 'UnalignedSplice', | |||
'VToY', 'VToY8', 'VerticalReduceBy2', 'Version', | |||
'WavSource', 'Weave', 'WriteFile', 'WriteFileIf', 'WriteFileStart', 'WriteFileEnd', | |||
'YToUV' | |||
), | |||
// Internal functions. | |||
4 => array( | |||
'Abs', 'Apply', 'Assert', 'AverageLuma', 'AverageChromaU', 'AverageChromaV', | |||
'Ceil', 'Cos', 'Chr', 'ChromaUDifference', 'ChromaVDifference', | |||
'Defined', 'Default', | |||
'Exp', 'Exist', 'Eval', | |||
'Floor', 'Frac', 'Float', 'Findstr', 'GetMTMode', | |||
'HexValue', | |||
'Int', 'IsBool', 'IsClip', 'IsFloat', 'IsInt', 'IsString', 'Import', | |||
'LoadPlugin', 'Log', 'LCase', 'LeftStr', 'LumaDifference', 'LoadVirtualDubPlugin', 'LoadVFAPIPlugin', | |||
'LoadCPlugin', 'Load_Stdcall_Plugin', | |||
'Max', 'MulDiv', 'MidStr', | |||
'NOP', | |||
'OPT_AllowFloatAudio', 'OPT_UseWaveExtensible', | |||
'Pi', 'Pow', | |||
'Round', 'Rand', 'RevStr', 'RightStr', 'RGBDifference', 'RGBDifferenceFromPrevious', 'RGBDifferenceToNext', | |||
'Sin', 'Sqrt', 'Sign', 'Spline', 'StrLen', 'String', 'Select', 'SetMemoryMax', 'SetWorkingDir', 'SetMTMode', | |||
'SetPlanarLegacyAlignment', | |||
'Time', | |||
'UCase', 'UDifferenceFromPrevious', 'UDifferenceToNext', 'UPlaneMax', 'UPlaneMin', 'UPlaneMedian', | |||
'UPlaneMinMaxDifference', | |||
'Value', 'VersionNumber', 'VersionString', 'VDifferenceFromPrevious', 'VDifferenceToNext', 'VPlaneMax', | |||
'VPlaneMin', 'VPlaneMedian', 'VPlaneMinMaxDifference', | |||
'YDifferenceFromPrevious', 'YDifferenceToNext', 'YPlaneMax', 'YPlaneMin', 'YPlaneMedian', | |||
'YPlaneMinMaxDifference' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'+', '++', '-', '--', '/', '*', '%', | |||
'=', '==', '<', '<=', '>', '>=', '<>', '!=', | |||
'!', '?', ':', | |||
'|', '||', '&&', | |||
'\\', | |||
'(', ')', '{', '}', | |||
'.', ',' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
4 => true, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color:#9966CC; font-weight:bold;', | |||
2 => 'color:#0000FF; font-weight:bold;', | |||
3 => 'color:#CC3300; font-weight:bold;', | |||
4 => 'color:#660000; font-weight:bold;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color:#008000; font-style:italic;', | |||
'MULTI' => 'color:#000080; font-style:italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color:#000099;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color:#006600; font-weight:bold;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color:#996600;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color:#006666;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color:#9900CC;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color:#006600; font-weight:bold;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => 'http://avisynth.org/mediawiki/{FNAME}', | |||
4 => '' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'OOLANG' => true, | |||
'OBJECT_SPLITTERS' => array( | |||
1 => '.' | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_MAYBE, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 4 | |||
); | |||
?> |
@@ -0,0 +1,158 @@ | |||
<?php | |||
/************************************************ | |||
* awk.php | |||
* ------- | |||
* Author: George Pollard (porges@porg.es) | |||
* Copyright: (c) 2009 George Pollard | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2009/01/28 | |||
* | |||
* Awk language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2009/01/28 (1.0.8.5) | |||
* - First Release | |||
* | |||
* TODO (updated 2009/01/28) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'awk', | |||
'COMMENT_SINGLE' => array( | |||
1 => '#' | |||
), | |||
'COMMENT_MULTI' => array(), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"'), | |||
'ESCAPE_CHAR' => '\\', | |||
'KEYWORDS' => array ( | |||
1 => array( | |||
'for', 'in', 'if', 'else', 'while', 'do', 'continue', 'break' | |||
), | |||
2 => array( | |||
'BEGIN', 'END' | |||
), | |||
3 => array( | |||
'ARGC', 'ARGV', 'CONVFMT', 'ENVIRON', | |||
'FILENAME', 'FNR', 'FS', 'NF', 'NR', 'OFMT', | |||
'OFS','ORS','RLENGTH','RS','RSTART','SUBSEP' | |||
), | |||
4 => array( | |||
'gsub','index','length','match','split', | |||
'sprintf','sub','substr','tolower','toupper', | |||
'atan2','cos','exp','int','log','rand', | |||
'sin','sqrt','srand' | |||
), | |||
5 => array( | |||
'print','printf','getline','close','fflush','system' | |||
), | |||
6 => array( | |||
'function', 'return' | |||
) | |||
), | |||
'SYMBOLS' => array ( | |||
0 => array( | |||
'(',')','[',']','{','}' | |||
), | |||
1 => array( | |||
'!','||','&&' | |||
), | |||
2 => array( | |||
'<','>','<=','>=','==','!=' | |||
), | |||
3 => array( | |||
'+','-','*','/','%','^','++','--' | |||
), | |||
4 => array( | |||
'~','!~' | |||
), | |||
5 => array( | |||
'?',':' | |||
) | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
4 => false, | |||
5 => false, | |||
6 => false | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #000000; font-weight: bold;', | |||
2 => 'color: #C20CB9; font-weight: bold;', | |||
3 => 'color: #4107D5; font-weight: bold;', | |||
4 => 'color: #07D589; font-weight: bold;', | |||
5 => 'color: #0BD507; font-weight: bold;', | |||
6 => 'color: #078CD5; font-weight: bold;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color:#808080;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color:black;', | |||
1 => 'color:black;', | |||
2 => 'color:black;', | |||
3 => 'color:black;', | |||
4 => 'color:#C4C364;', | |||
5 => 'color:black;font-weight:bold;'), | |||
'SCRIPT' => array(), | |||
'REGEXPS' => array( | |||
0 => 'color:#000088;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #ff0000;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #000000;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #7a0874; font-weight: bold;' | |||
), | |||
'METHODS' => array() | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '', | |||
4 => '', | |||
5 => '', | |||
6 => '' | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array (), | |||
'REGEXPS' => array( | |||
0 => "\\$[a-zA-Z0-9_]+" | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array (), | |||
'HIGHLIGHT_STRICT_BLOCK' => array() | |||
); | |||
?> |
@@ -0,0 +1,185 @@ | |||
<?php | |||
/************************************************************************************* | |||
* bascomavr.php | |||
* --------------------------------- | |||
* Author: aquaticus.info | |||
* Copyright: (c) 2008 aquaticus.info | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2008/01/09 | |||
* | |||
* BASCOM AVR language file for GeSHi. | |||
* | |||
* You can find the BASCOM AVR Website at (www.mcselec.com/bascom-avr.htm) | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2008/01/09 (1.0.8.10) | |||
* - First Release | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'BASCOM AVR', | |||
'COMMENT_SINGLE' => array(1 => "'"), | |||
'COMMENT_MULTI' => array(), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"'), | |||
'ESCAPE_CHAR' => '', | |||
'KEYWORDS' => array( | |||
1 => array( | |||
// Navy Blue Bold Keywords | |||
'1WRESET' , '1WREAD' , '1WWRITE' , '1WSEARCHFIRST' , '1WSEARCHNEXT' ,'1WVERIFY' , '1WIRECOUNT', | |||
'CONFIG' , 'ACI' , 'ADC' , 'BCCARD' , 'CLOCK' , 'COM1' , | |||
'COM2' , 'PS2EMU' , 'ATEMU' , 'I2CSLAVE' , | |||
'INPUT', 'OUTPUT', 'GRAPHLCD' , 'KEYBOARD' , 'TIMER0' , 'TIMER1' , | |||
'LCDBUS' , 'LCDMODE' , '1WIRE' , 'LCD' , 'SERIALOUT' , | |||
'SERIALIN' , 'SPI' , 'LCDPIN' , 'SDA' , 'SCL' , | |||
'WATCHDOG' , 'PORT' , 'COUNTER0', 'COUNTER1' , 'TCPIP' , 'TWISLAVE' , | |||
'X10' , 'XRAM' , 'USB', | |||
'BCD' , 'GRAY2BIN' , 'BIN2GRAY' , 'BIN' , 'MAKEBCD' , 'MAKEDEC' , 'MAKEINT' , 'FORMAT' , 'FUSING' , 'BINVAL' , | |||
'CRC8' , 'CRC16' , 'CRC16UNI' , 'CRC32' , 'HIGH' , 'HIGHW' , 'LOW', | |||
'DATE' , 'TIME' , 'DATE$' , 'TIME$' , 'DAYOFWEEK' , 'DAYOFYEAR' , 'SECOFDAY' , 'SECELAPSED' , 'SYSDAY' , 'SYSSEC' , 'SYSSECELAPSED', | |||
'WAIT' , 'WAITMS' , 'WAITUS' , 'DELAY', | |||
'BSAVE' , 'BLOAD' , 'GET' , 'VER' , 'DISKFREE' , 'DIR' , 'DriveReset' , 'DriveInit' , 'LINE' , 'INITFILESYSTEM' , | |||
'EOF' , 'WRITE' , 'FLUSH' , 'FREEFILE' , 'FILEATTR' , 'FILEDATE' , 'FILETIME' , 'FILEDATETIME' , 'FILELEN' , 'SEEK' , | |||
'KILL' , 'DriveGetIdentity' , 'DriveWriteSector' , 'DriveReadSector' , 'LOC' , 'LOF' , 'PUT' , 'OPEN' , 'CLOSE', | |||
'GLCDCMD' , 'GLCDDATA' , 'SETFONT' , 'PSET' , 'SHOWPIC' , 'SHOWPICE' , 'CIRCLE' , 'BOX', | |||
'I2CINIT' , 'I2CRECEIVE' , 'I2CSEND' , 'I2CSTART','I2CSTOP','I2CRBYTE','I2CWBYTE', | |||
'ALIAS' , 'BITWAIT' , 'TOGGLE' , 'RESET' , 'SET' , 'SHIFTIN' , 'SHIFTOUT' , 'DEBOUNCE' , 'PULSEIN' , 'PULSEOUT', | |||
'IDLE' , 'POWERDOWN' , 'POWERSAVE' , 'ON', 'INTERRUPT' , 'ENABLE' , 'DISABLE' , 'START' , 'VERSION' , 'CLOCKDIVISION' , 'CRYSTAL' , 'STOP', | |||
'ADR' , 'ADR2' , 'WRITEEEPROM' , 'CPEEK' , 'CPEEKH' , 'PEEK' , 'POKE' , 'OUT' , 'READEEPROM' , 'DATA' , 'INP' , 'READ' , 'RESTORE' , 'LOOKDOWN' , 'LOOKUP' , 'LOOKUPSTR' , 'LOAD' , 'LOADADR' , 'LOADLABEL' , 'LOADWORDADR' , 'MEMCOPY', | |||
'RC5SEND' , 'RC6SEND' , 'GETRC5' , 'SONYSEND', | |||
'BAUD' , 'BAUD1', 'BUFSPACE' , 'CLEAR', 'ECHO' , 'WAITKEY' , 'ISCHARWAITING' , 'INKEY' , 'INPUTBIN' , 'INPUTHEX' , 'PRINT', 'PRINT1','PRINT0', 'PRINTBIN' , 'SERIN' , 'SEROUT' , 'SPC' , 'MAKEMODBUS', | |||
'SPIIN' , 'SPIINIT' , 'SPIMOVE' , 'SPIOUT', 'SINGLE', | |||
'ASC' , 'UCASE' , 'LCASE' , 'TRIM' , 'SPLIT' , 'LTRIM' , 'INSTR' , 'SPACE' , 'RTRIM' , 'LEFT' , 'LEN' , 'MID' , 'RIGHT' , 'VAL' , 'STR' , 'CHR' , 'CHECKSUM' , 'HEX' , 'HEXVAL', | |||
'BASE64DEC' , 'BASE64ENC' , 'IP2STR' , 'UDPREAD' , 'UDPWRITE' , 'UDPWRITESTR' , 'TCPWRITE' , 'TCPWRITESTR' , 'TCPREAD' , 'GETDSTIP' , 'GETDSTPORT' , 'SOCKETSTAT' , 'SOCKETCONNECT' , 'SOCKETLISTEN' , 'GETSOCKET' , 'CLOSESOCKET' , | |||
'SETTCP' , 'GETTCPREGS' , 'SETTCPREGS' , 'SETIPPROTOCOL' , 'TCPCHECKSUM', | |||
'HOME' , 'CURSOR' , 'UPPERLINE' , 'THIRDLINE' , 'INITLCD' , 'LOWERLINE' , 'LCDAT' , 'FOURTHLINE' , 'DISPLAY' , 'LCDCONTRAST' , 'LOCATE' , 'SHIFTCURSOR' , 'DEFLCDCHAR' , 'SHIFTLCD' , 'CLS', | |||
'ACOS' , 'ASIN' , 'ATN' , 'ATN2' , 'EXP' , 'RAD2DEG' , 'FRAC' , 'TAN' , 'TANH' , 'COS' , 'COSH' , 'LOG' , 'LOG10' , 'ROUND' , 'ABS' , 'INT' , 'MAX' , 'MIN' , 'SQR' , 'SGN' , 'POWER' , 'SIN' , 'SINH' , 'FIX' , 'INCR' , 'DECR' , 'DEG2RAD', | |||
'DBG' , 'DEBUG', 'DTMFOUT' , 'ENCODER' , 'GETADC' , 'GETKBD' , 'GETATKBD' , 'GETRC' , 'VALUE' , 'POPALL' , 'PS2MOUSEXY' , 'PUSHALL' , | |||
'RETURN' , 'RND' , 'ROTATE' , 'SENDSCAN' , 'SENDSCANKBD' , 'SHIFT' , 'SOUND' , 'STCHECK' , 'SWAP' , 'VARPTR' , 'X10DETECT' , 'X10SEND' , 'READMAGCARD' , 'REM' , 'BITS' , 'BYVAL' , 'CALL' , 'READHITAG', | |||
'Buffered', 'Size', 'Dummy', 'Parity', 'None', 'Stopbits', 'Databits', 'Clockpol', 'Synchrone', 'Prescaler', 'Reference', 'int0', 'int1', 'Interrupts', | |||
'Auto', 'avcc', 'ack', 'nack', 'Pin', 'Db4', 'Db3', 'Db2', 'Db1', 'Db7', 'Db6', 'Db5', 'Db0', 'e', 'rs', 'twi', | |||
), | |||
2 => array( | |||
// Red Lowercase Keywords | |||
'$ASM' , '$BAUD' , '$BAUD1' , '$BGF' , '$BOOT' , '$CRYSTAL' , '$DATA' , '$DBG' , '$DEFAULT' , '$EEPLEAVE' , '$EEPROM' , | |||
'$EEPROMHEX' , '$EXTERNAL' , '$HWSTACK' , '$INC' , '$INCLUDE' , '$INITMICRO' , '$LCD' , '$LCDRS' , '$LCDPUTCTRL' , | |||
'$LCDPUTDATA' , '$LCDVFO' , '$LIB' , '$LOADER' , '$LOADERSIZE' , '$MAP' , '$NOCOMPILE' , '$NOINIT' , '$NORAMCLEAR' , | |||
'$PROG' , '$PROGRAMMER' , '$REGFILE' , '$RESOURCE' , '$ROMSTART', '$SERIALINPUT', '$SERIALINPUT1' , '$SERIALINPUT2LCD' , | |||
'$SERIALOUTPUT' , '$SERIALOUTPUT1' , '$SIM' , '$SWSTACK' , '$TIMEOUT' , '$TINY' , '$WAITSTATE' , '$XRAMSIZE' , '$XRAMSTART', '$XA', | |||
'#IF' , '#ELSE' , '#ENDIF', '$framesize' | |||
), | |||
3 => array( | |||
// Blue Lowercase Keywords | |||
'IF', 'THEN', 'ELSE', 'END', 'WHILE', 'WEND', 'DO', 'LOOP', 'SELECT', 'CASE', 'FOR', 'NEXT', | |||
'GOSUB' , 'GOTO' , 'LOCAL' , 'SUB' , 'DEFBIT', 'DEFBYTE', 'DEFINT', 'DEFWORD', 'DEFLNG', 'DEFSNG', 'DEFDBL', | |||
'CONST', 'DECLARE', 'FUNCTION', 'DIM', 'EXIT', 'LONG', 'INTEGER', 'BYTE', 'AS', 'STRING', 'WORD' | |||
), | |||
4 => array( | |||
//light blue | |||
'PINA.0', 'PINA.1', 'PINA.2', 'PINA.3', 'PINA.4', 'PINA.5', 'PINA.6', 'PINA.7', | |||
'PINB.0', 'PINB.1', 'PINB.2', 'PINB.3', 'PINB.4', 'PINB.5', 'PINB.6', 'PINB.7', | |||
'PINC.0', 'PINC.1', 'PINC.2', 'PINC.3', 'PINC.4', 'PINC.5', 'PINC.6', 'PINC.7', | |||
'PIND.0', 'PIND.1', 'PIND.2', 'PIND.3', 'PIND.4', 'PIND.5', 'PIND.6', 'PIND.7', | |||
'PINE.0', 'PINE.1', 'PINE.2', 'PINE.3', 'PINE.4', 'PINE.5', 'PINE.6', 'PINE.7', | |||
'PINF.0', 'PINF.1', 'PINF.2', 'PINF.3', 'PINF.4', 'PINF.5', 'PINF.6', 'PINF.7', | |||
'PORTA.0', 'PORTA.1', 'PORTA.2', 'PORTA.3', 'PORTA.4', 'PORTA.5', 'PORTA.6', 'PORTA.7', | |||
'PORTB.0', 'PORTB.1', 'PORTB.2', 'PORTB.3', 'PORTB.4', 'PORTB.5', 'PORTB.6', 'PORTB.7', | |||
'PORTC.0', 'PORTC.1', 'PORTC.2', 'PORTC.3', 'PORTC.4', 'PORTC.5', 'PORTC.6', 'PORTC.7', | |||
'PORTD.0', 'PORTD.1', 'PORTD.2', 'PORTD.3', 'PORTD.4', 'PORTD.5', 'PORTD.6', 'PORTD.7', | |||
'PORTE.0', 'PORTE.1', 'PORTE.2', 'PORTE.3', 'PORTE.4', 'PORTE.5', 'PORTE.6', 'PORTE.7', | |||
'PORTF.0', 'PORTF.1', 'PORTF.2', 'PORTF.3', 'PORTF.4', 'PORTF.5', 'PORTF.6', 'PORTF.7', | |||
'DDRA.0', 'DDRA.1', 'DDRA.2', 'DDRA.3', 'DDRA.4', 'DDRA.5', 'DDRA.6', 'DDRA.7', | |||
'DDRB.0', 'DDRB.1', 'DDRB.2', 'DDRB.3', 'DDRB.4', 'DDRB.5', 'DDRB.6', 'DDRB.7', | |||
'DDRC.0', 'DDRC.1', 'DDRC.2', 'DDRC.3', 'DDRC.4', 'DDRC.5', 'DDRC.6', 'DDRC.7', | |||
'DDRD.0', 'DDRD.1', 'DDRD.2', 'DDRD.3', 'DDRD.4', 'DDRD.5', 'DDRD.6', 'DDRD.7', | |||
'DDRE.0', 'DDRE.1', 'DDRE.2', 'DDRE.3', 'DDRE.4', 'DDRE.5', 'DDRE.6', 'DDRE.7', | |||
'DDRF.0', 'DDRF.1', 'DDRF.2', 'DDRF.3', 'DDRF.4', 'DDRF.5', 'DDRF.6', 'DDRF.7', | |||
'DDRA','DDRB','DDRC','DDRD','DDRE','DDRF', | |||
'PORTA','PORTB','PORTC','PORTD','PORTE','PORTF', | |||
'PINA','PINB','PINC','PIND','PINE','PINF', | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'=', '<', '>', '>=', '<=', '+', '-', '*', '/', '%', '(', ')', '{', '}', '[', ']', ';', ':', '$', '&H' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
4 => false, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #000080; font-weight: bold;', | |||
2 => 'color: #FF0000;', | |||
3 => 'color: #0000FF;', | |||
4 => 'color: #0080FF;', | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #657CC4; font-style: italic;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #000080;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #008000;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #000080; font-weight: bold;' | |||
), | |||
'METHODS' => array( | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #0000FF;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
), | |||
'SCRIPT' => array( | |||
), | |||
'REGEXPS' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '', | |||
4 => '' | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 4 | |||
); | |||
?> |
@@ -0,0 +1,440 @@ | |||
<?php | |||
/************************************************************************************* | |||
* bash.php | |||
* -------- | |||
* Author: Andreas Gohr (andi@splitbrain.org) | |||
* Copyright: (c) 2004 Andreas Gohr, Nigel McNie (http://qbnz.com/highlighter) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2004/08/20 | |||
* | |||
* BASH language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2008/06/21 (1.0.8) | |||
* - Added loads of keywords and commands of GNU/Linux | |||
* - Added support for parameters starting with a dash | |||
* 2008/05/23 (1.0.7.22) | |||
* - Added description of extra language features (SF#1970248) | |||
* 2007/09/05 (1.0.7.21) | |||
* - PARSER_CONTROL patch using SF #1788408 (BenBE) | |||
* 2007/06/11 (1.0.7.20) | |||
* - Added a lot of keywords (BenBE / Jan G) | |||
* 2004/11/27 (1.0.2) | |||
* - Added support for multiple object splitters | |||
* 2004/10/27 (1.0.1) | |||
* - Added support for URLs | |||
* 2004/08/20 (1.0.0) | |||
* - First Release | |||
* | |||
* TODO (updated 2004/11/27) | |||
* ------------------------- | |||
* * Get symbols working | |||
* * Highlight builtin vars | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'Bash', | |||
// Bash DOES have single line comments with # markers. But bash also has | |||
// the $# variable, so comments need special handling (see sf.net | |||
// 1564839) | |||
'COMMENT_SINGLE' => array('#'), | |||
'COMMENT_MULTI' => array(), | |||
'COMMENT_REGEXP' => array( | |||
//Variables | |||
1 => "/\\$\\{[^\\n\\}]*?\\}/i", | |||
//BASH-style Heredoc | |||
2 => '/<<-?\s*?(\'?)([a-zA-Z0-9]+)\1\\n.*\\n\\2(?![a-zA-Z0-9])/siU', | |||
//Escaped String Starters | |||
3 => "/\\\\['\"]/siU", | |||
// Single-Line Shell usage: Hide the prompt at the beginning | |||
/* 4 => "/\A(?!#!)\s*(?>[\w:@\\/\\-\\._~]*[$#]\s?)?(?=[^\n]+\n?\Z)|^(?!#!)(\w+@)?[\w\\-\\.]+(:~?)[\w\\/\\-\\._]*?[$#]\s?/ms" */ | |||
4 => "/\A(?!#!)(?:(?>[\w:@\\/\\-\\._~]*)[$#]\s?)(?=(?>[^\n]+)\n?\Z)|^(?!#!)(?:\w+@)?(?>[\w\\-\\.]+)(?>:~?[\w\\/\\-\\._]*?)?[$#]\s?/sm" | |||
), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"'), | |||
'HARDQUOTE' => array("'", "'"), | |||
'HARDESCAPE' => array("\'"), | |||
'ESCAPE_CHAR' => '', | |||
'ESCAPE_REGEXP' => array( | |||
//Simple Single Char Escapes | |||
1 => "#\\\\[nfrtv\\$\\\"\n]#i", | |||
// $var | |||
2 => "#\\$[a-z_][a-z0-9_]*#i", | |||
// ${...} | |||
3 => "/\\$\\{[^\\n\\}]*?\\}/i", | |||
// $(...) | |||
4 => "/\\$\\([^\\n\\)]*?\\)/i", | |||
// `...` | |||
5 => "/`[^`]*`/" | |||
), | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'case', 'do', 'done', 'elif', 'else', 'esac', 'fi', 'for', 'function', | |||
'if', 'in', 'select', 'set', 'then', 'until', 'while', 'time' | |||
), | |||
2 => array( | |||
'aclocal', 'aconnect', 'apachectl', 'apache2ctl', 'aplay', 'apm', | |||
'apmsleep', 'apropos', 'apt-cache', 'apt-cdrom', 'apt-config', | |||
'apt-file', 'apt-ftparchive', 'apt-get', 'apt-key', 'apt-listbugs', | |||
'apt-listchanges', 'apt-mark', 'apt-mirror', 'apt-sortpkgs', | |||
'apt-src', 'apticron', 'aptitude', 'aptsh', 'apxs', 'apxs2', 'ar', | |||
'arch', 'arecord', 'as', 'as86', 'ash', 'autoconf', 'autoheader', | |||
'automake', 'awk', | |||
'apachectl start', 'apachectl stop', 'apachectl restart', | |||
'apachectl graceful', 'apachectl graceful-stop', | |||
'apachectl configtest', 'apachectl status', 'apachectl fullstatus', | |||
'apachectl help', 'apache2ctl start', 'apache2ctl stop', | |||
'apache2ctl restart', 'apache2ctl graceful', | |||
'apache2ctl graceful-stop', 'apache2ctl configtest', | |||
'apache2ctl status', 'apache2ctl fullstatus', 'apache2ctl help', | |||
'apt-cache add', 'apt-cache depends', 'apt-cache dotty', | |||
'apt-cache dump', 'apt-cache dumpavail', 'apt-cache gencaches', | |||
'apt-cache pkgnames', 'apt-cache policy', 'apt-cache rdepends', | |||
'apt-cache search', 'apt-cache show', 'apt-cache showauto', | |||
'apt-cache showpkg', 'apt-cache showsrc', 'apt-cache stats', | |||
'apt-cache unmet', 'apt-cache xvcg', 'apt-cdrom add', | |||
'apt-cdrom ident', 'apt-config dump', 'apt-config shell', | |||
'apt-file find', 'apt-file list', 'apt-file purge', | |||
'apt-file search', 'apt-file shot', 'apt-file update', | |||
'apt-get autoclean', 'apt-get autoremove', 'apt-get build-dep', | |||
'apt-get check', 'apt-get clean', 'apt-get dist-upgrade', | |||
'apt-get dselect-upgrade', 'apt-get install', 'apt-get markauto', | |||
'apt-get purge', 'apt-get remove', 'apt-get source', | |||
'apt-get unmarkauto', 'apt-get update', 'apt-get upgrade', | |||
'apt-key add', 'apt-key adv', 'apt-key del', 'apt-key export', | |||
'apt-key exportall', 'apt-key finger', 'apt-key list', | |||
'apt-key net-update', 'apt-key update', 'apt-listbugs apt', | |||
'apt-listbugs list', 'apt-listbugs rss', 'apt-src build', | |||
'apt-src clean', 'apt-src import', 'apt-src install', | |||
'apt-src list', 'apt-src location', 'apt-src name', | |||
'apt-src remove', 'apt-src update', 'apt-src upgrade', | |||
'apt-src version', | |||
'basename', 'bash', 'bc', 'bison', 'bunzip2', 'bzcat', | |||
'bzcmp', 'bzdiff', 'bzegrep', 'bzfgrep', 'bzgrep', | |||
'bzip2', 'bzip2recover', 'bzless', 'bzmore', | |||
'c++', 'cal', 'cat', 'chattr', 'cc', 'cdda2wav', 'cdparanoia', | |||
'cdrdao', 'cd-read', 'cdrecord', 'chfn', 'chgrp', 'chmod', | |||
'chown', 'chroot', 'chsh', 'chvt', 'clear', 'cmp', 'comm', 'co', | |||
'col', 'cp', 'cpio', 'cpp', 'csh', 'cut', 'cvs', 'cvs-pserver', | |||
'cvs add', 'cvs admin', 'cvs annotate', 'cvs checkout', | |||
'cvs commit', 'cvs diff', 'cvs edit', 'cvs editors', 'cvs export', | |||
'cvs history', 'cvs import', 'cvs init', 'cvs log', 'cvs login', | |||
'cvs logout', 'cvs ls', 'cvs pserver', 'cvs rannotate', | |||
'cvs rdiff', 'cvs release', 'cvs remove', 'cvs rlog', 'cvs rls', | |||
'cvs rtag', 'cvs server', 'cvs status', 'cvs tag', 'cvs unedit', | |||
'cvs update', 'cvs version', 'cvs watch', 'cvs watchers', | |||
'dash', 'date', 'dc', 'dch', 'dcop', 'dd', 'ddate', 'ddd', | |||
'deallocvt', 'debconf', 'defoma', 'depmod', 'df', 'dh', | |||
'dialog', 'diff', 'diff3', 'dig', 'dir', 'dircolors', 'directomatic', | |||
'dirname', 'dmesg', 'dnsdomainname', 'domainname', 'dpkg', | |||
'dselect', 'du', 'dumpkeys', | |||
'ed', 'egrep', 'env', 'expr', | |||
'false', 'fbset', 'ffmpeg', 'fgconsole','fgrep', 'file', 'find', | |||
'flex', 'flex++', 'fmt', 'free', 'ftp', 'funzip', 'fuser', | |||
'g++', 'gawk', 'gc','gcc', 'gdb', 'getent', 'getkeycodes', | |||
'getopt', 'gettext', 'gettextize', 'gimp', 'gimp-remote', | |||
'gimptool', 'gmake', 'gocr', 'grep', 'groups', 'gs', 'gunzip', | |||
'gzexe', 'gzip', | |||
'git', 'git add', 'git add--interactive', 'git am', 'git annotate', | |||
'git apply', 'git archive', 'git bisect', 'git bisect--helper', | |||
'git blame', 'git branch', 'git bundle', 'git cat-file', | |||
'git check-attr', 'git checkout', 'git checkout-index', | |||
'git check-ref-format', 'git cherry', 'git cherry-pick', | |||
'git clean', 'git clone', 'git commit', 'git commit-tree', | |||
'git config', 'git count-objects', 'git daemon', 'git describe', | |||
'git diff', 'git diff-files', 'git diff-index', 'git difftool', | |||
'git difftool--helper', 'git diff-tree', 'git fast-export', | |||
'git fast-import', 'git fetch', 'git fetch-pack', | |||
'git filter-branch', 'git fmt-merge-msg', 'git for-each-ref', | |||
'git format-patch', 'git fsck', 'git fsck-objects', 'git gc', | |||
'git get-tar-commit-id', 'git grep', 'git hash-object', 'git help', | |||
'git http-backend', 'git http-fetch', 'git http-push', | |||
'git imap-send', 'git index-pack', 'git init', 'git init-db', | |||
'git instaweb', 'git log', 'git lost-found', 'git ls-files', | |||
'git ls-remote', 'git ls-tree', 'git mailinfo', 'git mailsplit', | |||
'git merge', 'git merge-base', 'git merge-file', 'git merge-index', | |||
'git merge-octopus', 'git merge-one-file', 'git merge-ours', | |||
'git merge-recursive', 'git merge-resolve', 'git merge-subtree', | |||
'git mergetool', 'git merge-tree', 'git mktag', 'git mktree', | |||
'git mv', 'git name-rev', 'git notes', 'git pack-objects', | |||
'git pack-redundant', 'git pack-refs', 'git patch-id', | |||
'git peek-remote', 'git prune', 'git prune-packed', 'git pull', | |||
'git push', 'git quiltimport', 'git read-tree', 'git rebase', | |||
'git rebase--interactive', 'git receive-pack', 'git reflog', | |||
'git relink', 'git remote', 'git remote-ftp', 'git remote-ftps', | |||
'git remote-http', 'git remote-https', 'git remote-testgit', | |||
'git repack', 'git replace', 'git repo-config', 'git request-pull', | |||
'git rerere', 'git reset', 'git revert', 'git rev-list', | |||
'git rev-parse', 'git rm', 'git send-pack', 'git shell', | |||
'git shortlog', 'git show', 'git show-branch', 'git show-index', | |||
'git show-ref', 'git stage', 'git stash', 'git status', | |||
'git stripspace', 'git submodule', 'git symbolic-ref', 'git tag', | |||
'git tar-tree', 'git unpack-file', 'git unpack-objects', | |||
'git update-index', 'git update-ref', 'git update-server-info', | |||
'git upload-archive', 'git upload-pack', 'git var', | |||
'git verify-pack', 'git verify-tag', 'git web--browse', | |||
'git whatchanged', 'git write-tree', | |||
'gitaction', 'git-add', 'git-add--interactive', 'git-am', | |||
'git-annotate', 'git-apply', 'git-archive', 'git-bisect', | |||
'git-bisect--helper', 'git-blame', 'git-branch', 'git-bundle', | |||
'git-cat-file', 'git-check-attr', 'git-checkout', | |||
'git-checkout-index', 'git-check-ref-format', 'git-cherry', | |||
'git-cherry-pick', 'git-clean', 'git-clone', 'git-commit', | |||
'git-commit-tree', 'git-config', 'git-count-objects', 'git-daemon', | |||
'git-describe', 'git-diff', 'git-diff-files', 'git-diff-index', | |||
'git-difftool', 'git-difftool--helper', 'git-diff-tree', | |||
'gitdpkgname', 'git-fast-export', 'git-fast-import', 'git-fetch', | |||
'git-fetch-pack', 'git-fetch--tool', 'git-filter-branch', 'gitfm', | |||
'git-fmt-merge-msg', 'git-for-each-ref', 'git-format-patch', | |||
'git-fsck', 'git-fsck-objects', 'git-gc', 'git-get-tar-commit-id', | |||
'git-grep', 'git-hash-object', 'git-help', 'git-http-fetch', | |||
'git-http-push', 'git-imap-send', 'git-index-pack', 'git-init', | |||
'git-init-db', 'git-instaweb', 'gitkeys', 'git-log', | |||
'git-lost-found', 'git-ls-files', 'git-ls-remote', 'git-ls-tree', | |||
'git-mailinfo', 'git-mailsplit', 'git-merge', 'git-merge-base', | |||
'git-merge-file', 'git-merge-index', 'git-merge-octopus', | |||
'git-merge-one-file', 'git-merge-ours', 'git-merge-recursive', | |||
'git-merge-resolve', 'git-merge-subtree', 'git-mergetool', | |||
'git-mergetool--lib', 'git-merge-tree', 'gitmkdirs', 'git-mktag', | |||
'git-mktree', 'gitmount', 'git-mv', 'git-name-rev', | |||
'git-pack-objects', 'git-pack-redundant', 'git-pack-refs', | |||
'git-parse-remote', 'git-patch-id', 'git-peek-remote', 'git-prune', | |||
'git-prune-packed', 'gitps', 'git-pull', 'git-push', | |||
'git-quiltimport', 'git-read-tree', 'git-rebase', | |||
'git-rebase--interactive', 'git-receive-pack', 'git-reflog', | |||
'gitregrep', 'git-relink', 'git-remote', 'git-repack', | |||
'git-repo-config', 'git-request-pull', 'git-rerere', 'git-reset', | |||
'git-revert', 'git-rev-list', 'git-rev-parse', 'gitrfgrep', | |||
'gitrgrep', 'git-rm', 'git-send-pack', 'git-shell', 'git-shortlog', | |||
'git-show', 'git-show-branch', 'git-show-index', 'git-show-ref', | |||
'git-sh-setup', 'git-stage', 'git-stash', 'git-status', | |||
'git-stripspace', 'git-submodule', 'git-svn', 'git-symbolic-ref', | |||
'git-tag', 'git-tar-tree', 'gitunpack', 'git-unpack-file', | |||
'git-unpack-objects', 'git-update-index', 'git-update-ref', | |||
'git-update-server-info', 'git-upload-archive', 'git-upload-pack', | |||
'git-var', 'git-verify-pack', 'git-verify-tag', 'gitview', | |||
'git-web--browse', 'git-whatchanged', 'gitwhich', 'gitwipe', | |||
'git-write-tree', 'gitxgrep', | |||
'head', 'hexdump', 'hostname', | |||
'id', 'ifconfig', 'ifdown', 'ifup', 'igawk', 'install', | |||
'ip', 'ip addr', 'ip addrlabel', 'ip link', 'ip maddr', 'ip mroute', | |||
'ip neigh', 'ip route', 'ip rule', 'ip tunnel', 'ip xfrm', | |||
'join', | |||
'kbd_mode','kbdrate', 'kdialog', 'kfile', 'kill', 'killall', | |||
'lame', 'last', 'lastb', 'ld', 'ld86', 'ldd', 'less', 'lex', 'link', | |||
'ln', 'loadkeys', 'loadunimap', 'locate', 'lockfile', 'login', | |||
'logname', 'lp', 'lpr', 'ls', 'lsattr', 'lsmod', 'lsmod.old', | |||
'lspci', 'ltrace', 'lynx', | |||
'm4', 'make', 'man', 'mapscrn', 'mesg', 'mkdir', 'mkfifo', | |||
'mknod', 'mktemp', 'more', 'mount', 'mplayer', 'msgfmt', 'mv', | |||
'namei', 'nano', 'nasm', 'nawk', 'netstat', 'nice', | |||
'nisdomainname', 'nl', 'nm', 'nm86', 'nmap', 'nohup', 'nop', | |||
'od', 'openvt', | |||
'passwd', 'patch', 'pcregrep', 'pcretest', 'perl', 'perror', | |||
'pgawk', 'pidof', 'ping', 'pr', 'procmail', 'prune', 'ps', 'pstree', | |||
'ps2ascii', 'ps2epsi', 'ps2frag', 'ps2pdf', 'ps2ps', 'psbook', | |||
'psmerge', 'psnup', 'psresize', 'psselect', 'pstops', | |||
'rbash', 'rcs', 'rcs2log', 'read', 'readlink', 'red', 'resizecons', | |||
'rev', 'rm', 'rmdir', 'rsh', 'run-parts', | |||
'sash', 'scp', 'screen', 'sed', 'seq', 'sendmail', 'setfont', | |||
'setkeycodes', 'setleds', 'setmetamode', 'setserial', 'setterm', | |||
'sh', 'showkey', 'shred', 'size', 'size86', 'skill', 'sleep', | |||
'slogin', 'snice', 'sort', 'sox', 'split', 'ssed', 'ssh', 'ssh-add', | |||
'ssh-agent', 'ssh-keygen', 'ssh-keyscan', 'stat', 'strace', | |||
'strings', 'strip', 'stty', 'su', 'sudo', 'suidperl', 'sum', 'svn', | |||
'svnadmin', 'svndumpfilter', 'svnlook', 'svnmerge', 'svnmucc', | |||
'svnserve', 'svnshell', 'svnsync', 'svnversion', 'svnwrap', 'sync', | |||
'svn add', 'svn ann', 'svn annotate', 'svn blame', 'svn cat', | |||
'svn changelist', 'svn checkout', 'svn ci', 'svn cl', 'svn cleanup', | |||
'svn co', 'svn commit', 'svn copy', 'svn cp', 'svn del', | |||
'svn delete', 'svn di', 'svn diff', 'svn export', 'svn h', | |||
'svn help', 'svn import', 'svn info', 'svn list', 'svn lock', | |||
'svn log', 'svn ls', 'svn merge', 'svn mergeinfo', 'svn mkdir', | |||
'svn move', 'svn mv', 'svn pd', 'svn pdel', 'svn pe', 'svn pedit', | |||
'svn pg', 'svn pget', 'svn pl', 'svn plist', 'svn praise', | |||
'svn propdel', 'svn propedit', 'svn propget', 'svn proplist', | |||
'svn propset', 'svn ps', 'svn pset', 'svn remove', 'svn ren', | |||
'svn rename', 'svn resolve', 'svn resolved', 'svn revert', 'svn rm', | |||
'svn st', 'svn stat', 'svn status', 'svn sw', 'svn switch', | |||
'svn unlock', 'svn up', 'svn update', | |||
'tac', 'tail', 'tar', 'tee', 'tempfile', 'touch', 'tr', 'tree', | |||
'true', | |||
'umount', 'uname', 'unicode_start', 'unicode_stop', 'uniq', | |||
'unlink', 'unzip', 'updatedb', 'updmap', 'uptime', 'users', | |||
'utmpdump', 'uuidgen', | |||
'valgrind', 'vdir', 'vi', 'vim', 'vmstat', | |||
'w', 'wall', 'watch', 'wc', 'wget', 'whatis', 'whereis', | |||
'which', 'whiptail', 'who', 'whoami', 'whois', 'wine', 'wineboot', | |||
'winebuild', 'winecfg', 'wineconsole', 'winedbg', 'winedump', | |||
'winefile', 'wodim', 'write', | |||
'xargs', 'xhost', 'xmodmap', 'xset', | |||
'yacc', 'yes', 'ypdomainname', 'yum', | |||
'yum check-update', 'yum clean', 'yum deplist', 'yum erase', | |||
'yum groupinfo', 'yum groupinstall', 'yum grouplist', | |||
'yum groupremove', 'yum groupupdate', 'yum info', 'yum install', | |||
'yum list', 'yum localinstall', 'yum localupdate', 'yum makecache', | |||
'yum provides', 'yum remove', 'yum resolvedep', 'yum search', | |||
'yum shell', 'yum update', 'yum upgrade', 'yum whatprovides', | |||
'zcat', 'zcmp', 'zdiff', 'zdump', 'zegrep', 'zfgrep', 'zforce', | |||
'zgrep', 'zip', 'zipgrep', 'zipinfo', 'zless', 'zmore', 'znew', | |||
'zsh', 'zsoelim' | |||
), | |||
3 => array( | |||
'alias', 'bg', 'bind', 'break', 'builtin', 'cd', 'command', | |||
'compgen', 'complete', 'continue', 'declare', 'dirs', 'disown', | |||
'echo', 'enable', 'eval', 'exec', 'exit', 'export', 'fc', | |||
'fg', 'getopts', 'hash', 'help', 'history', 'jobs', 'let', | |||
'local', 'logout', 'popd', 'printf', 'pushd', 'pwd', 'readonly', | |||
'return', 'shift', 'shopt', 'source', 'suspend', 'test', 'times', | |||
'trap', 'type', 'typeset', 'ulimit', 'umask', 'unalias', 'unset', | |||
'wait' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'(', ')', '[', ']', '!', '@', '%', '&', '*', '|', '/', '<', '>', ';;', '`' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => true, | |||
2 => true, | |||
3 => true | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #000000; font-weight: bold;', | |||
2 => 'color: #c20cb9; font-weight: bold;', | |||
3 => 'color: #7a0874; font-weight: bold;' | |||
), | |||
'COMMENTS' => array( | |||
0 => 'color: #666666; font-style: italic;', | |||
1 => 'color: #800000;', | |||
2 => 'color: #cc0000; font-style: italic;', | |||
3 => 'color: #000000; font-weight: bold;', | |||
4 => 'color: #666666;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
1 => 'color: #000099; font-weight: bold;', | |||
2 => 'color: #007800;', | |||
3 => 'color: #007800;', | |||
4 => 'color: #007800;', | |||
5 => 'color: #780078;', | |||
'HARD' => 'color: #000099; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #7a0874; font-weight: bold;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #ff0000;', | |||
'HARD' => 'color: #ff0000;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #000000;' | |||
), | |||
'METHODS' => array( | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #000000; font-weight: bold;' | |||
), | |||
'REGEXPS' => array( | |||
0 => 'color: #007800;', | |||
1 => 'color: #007800;', | |||
2 => 'color: #007800;', | |||
4 => 'color: #007800;', | |||
5 => 'color: #660033;' | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '' | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
'REGEXPS' => array( | |||
//Variables (will be handled by comment_regexps) | |||
0 => "\\$\\{[a-zA-Z_][a-zA-Z0-9_]*?\\}", | |||
//Variables without braces | |||
1 => "\\$[a-zA-Z_][a-zA-Z0-9_]*", | |||
//Variable assignment | |||
2 => "(?<![\.a-zA-Z_\-])([a-zA-Z_][a-zA-Z0-9_]*?)(?==)", | |||
//Shorthand shell variables | |||
4 => "\\$[*#\$\\-\\?!\d]", | |||
//Parameters of commands | |||
5 => "(?<=\s)--?[0-9a-zA-Z\-]+(?=[\s=]|<(?:SEMI|PIPE)>|$)" | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 4, | |||
'PARSER_CONTROL' => array( | |||
'COMMENTS' => array( | |||
'DISALLOWED_BEFORE' => '$' | |||
), | |||
'KEYWORDS' => array( | |||
'DISALLOWED_BEFORE' => "(?<![\.\-a-zA-Z0-9_\$\#:])", | |||
'DISALLOWED_AFTER' => "(?![\.\-a-zA-Z0-9_%=\\/:])", | |||
2 => array( | |||
'SPACE_AS_WHITESPACE' => false | |||
) | |||
) | |||
) | |||
); | |||
?> |
@@ -0,0 +1,341 @@ | |||
<?php | |||
/************************************************************************************* | |||
* basic4gl.php | |||
* --------------------------------- | |||
* Author: Matthew Webb (bmatthew1@blueyonder.co.uk) | |||
* Copyright: (c) 2004 Matthew Webb (http://matthew-4gl.wikispaces.com) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2007/09/15 | |||
* | |||
* Basic4GL language file for GeSHi. | |||
* | |||
* You can find the Basic4GL Website at (http://www.basic4gl.net/) | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2007/09/17 (1.0.0) | |||
* - First Release | |||
* | |||
* TODO (updated 2007/09/17) | |||
* ------------------------- | |||
* Make sure all the OpenGL and Basic4GL commands have been added and are complete. | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'Basic4GL', | |||
'COMMENT_SINGLE' => array(1 => "'"), | |||
'COMMENT_MULTI' => array(), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"'), | |||
'ESCAPE_CHAR' => '', | |||
'KEYWORDS' => array( | |||
1 => array( | |||
// Navy Blue Bold Keywords | |||
'true','rnd_max','m_pi','m_e','false','VK_ZOOM','VK_UP','VK_TAB','VK_SUBTRACT','VK_SPACE','VK_SNAPSHOT', | |||
'VK_SHIFT','VK_SEPARATOR','VK_SELECT','VK_SCROLL','VK_RWIN','VK_RSHIFT','VK_RMENU','VK_RIGHT','VK_RETURN', | |||
'VK_RCONTROL','VK_RBUTTON','VK_PROCESSKEY','VK_PRIOR','VK_PRINT','VK_PLAY','VK_PAUSE','VK_NUMPAD9','VK_NUMPAD8', | |||
'VK_NUMPAD7','VK_NUMPAD6','VK_NUMPAD5','VK_NUMPAD4','VK_NUMPAD3','VK_NUMPAD2','VK_NUMPAD1','VK_NUMPAD0', | |||
'VK_NUMLOCK','VK_NONCONVERT','VK_NEXT','VK_MULTIPLY','VK_MODECHANGE','VK_MENU','VK_MBUTTON','VK_LWIN', | |||
'VK_LSHIFT','VK_LMENU','VK_LEFT','VK_LCONTROL','VK_LBUTTON','VK_KANJI','VK_KANA','VK_JUNJA','VK_INSERT', | |||
'VK_HOME','VK_HELP','VK_HANJA','VK_HANGUL','VK_HANGEUL','VK_FINAL','VK_F9','VK_F8','VK_F7','VK_F6','VK_F5', | |||
'VK_F4','VK_F3','VK_F24','VK_F23','VK_F22','VK_F21','VK_F20','VK_F2','VK_F19','VK_F18','VK_F17','VK_F16', | |||
'VK_F15','VK_F14','VK_F13','VK_F12','VK_F11','VK_F10','VK_F1','VK_EXSEL','VK_EXECUTE','VK_ESCAPE','VK_EREOF', | |||
'VK_END','VK_DOWN','VK_DIVIDE','VK_DELETE','VK_DECIMAL','VK_CRSEL','VK_CONVERT','VK_CONTROL','VK_CLEAR', | |||
'VK_CAPITAL','VK_CANCEL','VK_BACK','VK_ATTN','VK_APPS','VK_ADD','VK_ACCEPT','TEXT_SIMPLE','TEXT_OVERLAID', | |||
'TEXT_BUFFERED','SPR_TILEMAP','SPR_SPRITE','SPR_INVALID','MOUSE_RBUTTON','MOUSE_MBUTTON','MOUSE_LBUTTON', | |||
'GL_ZOOM_Y','GL_ZOOM_X','GL_ZERO','GL_XOR','GL_WIN_swap_hint','GL_WIN_draw_range_elements','GL_VIEWPORT_BIT', | |||
'GL_VIEWPORT','GL_VERTEX_ARRAY_TYPE_EXT','GL_VERTEX_ARRAY_TYPE','GL_VERTEX_ARRAY_STRIDE_EXT','GL_VERTEX_ARRAY_STRIDE', | |||
'GL_VERTEX_ARRAY_SIZE_EXT','GL_VERTEX_ARRAY_SIZE','GL_VERTEX_ARRAY_POINTER_EXT','GL_VERTEX_ARRAY_POINTER', | |||
'GL_VERTEX_ARRAY_EXT','GL_VERTEX_ARRAY_COUNT_EXT','GL_VERTEX_ARRAY','GL_VERSION_1_1','GL_VERSION','GL_VENDOR', | |||
'GL_V3F','GL_V2F','GL_UNSIGNED_SHORT','GL_UNSIGNED_INT','GL_UNSIGNED_BYTE','GL_UNPACK_SWAP_BYTES','GL_UNPACK_SKIP_ROWS', | |||
'GL_UNPACK_SKIP_PIXELS','GL_UNPACK_ROW_LENGTH','GL_UNPACK_LSB_FIRST','GL_UNPACK_ALIGNMENT','GL_TRUE','GL_TRIANGLE_STRIP', | |||
'GL_TRIANGLE_FAN','GL_TRIANGLES','GL_TRANSFORM_BIT','GL_TEXTURE_WRAP_T','GL_TEXTURE_WRAP_S','GL_TEXTURE_WIDTH', | |||
'GL_TEXTURE_STACK_DEPTH','GL_TEXTURE_RESIDENT','GL_TEXTURE_RED_SIZE','GL_TEXTURE_PRIORITY','GL_TEXTURE_MIN_FILTER', | |||
'GL_TEXTURE_MATRIX','GL_TEXTURE_MAG_FILTER','GL_TEXTURE_LUMINANCE_SIZE','GL_TEXTURE_INTERNAL_FORMAT','GL_TEXTURE_INTENSITY_SIZE', | |||
'GL_TEXTURE_HEIGHT','GL_TEXTURE_GREEN_SIZE','GL_TEXTURE_GEN_T','GL_TEXTURE_GEN_S','GL_TEXTURE_GEN_R','GL_TEXTURE_GEN_Q', | |||
'GL_TEXTURE_GEN_MODE','GL_TEXTURE_ENV_MODE','GL_TEXTURE_ENV_COLOR','GL_TEXTURE_ENV','GL_TEXTURE_COORD_ARRAY_TYPE_EXT', | |||
'GL_TEXTURE_COORD_ARRAY_TYPE','GL_TEXTURE_COORD_ARRAY_STRIDE_EXT','GL_TEXTURE_COORD_ARRAY_STRIDE','GL_TEXTURE_COORD_ARRAY_SIZE_EXT', | |||
'GL_TEXTURE_COORD_ARRAY_SIZE','GL_TEXTURE_COORD_ARRAY_POINTER_EXT','GL_TEXTURE_COORD_ARRAY_POINTER','GL_TEXTURE_COORD_ARRAY_EXT', | |||
'GL_TEXTURE_COORD_ARRAY_COUNT_EXT','GL_TEXTURE_COORD_ARRAY','GL_TEXTURE_COMPONENTS','GL_TEXTURE_BORDER_COLOR','GL_TEXTURE_BORDER', | |||
'GL_TEXTURE_BLUE_SIZE','GL_TEXTURE_BIT','GL_TEXTURE_BINDING_2D','GL_TEXTURE_BINDING_1D','GL_TEXTURE_ALPHA_SIZE', | |||
'GL_TEXTURE_2D','GL_TEXTURE_1D','GL_TEXTURE9_ARB','GL_TEXTURE9','GL_TEXTURE8_ARB','GL_TEXTURE8','GL_TEXTURE7_ARB', | |||
'GL_TEXTURE7','GL_TEXTURE6_ARB','GL_TEXTURE6','GL_TEXTURE5_ARB','GL_TEXTURE5','GL_TEXTURE4_ARB','GL_TEXTURE4', | |||
'GL_TEXTURE3_ARB','GL_TEXTURE31_ARB','GL_TEXTURE31','GL_TEXTURE30_ARB','GL_TEXTURE30','GL_TEXTURE3','GL_TEXTURE2_ARB', | |||
'GL_TEXTURE29_ARB','GL_TEXTURE29','GL_TEXTURE28_ARB','GL_TEXTURE28','GL_TEXTURE27_ARB','GL_TEXTURE27','GL_TEXTURE26_ARB', | |||
'GL_TEXTURE26','GL_TEXTURE25_ARB','GL_TEXTURE25','GL_TEXTURE24_ARB','GL_TEXTURE24','GL_TEXTURE23_ARB','GL_TEXTURE23', | |||
'GL_TEXTURE22_ARB','GL_TEXTURE22','GL_TEXTURE21_ARB','GL_TEXTURE21','GL_TEXTURE20_ARB','GL_TEXTURE20','GL_TEXTURE2', | |||
'GL_TEXTURE1_ARB','GL_TEXTURE19_ARB','GL_TEXTURE19','GL_TEXTURE18_ARB','GL_TEXTURE18','GL_TEXTURE17_ARB', | |||
'GL_TEXTURE17','GL_TEXTURE16_ARB','GL_TEXTURE16','GL_TEXTURE15_ARB','GL_TEXTURE15','GL_TEXTURE14_ARB','GL_TEXTURE14', | |||
'GL_TEXTURE13_ARB','GL_TEXTURE13','GL_TEXTURE12_ARB','GL_TEXTURE12','GL_TEXTURE11_ARB','GL_TEXTURE11','GL_TEXTURE10_ARB', | |||
'GL_TEXTURE10','GL_TEXTURE1','GL_TEXTURE0_ARB','GL_TEXTURE0','GL_TEXTURE','GL_T4F_V4F','GL_T4F_C4F_N3F_V4F','GL_T2F_V3F', | |||
'GL_T2F_N3F_V3F','GL_T2F_C4UB_V3F','GL_T2F_C4F_N3F_V3F','GL_T2F_C3F_V3F','GL_T','GL_SUBPIXEL_BITS','GL_STEREO', | |||
'GL_STENCIL_WRITEMASK','GL_STENCIL_VALUE_MASK','GL_STENCIL_TEST','GL_STENCIL_REF','GL_STENCIL_PASS_DEPTH_PASS', | |||
'GL_STENCIL_PASS_DEPTH_FAIL','GL_STENCIL_INDEX','GL_STENCIL_FUNC','GL_STENCIL_FAIL','GL_STENCIL_CLEAR_VALUE', | |||
'GL_STENCIL_BUFFER_BIT','GL_STENCIL_BITS','GL_STENCIL','GL_STACK_UNDERFLOW','GL_STACK_OVERFLOW','GL_SRC_COLOR', | |||
'GL_SRC_ALPHA_SATURATE','GL_SRC_ALPHA','GL_SPOT_EXPONENT','GL_SPOT_DIRECTION','GL_SPOT_CUTOFF','GL_SPHERE_MAP', | |||
'GL_SPECULAR','GL_SOURCE2_RGB_EXT','GL_SOURCE2_RGB','GL_SOURCE2_ALPHA_EXT','GL_SOURCE2_ALPHA','GL_SOURCE1_RGB_EXT', | |||
'GL_SOURCE1_RGB','GL_SOURCE1_ALPHA_EXT','GL_SOURCE1_ALPHA','GL_SOURCE0_RGB_EXT','GL_SOURCE0_RGB','GL_SOURCE0_ALPHA_EXT', | |||
'GL_SOURCE0_ALPHA','GL_SMOOTH','GL_SHORT','GL_SHININESS','GL_SHADE_MODEL','GL_SET','GL_SELECTION_BUFFER_SIZE', | |||
'GL_SELECTION_BUFFER_POINTER','GL_SELECT','GL_SCISSOR_TEST','GL_SCISSOR_BOX','GL_SCISSOR_BIT','GL_S','GL_RIGHT', | |||
'GL_RGB_SCALE_EXT','GL_RGB_SCALE','GL_RGBA_MODE','GL_RGBA8','GL_RGBA4','GL_RGBA2','GL_RGBA16','GL_RGBA12','GL_RGBA', | |||
'GL_RGB8','GL_RGB5_A1','GL_RGB5','GL_RGB4','GL_RGB16','GL_RGB12','GL_RGB10_A2','GL_RGB10','GL_RGB','GL_RETURN', | |||
'GL_REPLACE','GL_REPEAT','GL_RENDER_MODE','GL_RENDERER','GL_RENDER','GL_RED_SCALE','GL_RED_BITS','GL_RED_BIAS', | |||
'GL_RED','GL_READ_BUFFER','GL_R3_G3_B2','GL_R','GL_QUAD_STRIP','GL_QUADS','GL_QUADRATIC_ATTENUATION','GL_Q', | |||
'GL_PROXY_TEXTURE_2D','GL_PROXY_TEXTURE_1D','GL_PROJECTION_STACK_DEPTH','GL_PROJECTION_MATRIX','GL_PROJECTION', | |||
'GL_PRIMARY_COLOR_EXT','GL_PRIMARY_COLOR','GL_PREVIOUS_EXT','GL_PREVIOUS','GL_POSITION','GL_POLYGON_TOKEN', | |||
'GL_POLYGON_STIPPLE_BIT','GL_POLYGON_STIPPLE','GL_POLYGON_SMOOTH_HINT','GL_POLYGON_SMOOTH','GL_POLYGON_OFFSET_UNITS', | |||
'GL_POLYGON_OFFSET_POINT','GL_POLYGON_OFFSET_LINE','GL_POLYGON_OFFSET_FILL','GL_POLYGON_OFFSET_FACTOR','GL_POLYGON_MODE', | |||
'GL_POLYGON_BIT','GL_POLYGON','GL_POINT_TOKEN','GL_POINT_SMOOTH_HINT','GL_POINT_SMOOTH','GL_POINT_SIZE_RANGE', | |||
'GL_POINT_SIZE_GRANULARITY','GL_POINT_SIZE','GL_POINT_BIT','GL_POINTS','GL_POINT','GL_PIXEL_MODE_BIT', | |||
'GL_PIXEL_MAP_S_TO_S_SIZE','GL_PIXEL_MAP_S_TO_S','GL_PIXEL_MAP_R_TO_R_SIZE','GL_PIXEL_MAP_R_TO_R','GL_PIXEL_MAP_I_TO_R_SIZE', | |||
'GL_PIXEL_MAP_I_TO_R','GL_PIXEL_MAP_I_TO_I_SIZE','GL_PIXEL_MAP_I_TO_I','GL_PIXEL_MAP_I_TO_G_SIZE','GL_PIXEL_MAP_I_TO_G', | |||
'GL_PIXEL_MAP_I_TO_B_SIZE','GL_PIXEL_MAP_I_TO_B','GL_PIXEL_MAP_I_TO_A_SIZE','GL_PIXEL_MAP_I_TO_A','GL_PIXEL_MAP_G_TO_G_SIZE', | |||
'GL_PIXEL_MAP_G_TO_G','GL_PIXEL_MAP_B_TO_B_SIZE','GL_PIXEL_MAP_B_TO_B','GL_PIXEL_MAP_A_TO_A_SIZE','GL_PIXEL_MAP_A_TO_A', | |||
'GL_PHONG_WIN','GL_PHONG_HINT_WIN','GL_PERSPECTIVE_CORRECTION_HINT','GL_PASS_THROUGH_TOKEN','GL_PACK_SWAP_BYTES', | |||
'GL_PACK_SKIP_ROWS','GL_PACK_SKIP_PIXELS','GL_PACK_ROW_LENGTH','GL_PACK_LSB_FIRST','GL_PACK_ALIGNMENT','GL_OUT_OF_MEMORY', | |||
'GL_OR_REVERSE','GL_OR_INVERTED','GL_ORDER','GL_OR','GL_OPERAND2_RGB_EXT','GL_OPERAND2_RGB','GL_OPERAND2_ALPHA_EXT', | |||
'GL_OPERAND2_ALPHA','GL_OPERAND1_RGB_EXT','GL_OPERAND1_RGB','GL_OPERAND1_ALPHA_EXT','GL_OPERAND1_ALPHA','GL_OPERAND0_RGB_EXT', | |||
'GL_OPERAND0_RGB','GL_OPERAND0_ALPHA_EXT','GL_OPERAND0_ALPHA','GL_ONE_MINUS_SRC_COLOR','GL_ONE_MINUS_SRC_ALPHA', | |||
'GL_ONE_MINUS_DST_COLOR','GL_ONE_MINUS_DST_ALPHA','GL_ONE','GL_OBJECT_PLANE','GL_OBJECT_LINEAR','GL_NO_ERROR', | |||
'GL_NOTEQUAL','GL_NORMAL_ARRAY_TYPE_EXT','GL_NORMAL_ARRAY_TYPE','GL_NORMAL_ARRAY_STRIDE_EXT','GL_NORMAL_ARRAY_STRIDE', | |||
'GL_NORMAL_ARRAY_POINTER_EXT','GL_NORMAL_ARRAY_POINTER','GL_NORMAL_ARRAY_EXT','GL_NORMAL_ARRAY_COUNT_EXT', | |||
'GL_NORMAL_ARRAY','GL_NORMALIZE','GL_NOR','GL_NOOP','GL_NONE','GL_NICEST','GL_NEVER','GL_NEAREST_MIPMAP_NEAREST','GL_NEAREST_MIPMAP_LINEAR', | |||
'GL_NEAREST','GL_NAND','GL_NAME_STACK_DEPTH','GL_N3F_V3F','GL_MULT','GL_MODULATE','GL_MODELVIEW_STACK_DEPTH','GL_MODELVIEW_MATRIX', | |||
'GL_MODELVIEW','GL_MAX_VIEWPORT_DIMS','GL_MAX_TEXTURE_UNITS_ARB','GL_MAX_TEXTURE_UNITS','GL_MAX_TEXTURE_STACK_DEPTH', | |||
'GL_MAX_TEXTURE_SIZE','GL_MAX_PROJECTION_STACK_DEPTH','GL_MAX_PIXEL_MAP_TABLE','GL_MAX_NAME_STACK_DEPTH','GL_MAX_MODELVIEW_STACK_DEPTH', | |||
'GL_MAX_LIST_NESTING','GL_MAX_LIGHTS','GL_MAX_EVAL_ORDER','GL_MAX_ELEMENTS_VERTICES_WIN','GL_MAX_ELEMENTS_INDICES_WIN', | |||
'GL_MAX_CLIP_PLANES','GL_MAX_CLIENT_ATTRIB_STACK_DEPTH','GL_MAX_ATTRIB_STACK_DEPTH','GL_MATRIX_MODE','GL_MAP_STENCIL', | |||
'GL_MAP_COLOR','GL_MAP2_VERTEX_4','GL_MAP2_VERTEX_3','GL_MAP2_TEXTURE_COORD_4','GL_MAP2_TEXTURE_COORD_3','GL_MAP2_TEXTURE_COORD_2', | |||
'GL_MAP2_TEXTURE_COORD_1','GL_MAP2_NORMAL','GL_MAP2_INDEX','GL_MAP2_GRID_SEGMENTS','GL_MAP2_GRID_DOMAIN','GL_MAP2_COLOR_4', | |||
'GL_MAP1_VERTEX_4','GL_MAP1_VERTEX_3','GL_MAP1_TEXTURE_COORD_4','GL_MAP1_TEXTURE_COORD_3','GL_MAP1_TEXTURE_COORD_2', | |||
'GL_MAP1_TEXTURE_COORD_1','GL_MAP1_NORMAL','GL_MAP1_INDEX','GL_MAP1_GRID_SEGMENTS','GL_MAP1_GRID_DOMAIN', | |||
'GL_MAP1_COLOR_4','GL_LUMINANCE_ALPHA','GL_LUMINANCE8_ALPHA8','GL_LUMINANCE8','GL_LUMINANCE6_ALPHA2','GL_LUMINANCE4_ALPHA4', | |||
'GL_LUMINANCE4','GL_LUMINANCE16_ALPHA16','GL_LUMINANCE16','GL_LUMINANCE12_ALPHA4','GL_LUMINANCE12_ALPHA12','GL_LUMINANCE12', | |||
'GL_LUMINANCE','GL_LOGIC_OP_MODE','GL_LOGIC_OP','GL_LOAD','GL_LIST_MODE','GL_LIST_INDEX','GL_LIST_BIT', | |||
'GL_LIST_BASE','GL_LINE_WIDTH_RANGE','GL_LINE_WIDTH_GRANULARITY','GL_LINE_WIDTH','GL_LINE_TOKEN','GL_LINE_STRIP','GL_LINE_STIPPLE_REPEAT', | |||
'GL_LINE_STIPPLE_PATTERN','GL_LINE_STIPPLE','GL_LINE_SMOOTH_HINT','GL_LINE_SMOOTH','GL_LINE_RESET_TOKEN','GL_LINE_LOOP', | |||
'GL_LINE_BIT','GL_LINES','GL_LINEAR_MIPMAP_NEAREST','GL_LINEAR_MIPMAP_LINEAR','GL_LINEAR_ATTENUATION','GL_LINEAR', | |||
'GL_LINE','GL_LIGHT_MODEL_TWO_SIDE','GL_LIGHT_MODEL_LOCAL_VIEWER','GL_LIGHT_MODEL_AMBIENT','GL_LIGHTING_BIT', | |||
'GL_LIGHTING','GL_LIGHT7','GL_LIGHT6','GL_LIGHT5','GL_LIGHT4','GL_LIGHT3','GL_LIGHT2','GL_LIGHT1','GL_LIGHT0', | |||
'GL_LESS','GL_LEQUAL','GL_LEFT','GL_KEEP','GL_INVERT','GL_INVALID_VALUE','GL_INVALID_OPERATION','GL_INVALID_ENUM','GL_INTERPOLATE_EXT', | |||
'GL_INTERPOLATE','GL_INTENSITY8','GL_INTENSITY4','GL_INTENSITY16','GL_INTENSITY12','GL_INTENSITY','GL_INT', | |||
'GL_INDEX_WRITEMASK','GL_INDEX_SHIFT','GL_INDEX_OFFSET','GL_INDEX_MODE','GL_INDEX_LOGIC_OP','GL_INDEX_CLEAR_VALUE','GL_INDEX_BITS', | |||
'GL_INDEX_ARRAY_TYPE_EXT','GL_INDEX_ARRAY_TYPE','GL_INDEX_ARRAY_STRIDE_EXT','GL_INDEX_ARRAY_STRIDE','GL_INDEX_ARRAY_POINTER_EXT', | |||
'GL_INDEX_ARRAY_POINTER','GL_INDEX_ARRAY_EXT','GL_INDEX_ARRAY_COUNT_EXT','GL_INDEX_ARRAY','GL_INCR','GL_HINT_BIT', | |||
'GL_GREEN_SCALE','GL_GREEN_BITS','GL_GREEN_BIAS','GL_GREEN','GL_GREATER','GL_GEQUAL','GL_FRONT_RIGHT','GL_FRONT_LEFT', | |||
'GL_FRONT_FACE','GL_FRONT_AND_BACK','GL_FRONT','GL_FOG_START','GL_FOG_SPECULAR_TEXTURE_WIN','GL_FOG_MODE','GL_FOG_INDEX', | |||
'GL_FOG_HINT','GL_FOG_END','GL_FOG_DENSITY','GL_FOG_COLOR','GL_FOG_BIT','GL_FOG','GL_FLOAT','GL_FLAT','GL_FILL', | |||
'GL_FEEDBACK_BUFFER_TYPE','GL_FEEDBACK_BUFFER_SIZE','GL_FEEDBACK_BUFFER_POINTER','GL_FEEDBACK','GL_FASTEST','GL_FALSE', | |||
'GL_EYE_PLANE','GL_EYE_LINEAR','GL_EXT_vertex_array','GL_EXT_paletted_texture','GL_EXT_bgra','GL_EXTENSIONS','GL_EXP2', | |||
'GL_EXP','GL_EVAL_BIT','GL_EQUIV','GL_EQUAL','GL_ENABLE_BIT','GL_EMISSION','GL_EDGE_FLAG_ARRAY_STRIDE_EXT','GL_EDGE_FLAG_ARRAY_STRIDE', | |||
'GL_EDGE_FLAG_ARRAY_POINTER_EXT','GL_EDGE_FLAG_ARRAY_POINTER','GL_EDGE_FLAG_ARRAY_EXT','GL_EDGE_FLAG_ARRAY_COUNT_EXT','GL_EDGE_FLAG_ARRAY', | |||
'GL_EDGE_FLAG','GL_DST_COLOR','GL_DST_ALPHA','GL_DRAW_PIXEL_TOKEN','GL_DRAW_BUFFER','GL_DOUBLE_EXT','GL_DOUBLEBUFFER', | |||
'GL_DOUBLE','GL_DONT_CARE','GL_DOMAIN','GL_DITHER','GL_DIFFUSE','GL_DEPTH_WRITEMASK','GL_DEPTH_TEST','GL_DEPTH_SCALE', | |||
'GL_DEPTH_RANGE','GL_DEPTH_FUNC','GL_DEPTH_COMPONENT','GL_DEPTH_CLEAR_VALUE','GL_DEPTH_BUFFER_BIT','GL_DEPTH_BITS', | |||
'GL_DEPTH_BIAS','GL_DEPTH','GL_DECR','GL_DECAL','GL_CW','GL_CURRENT_TEXTURE_COORDS','GL_CURRENT_RASTER_TEXTURE_COORDS','GL_CURRENT_RASTER_POSITION_VALID', | |||
'GL_CURRENT_RASTER_POSITION','GL_CURRENT_RASTER_INDEX','GL_CURRENT_RASTER_DISTANCE','GL_CURRENT_RASTER_COLOR','GL_CURRENT_NORMAL', | |||
'GL_CURRENT_INDEX','GL_CURRENT_COLOR','GL_CURRENT_BIT','GL_CULL_FACE_MODE','GL_CULL_FACE','GL_COPY_PIXEL_TOKEN', | |||
'GL_COPY_INVERTED','GL_COPY','GL_CONSTANT_EXT','GL_CONSTANT_ATTENUATION','GL_CONSTANT','GL_COMPILE_AND_EXECUTE','GL_COMPILE','GL_COMBINE_RGB_EXT', | |||
'GL_COMBINE_RGB','GL_COMBINE_EXT','GL_COMBINE_ALPHA_EXT','GL_COMBINE_ALPHA','GL_COMBINE','GL_COLOR_WRITEMASK', | |||
'GL_COLOR_TABLE_WIDTH_EXT','GL_COLOR_TABLE_RED_SIZE_EXT','GL_COLOR_TABLE_LUMINANCE_SIZE_EXT','GL_COLOR_TABLE_INTENSITY_SIZE_EXT', | |||
'GL_COLOR_TABLE_GREEN_SIZE_EXT','GL_COLOR_TABLE_FORMAT_EXT','GL_COLOR_TABLE_BLUE_SIZE_EXT','GL_COLOR_TABLE_ALPHA_SIZE_EXT', | |||
'GL_COLOR_MATERIAL_PARAMETER','GL_COLOR_MATERIAL_FACE','GL_COLOR_MATERIAL','GL_COLOR_LOGIC_OP','GL_COLOR_INDEXES', | |||
'GL_COLOR_INDEX8_EXT','GL_COLOR_INDEX4_EXT','GL_COLOR_INDEX2_EXT','GL_COLOR_INDEX1_EXT','GL_COLOR_INDEX16_EXT', | |||
'GL_COLOR_INDEX12_EXT','GL_COLOR_INDEX','GL_COLOR_CLEAR_VALUE','GL_COLOR_BUFFER_BIT','GL_COLOR_ARRAY_TYPE_EXT', | |||
'GL_COLOR_ARRAY_TYPE','GL_COLOR_ARRAY_STRIDE_EXT','GL_COLOR_ARRAY_STRIDE','GL_COLOR_ARRAY_SIZE_EXT','GL_COLOR_ARRAY_SIZE', | |||
'GL_COLOR_ARRAY_POINTER_EXT','GL_COLOR_ARRAY_POINTER','GL_COLOR_ARRAY_EXT','GL_COLOR_ARRAY_COUNT_EXT','GL_COLOR_ARRAY', | |||
'GL_COLOR','GL_COEFF','GL_CLIP_PLANE5','GL_CLIP_PLANE4','GL_CLIP_PLANE3','GL_CLIP_PLANE2','GL_CLIP_PLANE1','GL_CLIP_PLANE0', | |||
'GL_CLIENT_VERTEX_ARRAY_BIT','GL_CLIENT_PIXEL_STORE_BIT','GL_CLIENT_ATTRIB_STACK_DEPTH','GL_CLIENT_ALL_ATTRIB_BITS', | |||
'GL_CLIENT_ACTIVE_TEXTURE_ARB','GL_CLIENT_ACTIVE_TEXTURE','GL_CLEAR','GL_CLAMP','GL_CCW','GL_C4UB_V3F','GL_C4UB_V2F', | |||
'GL_C4F_N3F_V3F','GL_C3F_V3F','GL_BYTE','GL_BLUE_SCALE','GL_BLUE_BITS','GL_BLUE_BIAS','GL_BLUE','GL_BLEND_SRC','GL_BLEND_DST', | |||
'GL_BLEND','GL_BITMAP_TOKEN','GL_BITMAP','GL_BGR_EXT','GL_BGRA_EXT','GL_BACK_RIGHT','GL_BACK_LEFT','GL_BACK', | |||
'GL_AUX_BUFFERS','GL_AUX3','GL_AUX2','GL_AUX1','GL_AUX0','GL_AUTO_NORMAL','GL_ATTRIB_STACK_DEPTH','GL_AND_REVERSE', | |||
'GL_AND_INVERTED','GL_AND','GL_AMBIENT_AND_DIFFUSE','GL_AMBIENT','GL_ALWAYS','GL_ALPHA_TEST_REF','GL_ALPHA_TEST_FUNC', | |||
'GL_ALPHA_TEST','GL_ALPHA_SCALE','GL_ALPHA_BITS','GL_ALPHA_BIAS','GL_ALPHA8','GL_ALPHA4','GL_ALPHA16','GL_ALPHA12', | |||
'GL_ALPHA','GL_ALL_ATTRIB_BITS','GL_ADD_SIGNED_EXT','GL_ADD_SIGNED','GL_ADD','GL_ACTIVE_TEXTURE_ARB','GL_ACTIVE_TEXTURE', | |||
'GL_ACCUM_RED_BITS','GL_ACCUM_GREEN_BITS','GL_ACCUM_CLEAR_VALUE','GL_ACCUM_BUFFER_BIT','GL_ACCUM_BLUE_BITS','GL_ACCUM_ALPHA_BITS', | |||
'GL_ACCUM','GL_4_BYTES','GL_4D_COLOR_TEXTURE','GL_3_BYTES','GL_3D_COLOR_TEXTURE','GL_3D_COLOR','GL_3D','GL_2_BYTES', | |||
'GL_2D','GLU_V_STEP','GLU_VERTEX','GLU_VERSION_1_2','GLU_VERSION_1_1','GLU_VERSION','GLU_U_STEP','GLU_UNKNOWN','GLU_TRUE', | |||
'GLU_TESS_WINDING_RULE','GLU_TESS_WINDING_POSITIVE','GLU_TESS_WINDING_ODD','GLU_TESS_WINDING_NONZERO','GLU_TESS_WINDING_NEGATIVE', | |||
'GLU_TESS_WINDING_ABS_GEQ_TWO','GLU_TESS_VERTEX_DATA','GLU_TESS_VERTEX','GLU_TESS_TOLERANCE','GLU_TESS_NEED_COMBINE_CALLBACK','GLU_TESS_MISSING_END_POLYGON', | |||
'GLU_TESS_MISSING_END_CONTOUR','GLU_TESS_MISSING_BEGIN_POLYGON','GLU_TESS_MISSING_BEGIN_CONTOUR','GLU_TESS_ERROR_DATA', | |||
'GLU_TESS_ERROR8','GLU_TESS_ERROR7','GLU_TESS_ERROR6','GLU_TESS_ERROR5','GLU_TESS_ERROR4','GLU_TESS_ERROR3','GLU_TESS_ERROR2', | |||
'GLU_TESS_ERROR1','GLU_TESS_ERROR','GLU_TESS_END_DATA','GLU_TESS_END','GLU_TESS_EDGE_FLAG_DATA','GLU_TESS_EDGE_FLAG', | |||
'GLU_TESS_COORD_TOO_LARGE','GLU_TESS_COMBINE_DATA','GLU_TESS_COMBINE','GLU_TESS_BOUNDARY_ONLY','GLU_TESS_BEGIN_DATA', | |||
'GLU_TESS_BEGIN','GLU_SMOOTH','GLU_SILHOUETTE','GLU_SAMPLING_TOLERANCE','GLU_SAMPLING_METHOD','GLU_POINT','GLU_PATH_LENGTH', | |||
'GLU_PARAMETRIC_TOLERANCE','GLU_PARAMETRIC_ERROR','GLU_OUT_OF_MEMORY','GLU_OUTSIDE','GLU_OUTLINE_POLYGON','GLU_OUTLINE_PATCH', | |||
'GLU_NURBS_ERROR9','GLU_NURBS_ERROR8','GLU_NURBS_ERROR7','GLU_NURBS_ERROR6','GLU_NURBS_ERROR5','GLU_NURBS_ERROR4', | |||
'GLU_NURBS_ERROR37','GLU_NURBS_ERROR36','GLU_NURBS_ERROR35','GLU_NURBS_ERROR34','GLU_NURBS_ERROR33','GLU_NURBS_ERROR32', | |||
'GLU_NURBS_ERROR31','GLU_NURBS_ERROR30','GLU_NURBS_ERROR3','GLU_NURBS_ERROR29','GLU_NURBS_ERROR28','GLU_NURBS_ERROR27','GLU_NURBS_ERROR26', | |||
'GLU_NURBS_ERROR25','GLU_NURBS_ERROR24','GLU_NURBS_ERROR23','GLU_NURBS_ERROR22','GLU_NURBS_ERROR21','GLU_NURBS_ERROR20', | |||
'GLU_NURBS_ERROR2','GLU_NURBS_ERROR19','GLU_NURBS_ERROR18','GLU_NURBS_ERROR17','GLU_NURBS_ERROR16','GLU_NURBS_ERROR15','GLU_NURBS_ERROR14', | |||
'GLU_NURBS_ERROR13','GLU_NURBS_ERROR12','GLU_NURBS_ERROR11','GLU_NURBS_ERROR10','GLU_NURBS_ERROR1','GLU_NONE', | |||
'GLU_MAP1_TRIM_3','GLU_MAP1_TRIM_2','GLU_LINE','GLU_INVALID_VALUE','GLU_INVALID_ENUM','GLU_INTERIOR','GLU_INSIDE','GLU_INCOMPATIBLE_GL_VERSION', | |||
'GLU_FLAT','GLU_FILL','GLU_FALSE','GLU_EXTERIOR','GLU_EXTENSIONS','GLU_ERROR','GLU_END','GLU_EDGE_FLAG','GLU_DOMAIN_DISTANCE', | |||
'GLU_DISPLAY_MODE','GLU_CW','GLU_CULLING','GLU_CCW','GLU_BEGIN','GLU_AUTO_LOAD_MATRIX','CHANNEL_UNORDERED','CHANNEL_ORDERED', | |||
'CHANNEL_MAX' | |||
), | |||
2 => array( | |||
// Red Lowercase Keywords | |||
'WriteWord','WriteString','WriteReal','WriteLine','WriteInt','WriteFloat','WriteDouble','WriteChar','WriteByte', | |||
'windowwidth','windowheight','waittimer','Vec4','Vec3','Vec2','val','UpdateJoystick','ucase$','Transpose','tickcount', | |||
'textscroll','textrows','textmode','textcols','tanh','tand','tan','synctimercatchup','synctimer','swapbuffers', | |||
'str$','stopsoundvoice','stopsounds','stopmusic','sqrt','sqr','sprzorder','spryvel','sprytiles','sprysize','spryrepeat', | |||
'spryflip','sprycentre','spry','sprxvel','sprxtiles','sprxsize','sprxrepeat','sprxflip','sprxcentre','sprx', | |||
'sprvisible','sprvel','sprtype','sprtop','sprspin','sprsolid','sprsetzorder','sprsetyvel','sprsetysize','sprsetyrepeat', | |||
'sprsetyflip','sprsetycentre','sprsety','sprsetxvel','sprsetxsize','sprsetxrepeat','sprsetxflip','sprsetxcentre', | |||
'sprsetx','sprsetvisible','sprsetvel','sprsettiles','sprsettextures','sprsettexture','sprsetspin','sprsetsolid', | |||
'sprsetsize','sprsetscale','sprsetpos','sprsetparallax','sprsetframe','sprsetcolor','sprsetanimspeed','sprsetanimloop', | |||
'sprsetangle','sprsetalpha','sprscale','sprright','sprpos','sprparallax','sprleft','spriteareawidth','spriteareaheight', | |||
'sprframe','sprcolor','sprcameraz','sprcameray','sprcamerax','sprcamerasetz','sprcamerasety','sprcamerasetx', | |||
'sprcamerasetpos','sprcamerasetfov','sprcamerasetangle','sprcamerapos','sprcamerafov','sprcameraangle', | |||
'sprbottom','spranimspeed','spranimloop','spranimdone','sprangle','spralpha','spraddtextures','spraddtexture', | |||
'sounderror','sleep','sind','sin','showcursor','sgn','settextscroll','setmusicvolume','SendMessage','Seek', | |||
'scankeydown','RTInvert','rnd','right$','resizetext','resizespritearea','RejectConnection','ReceiveMessage','ReadWord', | |||
'ReadText','ReadReal','ReadLine','ReadInt','ReadFloat','ReadDouble','ReadChar','ReadByte','randomize','printr', | |||
'print','pow','playsound','playmusic','performancecounter','Orthonormalize','OpenFileWrite','OpenFileRead','Normalize', | |||
'newtilemap','newsprite','NewServer','NewConnection','musicplaying','mouse_yd','mouse_y','mouse_xd','mouse_x', | |||
'mouse_wheel','mouse_button','mid$','MessageSmoothed','MessageReliable','MessagePending','MessageChannel','maxtextureunits', | |||
'MatrixZero','MatrixTranslate','MatrixScale','MatrixRotateZ','MatrixRotateY','MatrixRotateX','MatrixRotate','MatrixIdentity', | |||
'MatrixCrossProduct','MatrixBasis','log','locate','loadtexture','loadsound','loadmipmaptexture','loadmipmapimagestrip', | |||
'loadimagestrip','loadimage','Length','len','left$','lcase$','keydown','Joy_Y','Joy_X','Joy_Up','Joy_Right','Joy_Left', | |||
'Joy_Keys','Joy_Down','Joy_Button','Joy_3','Joy_2','Joy_1','Joy_0','int','inscankey','input$','inkey$','inittimer', | |||
'imagewidth','imagestripframes','imageheight','imageformat','imagedatatype','hidecursor','glViewport','glVertex4sv', | |||
'glVertex4s','glVertex4iv','glVertex4i','glVertex4fv','glVertex4f','glVertex4dv','glVertex4d','glVertex3sv','glVertex3s', | |||
'glVertex3iv','glVertex3i','glVertex3fv','glVertex3f','glVertex3dv','glVertex3d','glVertex2sv','glVertex2s','glVertex2iv', | |||
'glVertex2i','glVertex2fv','glVertex2f','glVertex2dv','glVertex2d','gluPerspective','gluOrtho2D','gluLookAt', | |||
'glubuild2dmipmaps','glTranslatef','glTranslated','gltexsubimage2d','glTexParameteriv','glTexParameteri', | |||
'glTexParameterfv','glTexParameterf','glteximage2d','glTexGeniv','glTexGeni','glTexGenfv','glTexGenf','glTexGendv', | |||
'glTexGend','glTexEnviv','glTexEnvi','glTexEnvfv','glTexEnvf','glTexCoord4sv','glTexCoord4s','glTexCoord4iv','glTexCoord4i', | |||
'glTexCoord4fv','glTexCoord4f','glTexCoord4dv','glTexCoord4d','glTexCoord3sv','glTexCoord3s','glTexCoord3iv','glTexCoord3i', | |||
'glTexCoord3fv','glTexCoord3f','glTexCoord3dv','glTexCoord3d','glTexCoord2sv','glTexCoord2s','glTexCoord2iv','glTexCoord2i', | |||
'glTexCoord2fv','glTexCoord2f','glTexCoord2dv','glTexCoord2d','glTexCoord1sv','glTexCoord1s','glTexCoord1iv','glTexCoord1i','glTexCoord1fv', | |||
'glTexCoord1f','glTexCoord1dv','glTexCoord1d','glStencilOp','glStencilMask','glStencilFunc','glShadeModel','glSelectBuffer', | |||
'glScissor','glScalef','glScaled','glRotatef','glRotated','glRenderMode','glRectsv','glRects','glRectiv','glRecti', | |||
'glRectfv','glRectf','glRectdv','glRectd','glReadBuffer','glRasterPos4sv','glRasterPos4s','glRasterPos4iv', | |||
'glRasterPos4i','glRasterPos4fv','glRasterPos4f','glRasterPos4dv','glRasterPos4d','glRasterPos3sv','glRasterPos3s', | |||
'glRasterPos3iv','glRasterPos3i','glRasterPos3fv','glRasterPos3f','glRasterPos3dv','glRasterPos3d','glRasterPos2sv', | |||
'glRasterPos2s','glRasterPos2iv','glRasterPos2i','glRasterPos2fv','glRasterPos2f','glRasterPos2dv','glRasterPos2d', | |||
'glPushName','glPushMatrix','glPushClientAttrib','glPushAttrib','glPrioritizeTextures','glPopName','glPopMatrix', | |||
'glPopClientAttrib','glPopAttrib','glpolygonstipple','glPolygonOffset','glPolygonMode','glPointSize','glPixelZoom', | |||
'glPixelTransferi','glPixelTransferf','glPixelStorei','glPixelStoref','glPassThrough','glOrtho','glNormal3sv','glNormal3s', | |||
'glNormal3iv','glNormal3i','glNormal3fv','glNormal3f','glNormal3dv','glNormal3d','glNormal3bv','glNormal3b','glNewList', | |||
'glMultMatrixf','glMultMatrixd','glmultitexcoord2f','glmultitexcoord2d','glMatrixMode','glMaterialiv','glMateriali', | |||
'glMaterialfv','glMaterialf','glMapGrid2f','glMapGrid2d','glMapGrid1f','glMapGrid1d','glLogicOp','glLoadName','glLoadMatrixf', | |||
'glLoadMatrixd','glLoadIdentity','glListBase','glLineWidth','glLineStipple','glLightModeliv','glLightModeli','glLightModelfv', | |||
'glLightModelf','glLightiv','glLighti','glLightfv','glLightf','glIsTexture','glIsList','glIsEnabled','glInitNames', | |||
'glIndexubv','glIndexub','glIndexsv','glIndexs','glIndexMask','glIndexiv','glIndexi','glIndexfv','glIndexf','glIndexdv', | |||
'glIndexd','glHint','glGetTexParameteriv','glGetTexParameterfv','glGetTexLevelParameteriv','glGetTexLevelParameterfv', | |||
'glGetTexGeniv','glGetTexGenfv','glGetTexGendv','glGetTexEnviv','glGetTexEnvfv','glgetstring','glgetpolygonstipple','glGetPixelMapuiv', | |||
'glGetMaterialiv','glGetMaterialfv','glGetLightiv','glGetLightfv','glGetIntegerv','glGetFloatv', | |||
'glGetError','glGetDoublev','glGetClipPlane','glGetBooleanv','glgentextures','glgentexture', | |||
'glgenlists','glFrustum','glFrontFace','glFogiv','glFogi','glFogfv','glFogf','glFlush','glFinish','glFeedbackBuffer', | |||
'glEvalPoint2','glEvalPoint1','glEvalMesh2','glEvalMesh1','glEvalCoord2fv','glEvalCoord2f','glEvalCoord2dv','glEvalCoord2d', | |||
'glEvalCoord1fv','glEvalCoord1f','glEvalCoord1dv','glEvalCoord1d','glEndList','glEnd','glEnableClientState','glEnable', | |||
'glEdgeFlagv','glEdgeFlag','glDrawBuffer','glDrawArrays','glDisableClientState','glDisable','glDepthRange','glDepthMask', | |||
'glDepthFunc','gldeletetextures','gldeletetexture','gldeletelists','glCullFace','glCopyTexSubImage2D','glCopyTexSubImage1D', | |||
'glCopyTexImage2D','glCopyTexImage1D','glColorMaterial','glColorMask','glColor4usv','glColor4us','glColor4uiv','glColor4ui', | |||
'glColor4ubv','glColor4ub','glColor4sv','glColor4s','glColor4iv','glColor4i','glColor4fv','glColor4f','glColor4dv', | |||
'glColor4d','glColor4bv','glColor4b','glColor3usv','glColor3us','glColor3uiv','glColor3ui','glColor3ubv','glColor3ub', | |||
'glColor3sv','glColor3s','glColor3iv','glColor3i','glColor3fv','glColor3f','glColor3dv','glColor3d','glColor3bv', | |||
'glColor3b','glClipPlane','glClearStencil','glClearIndex','glClearDepth','glClearColor','glClearAccum','glClear', | |||
'glcalllists','glCallList','glBlendFunc','glBindTexture','glBegin','glArrayElement','glAreTexturesResident', | |||
'glAlphaFunc','glactivetexture','glAccum','font','FindNextFile','FindFirstFile','FindClose','FileError', | |||
'extensionsupported','exp','execute','EndOfFile','drawtext','divbyzero','Determinant','deletesprite','deletesound', | |||
'DeleteServer','deleteimage','DeleteConnection','defaultfont','CrossProduct','cosd','cos','copysprite','ConnectionPending', | |||
'ConnectionHandShaking','ConnectionConnected','ConnectionAddress','compilererrorline','compilererrorcol','compilererror', | |||
'compilefile','compile','color','cls','CloseFile','clearregion','clearline','clearkeys','chr$','charat$','bindsprite', | |||
'beep','atnd','atn2d','atn2','atn','atand','asc','argcount','arg','animatesprites','AcceptConnection','abs' | |||
), | |||
3 => array( | |||
// Blue Lowercase Keywords | |||
'xor','while','wend','until','type','traditional_print','traditional','to','then','struc','string','step','single', | |||
'run','return','reset','read','or','null','not','next','lor','loop','language','land','integer','input','if', | |||
'goto','gosub','for','endstruc','endif','end','elseif','else','double','do','dim','data','const','basic4gl','as', | |||
'and','alloc' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'=', '<', '>', '>=', '<=', '+', '-', '*', '/', '%', '(', ')', '{', '}', '[', ']', '&', ';', ':', '$' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #000080; font-weight: bold;', | |||
2 => 'color: #FF0000;', | |||
3 => 'color: #0000FF;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #657CC4; font-style: italic;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #000080;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #008000;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #000080; font-weight: bold;' | |||
), | |||
'METHODS' => array( | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #0000FF;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
), | |||
'SCRIPT' => array( | |||
), | |||
'REGEXPS' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '' | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 4 | |||
); | |||
?> |
@@ -0,0 +1,114 @@ | |||
<?php | |||
/************************************************************************************* | |||
* bf.php | |||
* ---------- | |||
* Author: Benny Baumann (BenBE@geshi.org) | |||
* Copyright: (c) 2008 Benny Baumann (http://qbnz.com/highlighter/) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2009/10/31 | |||
* | |||
* Brainfuck language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2008/10/31 (1.0.8.1) | |||
* - First Release | |||
* | |||
* TODO | |||
* ---- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'Brainfuck', | |||
'COMMENT_SINGLE' => array(), | |||
'COMMENT_MULTI' => array(), | |||
'COMMENT_REGEXP' => array(1 => '/[^\n+\-<>\[\]\.\,Y]+/s'), | |||
'CASE_KEYWORDS' => GESHI_CAPS_UPPER, | |||
'QUOTEMARKS' => array(), | |||
'ESCAPE_CHAR' => '', | |||
'KEYWORDS' => array( | |||
), | |||
'SYMBOLS' => array( | |||
0 => array('+', '-'), | |||
1 => array('[', ']'), | |||
2 => array('<', '>'), | |||
3 => array('.', ','), | |||
4 => array('Y') //Brainfork Extension ;-) | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #666666; font-style: italic;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #66cc66;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #ff0000;' | |||
), | |||
'NUMBERS' => array( | |||
), | |||
'METHODS' => array( | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #006600;', | |||
1 => 'color: #660000;', | |||
2 => 'color: #000066;', | |||
3 => 'color: #660066;', | |||
4 => 'color: #666600;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
), | |||
'SCRIPT' => array( | |||
), | |||
'REGEXPS' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 4, | |||
'PARSER_CONTROL' => array( | |||
'ENABLE_FLAGS' => array( | |||
'STRINGS' => GESHI_NEVER, | |||
'NUMBERS' => GESHI_NEVER | |||
), | |||
'KEYWORDS' => array( | |||
'DISALLOW_BEFORE' => '', | |||
'DISALLOW_AFTER' => '' | |||
) | |||
) | |||
); | |||
?> |
@@ -0,0 +1,183 @@ | |||
<?php | |||
/******************************************************************************** | |||
* bibtex.php | |||
* ----- | |||
* Author: Quinn Taylor (quinntaylor@mac.com) | |||
* Copyright: (c) 2009 Quinn Taylor (quinntaylor@mac.com), Nigel McNie (http://qbnz.com/highlighter) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2009/04/29 | |||
* | |||
* BibTeX language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2009/04/29 (1.0.8.4) | |||
* - First Release | |||
* | |||
* TODO | |||
* ------------------------- | |||
* - Add regex for matching and replacing URLs with corresponding hyperlinks | |||
* - Add regex for matching more LaTeX commands that may be embedded in BibTeX | |||
* (Someone who understands regex better than I should borrow from latex.php) | |||
******************************************************************************** | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
* | |||
*******************************************************************************/ | |||
// http://en.wikipedia.org/wiki/BibTeX | |||
// http://www.fb10.uni-bremen.de/anglistik/langpro/bibliographies/jacobsen-bibtex.html | |||
$language_data = array ( | |||
'LANG_NAME' => 'BibTeX', | |||
'OOLANG' => false, | |||
'COMMENT_SINGLE' => array( | |||
1 => '%%' | |||
), | |||
'COMMENT_MULTI' => array(), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array(), | |||
'ESCAPE_CHAR' => '', | |||
'KEYWORDS' => array( | |||
0 => array( | |||
'@comment','@preamble','@string' | |||
), | |||
// Standard entry types | |||
1 => array( | |||
'@article','@book','@booklet','@conference','@inbook', | |||
'@incollection','@inproceedings','@manual','@mastersthesis', | |||
'@misc','@phdthesis','@proceedings','@techreport','@unpublished' | |||
), | |||
// Custom entry types | |||
2 => array( | |||
'@collection','@patent','@webpage' | |||
), | |||
// Standard entry field names | |||
3 => array( | |||
'address','annote','author','booktitle','chapter','crossref', | |||
'edition','editor','howpublished','institution','journal','key', | |||
'month','note','number','organization','pages','publisher','school', | |||
'series','title','type','volume','year' | |||
), | |||
// Custom entry field names | |||
4 => array( | |||
'abstract','affiliation','chaptername','cited-by','cites', | |||
'contents','copyright','date-added','date-modified','doi','eprint', | |||
'isbn','issn','keywords','language','lccn','lib-congress', | |||
'location','price','rating','read','size','source','url' | |||
) | |||
), | |||
'URLS' => array( | |||
0 => '', | |||
1 => '', | |||
2 => '', | |||
3 => '', | |||
4 => '' | |||
), | |||
'SYMBOLS' => array( | |||
'{', '}', '#', '=', ',' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
4 => false, | |||
GESHI_COMMENTS => false, | |||
), | |||
// Define the colors for the groups listed above | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #C02020;', // Standard entry types | |||
2 => 'color: #C02020;', // Custom entry types | |||
3 => 'color: #C08020;', // Standard entry field names | |||
4 => 'color: #C08020;' // Custom entry field names | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #2C922C; font-style: italic;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #2020C0;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #E02020;' | |||
), | |||
'REGEXPS' => array( | |||
1 => 'color: #2020C0;', // {...} | |||
2 => 'color: #C08020;', // BibDesk fields | |||
3 => 'color: #800000;' // LaTeX commands | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000000; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #E02020;' | |||
), | |||
'NUMBERS' => array( | |||
), | |||
'METHODS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'REGEXPS' => array( | |||
// {parameters} | |||
1 => array( | |||
GESHI_SEARCH => "(?<=\\{)(?:\\{(?R)\\}|[^\\{\\}])*(?=\\})", | |||
GESHI_REPLACE => '\0', | |||
GESHI_MODIFIERS => 's', | |||
GESHI_BEFORE => '', | |||
GESHI_AFTER => '' | |||
), | |||
2 => array( | |||
GESHI_SEARCH => "\bBdsk-(File|Url)-\d+", | |||
GESHI_REPLACE => '\0', | |||
GESHI_MODIFIERS => 'Us', | |||
GESHI_BEFORE => '', | |||
GESHI_AFTER => '' | |||
), | |||
3 => array( | |||
GESHI_SEARCH => "\\\\[A-Za-z0-9]*+", | |||
GESHI_REPLACE => '\0', | |||
GESHI_MODIFIERS => 'Us', | |||
GESHI_BEFORE => '', | |||
GESHI_AFTER => '' | |||
), | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'PARSER_CONTROL' => array( | |||
'ENABLE_FLAGS' => array( | |||
'NUMBERS' => GESHI_NEVER | |||
), | |||
'KEYWORDS' => array( | |||
3 => array( | |||
'DISALLOWED_AFTER' => '(?=\s*=)' | |||
), | |||
4 => array( | |||
'DISALLOWED_AFTER' => '(?=\s*=)' | |||
), | |||
) | |||
) | |||
); | |||
?> |
@@ -0,0 +1,185 @@ | |||
<?php | |||
/************************************************************************************* | |||
* blitzbasic.php | |||
* -------------- | |||
* Author: P๏ฟฝdraig O`Connel (info@moonsword.info) | |||
* Copyright: (c) 2005 P๏ฟฝdraig O`Connel (http://moonsword.info) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 16.10.2005 | |||
* | |||
* BlitzBasic language file for GeSHi. | |||
* | |||
* It is a simple Basic dialect. Released for Games and Network Connections. | |||
* In this Language File are all functions included (2D BB and 3D BB) | |||
* | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2005/12/28 (1.0.1) | |||
* - Remove unnecessary style index for regexps | |||
* 2005/10/22 (1.0.0) | |||
* - First Release | |||
* | |||
* TODO (updated 2005/10/22) | |||
* ------------------------- | |||
* * Sort out the Basic commands for splitting up. | |||
* * To set up the right colors. | |||
* (the colors are ok, but not the correct ones) | |||
* * Split to BlitzBasic 2D and BlitzBasic 3D. | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'BlitzBasic', | |||
'COMMENT_SINGLE' => array(1 => ';'), | |||
'COMMENT_MULTI' => array(), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"'), | |||
'ESCAPE_CHAR' => '', | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'If','EndIf','ElseIf','Else If','Else','While','Wend','Return','Next','Include','End Type','End Select','End If','End Function','End','Select', | |||
'Type','Forever','For','Or','And','AppTitle','Case','Goto','Gosub','Step','Stop','Int','Last','False','Then','To','True','Until','Float', | |||
'String','Before','Not' | |||
), | |||
2 => array( | |||
// All Functions - 2D BB and 3D BB | |||
'Xor','WriteString','WriteShort','WritePixelFast','WritePixel','WriteLine','WriteInt','WriteFloat','WriteFile','WriteBytes', | |||
'WriteByte','Write','WaitTimer','WaitMouse','WaitKey','WaitJoy','VWait','Viewport', | |||
'Upper','UpdateGamma','UnlockBuffer','UDPTimeouts','UDPStreamPort','UDPStreamIP','UDPMsgPort','UDPMsgIP', | |||
'Trim','TotalVidMem','TileImage','TileBlock','TFormImage','TFormFilter','Text', | |||
'TCPTimeouts','TCPStreamPort','TCPStreamIP','Tan','SystemProperty','StringWidth','StringHeight','Str','StopNetGame', | |||
'StopChannel','StartNetGame','Sqr','SoundVolume','SoundPitch','SoundPan','Sin','Shr', | |||
'ShowPointer','Shl','Sgn','SetGfxDriver','SetGamma','SetFont','SetEnv','SetBuffer','SendUDPMsg','SendNetMsg', | |||
'SeekFile','SeedRnd','ScanLine','ScaleImage','SaveImage','SaveBuffer','Sar','RuntimeError','RSet', | |||
'RotateImage','RndSeed','Rnd','Right','ResumeChannel','Restore','ResizeImage','ResizeBank','Replace', | |||
'Repeat','RecvUDPMsg','RecvNetMsg','RectsOverlap','Rect','ReadString','ReadShort','ReadPixelFast','ReadPixel','ReadLine', | |||
'ReadInt','ReadFloat','ReadFile','ReadDir','ReadBytes','ReadByte','ReadAvail','Read','Rand','Print', | |||
'PokeShort','PokeInt','PokeFloat','PokeByte','Plot','PlaySound','PlayMusic','PlayCDTrack','Pi','PeekShort', | |||
'PeekInt','PeekFloat','PeekByte','PauseChannel','Oval','Origin','OpenTCPStream','OpenMovie','OpenFile', | |||
'Null','NextFile','New','NetPlayerName','NetPlayerLocal','NetMsgType','NetMsgTo','NetMsgFrom', | |||
'NetMsgData','MovieWidth','MoviePlaying','MovieHeight','MoveMouse','MouseZSpeed','MouseZ','MouseYSpeed','MouseY','MouseXSpeed', | |||
'MouseX','MouseHit','MouseDown','Mod','Millisecs','MidHandle','Mid','MaskImage','LSet','Lower', | |||
'LoopSound','Log10','Log','LockBuffer','Locate','Local','LoadSound','LoadImage','LoadFont','LoadBuffer', | |||
'LoadAnimImage','Line','Len','Left','KeyHit','KeyDown','JoyZDir','JoyZ','JoyYDir', | |||
'JoyYaw','JoyY','JoyXDir','JoyX','JoyVDir','JoyV','JoyUDir','JoyU','JoyType','JoyRoll', | |||
'JoyPitch','JoyHit','JoyHat','JoyDown','JoinNetGame','Instr','Insert','Input', | |||
'ImageYHandle','ImageXHandle','ImageWidth','ImagesOverlap','ImagesCollide','ImageRectOverlap','ImageRectCollide','ImageHeight','ImageBuffer', | |||
'HostNetGame','HostIP','HidePointer','Hex','HandleImage','GraphicsWidth','GraphicsHeight','GraphicsDepth','GraphicsBuffer','Graphics', | |||
'GrabImage','Global','GFXModeWidth','GFXModeHeight','GfxModeExists','GFXModeDepth','GfxDriverName','GetMouse', | |||
'GetKey','GetJoy','GetEnv','GetColor','GammaRed','GammaGreen','GammaBlue','Function','FrontBuffer','FreeTimer', | |||
'FreeSound','FreeImage','FreeFont','FreeBank','FontWidth','FontHeight','FlushMouse','FlushKeys', | |||
'FlushJoy','Floor','Flip','First','FileType','FileSize','FilePos','Field', | |||
'Exp','Exit','ExecFile','Eof','EndGraphics','Each','DrawMovie','DrawImageRect','DrawImage','DrawBlockRect','DrawBlock', | |||
'DottedIP','Dim','DeleteNetPlayer','DeleteFile','DeleteDir','Delete','Delay','Default','DebugLog','Data', | |||
'CurrentTime','CurrentDir','CurrentDate','CreateUDPStream','CreateTimer','CreateTCPServer','CreateNetPlayer','CreateImage','CreateDir','CreateBank', | |||
'CountHostIPs','CountGFXModes','CountGfxDrivers','Cos','CopyStream','CopyRect','CopyPixelFast','CopyPixel','CopyImage','CopyFile', | |||
'CopyBank','Const','CommandLine','ColorRed','ColorGreen','ColorBlue','Color','ClsColor','Cls','CloseUDPStream', | |||
'CloseTCPStream','CloseTCPServer','CloseMovie','CloseFile','CloseDir','Chr','ChannelVolume','ChannelPlaying','ChannelPitch','ChannelPan', | |||
'ChangeDir','Ceil','CallDLL','Bin','BankSize','BackBuffer','AvailVidMem','AutoMidHandle', | |||
'ATan2','ATan','ASin','Asc','After','ACos','AcceptTCPStream','Abs', | |||
// 3D Commands | |||
'Wireframe','Windowed3D','WBuffer','VertexZ','VertexY', | |||
'VertexX','VertexW','VertexV','VertexU','VertexTexCoords','VertexRed','VertexNZ','VertexNY','VertexNX','VertexNormal', | |||
'VertexGreen','VertexCoords','VertexColor','VertexBlue','VertexAlpha','VectorYaw','VectorPitch','UpdateWorld','UpdateNormals','TurnEntity', | |||
'TrisRendered','TriangleVertex','TranslateEntity','TFormVector','TFormPoint','TFormNormal','TFormedZ','TFormedY','TFormedX','TextureWidth', | |||
'TextureName','TextureHeight','TextureFilter','TextureCoords','TextureBuffer','TextureBlend','TerrainZ','TerrainY','TerrainX','TerrainSize', | |||
'TerrainShading','TerrainHeight','TerrainDetail','SpriteViewMode','ShowEntity','SetCubeFace','SetAnimTime','SetAnimKey','ScaleTexture','ScaleSprite', | |||
'ScaleMesh','ScaleEntity','RotateTexture','RotateSprite','RotateMesh','RotateEntity','ResetEntity','RenderWorld','ProjectedZ','ProjectedY', | |||
'ProjectedX','PositionTexture','PositionMesh','PositionEntity','PointEntity','PickedZ','PickedY','PickedX','PickedTriangle','PickedTime', | |||
'PickedSurface','PickedNZ','PickedNY','PickedNX','PickedEntity','PaintSurface','PaintMesh','PaintEntity','NameEntity','MoveEntity', | |||
'ModifyTerrain','MeshWidth','MeshHeight','MeshesIntersect','MeshDepth','MD2AnimTime','MD2AnimLength','MD2Animating','LoadTexture','LoadTerrain', | |||
'LoadSprite','LoadMesh','LoadMD2','LoaderMatrix','LoadBSP','LoadBrush','LoadAnimTexture','LoadAnimSeq','LoadAnimMesh','Load3DSound', | |||
'LinePick','LightRange','LightMesh','LightConeAngles','LightColor','HWMultiTex','HideEntity','HandleSprite','Graphics3D','GfxMode3DExists', | |||
'GfxMode3D','GfxDriverCaps3D','GfxDriver3D','GetSurfaceBrush','GetSurface','GetParent','GetMatElement','GetEntityType','GetEntityBrush','GetChild', | |||
'GetBrushTexture','FreeTexture','FreeEntity','FreeBrush','FlipMesh','FitMesh','FindSurface','FindChild','ExtractAnimSeq','EntityZ', | |||
'EntityYaw','EntityY','EntityX','EntityVisible','EntityType','EntityTexture','EntityShininess','EntityRoll','EntityRadius','EntityPitch', | |||
'EntityPickMode','EntityPick','EntityParent','EntityOrder','EntityName','EntityInView','EntityFX','EntityDistance','EntityColor','EntityCollided', | |||
'EntityBox','EntityBlend','EntityAutoFade','EntityAlpha','EmitSound','Dither','DeltaYaw','DeltaPitch','CreateTexture','CreateTerrain', | |||
'CreateSurface','CreateSprite','CreateSphere','CreatePlane','CreatePivot','CreateMirror','CreateMesh','CreateListener','CreateLight','CreateCylinder', | |||
'CreateCube','CreateCone','CreateCamera','CreateBrush','CountVertices','CountTriangles','CountSurfaces','CountGfxModes3D','CountCollisions','CountChildren', | |||
'CopyMesh','CopyEntity','CollisionZ','CollisionY','CollisionX','CollisionTriangle','CollisionTime','CollisionSurface','Collisions','CollisionNZ', | |||
'CollisionNY','CollisionNX','CollisionEntity','ClearWorld','ClearTextureFilters','ClearSurface','ClearCollisions','CaptureWorld','CameraZoom','CameraViewport', | |||
'CameraRange','CameraProjMode','CameraProject','CameraPick','CameraFogRange','CameraFogMode','CameraFogColor','CameraClsMode','CameraClsColor','BSPLighting', | |||
'BSPAmbientLight','BrushTexture','BrushShininess','BrushFX','BrushColor','BrushBlend','BrushAlpha','AntiAlias','AnimTime','AnimSeq', | |||
'AnimLength','Animating','AnimateMD2','Animate','AmbientLight','AlignToVector','AddVertex','AddTriangle','AddMesh','AddAnimSeq', | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'(',')' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #000066; font-weight: bold;', | |||
2 => 'color: #0000ff;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #D9D100; font-style: italic;', | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #000066;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #009900;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #CC0000;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #006600;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #000066;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
0 => '', | |||
1 => '', | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '' | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
1 => '\\' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array(), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
0 => false, | |||
1 => false | |||
) | |||
); | |||
?> |
@@ -0,0 +1,119 @@ | |||
<?php | |||
/************************************************************************************* | |||
* bnf.php | |||
* -------- | |||
* Author: Rowan Rodrik van der Molen (rowan@bigsmoke.us) | |||
* Copyright: (c) 2006 Rowan Rodrik van der Molen (http://www.bigsmoke.us/) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2006/09/28 | |||
* | |||
* BNF (Backus-Naur form) language file for GeSHi. | |||
* | |||
* See http://en.wikipedia.org/wiki/Backus-Naur_form for more info on BNF. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2008/05/23 (1.0.7.22) | |||
* - Added description of extra language features (SF#1970248) | |||
* - Removed superflicious regexps | |||
* 2006/09/18 (1.0.0) | |||
* - First Release | |||
* | |||
* TODO (updated 2006/09/18) | |||
* ------------------------- | |||
* * Nothing I can think of | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'bnf', | |||
'COMMENT_SINGLE' => array(';'), | |||
'COMMENT_MULTI' => array(), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"', "'"), | |||
'ESCAPE_CHAR' => '', | |||
'KEYWORDS' => array(), | |||
'SYMBOLS' => array( | |||
0 => array('(', ')'), | |||
1 => array('<', '>'), | |||
2 => array('[', ']'), | |||
3 => array('{', '}'), | |||
4 => array('=', '*', '/', '|', ':'), | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array(), | |||
'COMMENTS' => array( | |||
0 => 'color: #666666; font-style: italic;', // Single Line comments | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => '' | |||
), | |||
'BRACKETS' => array( | |||
0 => '' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #a00;', | |||
1 => 'color: #a00;' | |||
), | |||
'NUMBERS' => array( | |||
0 => '' | |||
), | |||
'METHODS' => array( | |||
0 => '' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #000066; font-weight: bold;', // Round brackets | |||
1 => 'color: #000066; font-weight: bold;', // Angel Brackets | |||
2 => 'color: #000066; font-weight: bold;', // Square Brackets | |||
3 => 'color: #000066; font-weight: bold;', // BRaces | |||
4 => 'color: #006600; font-weight: bold;', // Other operator symbols | |||
), | |||
'REGEXPS' => array( | |||
0 => 'color: #007;', | |||
), | |||
'SCRIPT' => array( | |||
0 => '' | |||
) | |||
), | |||
'URLS' => array(), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array(), | |||
'REGEXPS' => array( | |||
//terminal symbols | |||
0 => array( | |||
GESHI_SEARCH => '(<)([^&]+?)(>)', | |||
GESHI_REPLACE => '\\2', | |||
GESHI_MODIFIERS => '', | |||
GESHI_BEFORE => '\\1', | |||
GESHI_AFTER => '\\3' | |||
), | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
) | |||
); | |||
?> |
@@ -0,0 +1,217 @@ | |||
<?php | |||
/************************************************************************************* | |||
* boo.php | |||
* -------- | |||
* Author: Marcus Griep (neoeinstein+GeSHi@gmail.com) | |||
* Copyright: (c) 2007 Marcus Griep (http://www.xpdm.us) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2007/09/10 | |||
* | |||
* Boo language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2004/09/10 (1.0.8) | |||
* - First Release | |||
* | |||
* TODO (updated 2007/09/10) | |||
* ------------------------- | |||
* Regular Expression Literal matching | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'Boo', | |||
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'''", "'", '"""', '"'), | |||
'HARDQUOTE' => array('"""', '"""'), | |||
'HARDESCAPE' => array('\"""'), | |||
'ESCAPE_CHAR' => '\\', | |||
'KEYWORDS' => array( | |||
1 => array(//Namespace | |||
'namespace', 'import', 'from' | |||
), | |||
2 => array(//Jump | |||
'yield', 'return', 'goto', 'continue', 'break' | |||
), | |||
3 => array(//Conditional | |||
'while', 'unless', 'then', 'in', 'if', 'for', 'else', 'elif' | |||
), | |||
4 => array(//Property | |||
'set', 'get' | |||
), | |||
5 => array(//Exception | |||
'try', 'raise', 'failure', 'except', 'ensure' | |||
), | |||
6 => array(//Visibility | |||
'public', 'private', 'protected', 'internal' | |||
), | |||
7 => array(//Define | |||
'struct', 'ref', 'of', 'interface', 'event', 'enum', 'do', 'destructor', 'def', 'constructor', 'class' | |||
), | |||
8 => array(//Cast | |||
'typeof', 'cast', 'as' | |||
), | |||
9 => array(//BiMacro | |||
'yieldAll', 'using', 'unchecked', 'rawArayIndexing', 'print', 'normalArrayIndexing', 'lock', | |||
'debug', 'checked', 'assert' | |||
), | |||
10 => array(//BiAttr | |||
'required', 'property', 'meta', 'getter', 'default' | |||
), | |||
11 => array(//BiFunc | |||
'zip', 'shellp', 'shellm', 'shell', 'reversed', 'range', 'prompt', | |||
'matrix', 'map', 'len', 'join', 'iterator', 'gets', 'enumerate', 'cat', 'array' | |||
), | |||
12 => array(//HiFunc | |||
'__switch__', '__initobj__', '__eval__', '__addressof__', 'quack' | |||
), | |||
13 => array(//Primitive | |||
'void', 'ushort', 'ulong', 'uint', 'true', 'timespan', 'string', 'single', | |||
'short', 'sbyte', 'regex', 'object', 'null', 'long', 'int', 'false', 'duck', | |||
'double', 'decimal', 'date', 'char', 'callable', 'byte', 'bool' | |||
), | |||
14 => array(//Operator | |||
'not', 'or', 'and', 'is', 'isa', | |||
), | |||
15 => array(//Modifier | |||
'virtual', 'transient', 'static', 'partial', 'override', 'final', 'abstract' | |||
), | |||
16 => array(//Access | |||
'super', 'self' | |||
), | |||
17 => array(//Pass | |||
'pass' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'[|', '|]', '${', '(', ')', '[', ']', '{', '}', '!', '@', '%', '&', '*', '|', '/', '<', '>', '+', '-', ';' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => true, | |||
2 => true, | |||
3 => true, | |||
4 => true, | |||
5 => true, | |||
6 => true, | |||
7 => true, | |||
8 => true, | |||
9 => true, | |||
10 => true, | |||
11 => true, | |||
12 => true, | |||
13 => true, | |||
14 => true, | |||
15 => true, | |||
16 => true, | |||
17 => true | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color:green;font-weight:bold;', | |||
2 => 'color:navy;', | |||
3 => 'color:blue;font-weight:bold;', | |||
4 => 'color:#8B4513;', | |||
5 => 'color:teal;font-weight:bold;', | |||
6 => 'color:blue;font-weight:bold;', | |||
7 => 'color:blue;font-weight:bold;', | |||
8 => 'color:blue;font-weight:bold;', | |||
9 => 'color:maroon;', | |||
10 => 'color:maroon;', | |||
11 => 'color:purple;', | |||
12 => 'color:#4B0082;', | |||
13 => 'color:purple;font-weight:bold;', | |||
14 => 'color:#008B8B;font-weight:bold;', | |||
15 => 'color:brown;', | |||
16 => 'color:black;font-weight:bold;', | |||
17 => 'color:gray;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #999999; font-style: italic;', | |||
2 => 'color: #999999; font-style: italic;', | |||
'MULTI' => 'color: #008000; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #0000FF; font-weight: bold;', | |||
'HARD' => 'color: #0000FF; font-weight: bold;', | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #006400;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #008000;', | |||
'HARD' => 'color: #008000;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #00008B;' | |||
), | |||
'METHODS' => array( | |||
0 => 'color: 000000;', | |||
1 => 'color: 000000;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #006400;' | |||
), | |||
'REGEXPS' => array( | |||
#0 => 'color: #0066ff;' | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '', | |||
4 => '', | |||
5 => '', | |||
6 => '', | |||
7 => '', | |||
8 => '', | |||
9 => '', | |||
10 => '', | |||
11 => '', | |||
12 => '', | |||
13 => '', | |||
14 => '', | |||
15 => '', | |||
16 => '', | |||
17 => '' | |||
), | |||
'OOLANG' => true, | |||
'OBJECT_SPLITTERS' => array( | |||
0 => '.', | |||
1 => '::' | |||
), | |||
'REGEXPS' => array( | |||
#0 => '%(@)?\/(?:(?(1)[^\/\\\\\r\n]+|[^\/\\\\\r\n \t]+)|\\\\[\/\\\\\w+()|.*?$^[\]{}\d])+\/%' | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 4 | |||
); | |||
?> |
@@ -0,0 +1,281 @@ | |||
<?php | |||
/************************************************************************************* | |||
* c.php | |||
* ----- | |||
* Author: Nigel McNie (nigel@geshi.org) | |||
* Contributors: | |||
* - Jack Lloyd (lloyd@randombit.net) | |||
* - Michael Mol (mikemol@gmail.com) | |||
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2004/06/04 | |||
* | |||
* C language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2009/01/22 (1.0.8.3) | |||
* - Made keywords case-sensitive. | |||
* 2008/05/23 (1.0.7.22) | |||
* - Added description of extra language features (SF#1970248) | |||
* 2004/XX/XX (1.0.4) | |||
* - Added a couple of new keywords (Jack Lloyd) | |||
* 2004/11/27 (1.0.3) | |||
* - Added support for multiple object splitters | |||
* 2004/10/27 (1.0.2) | |||
* - Added support for URLs | |||
* 2004/08/05 (1.0.1) | |||
* - Added support for symbols | |||
* 2004/07/14 (1.0.0) | |||
* - First Release | |||
* | |||
* TODO (updated 2009/02/08) | |||
* ------------------------- | |||
* - Get a list of inbuilt functions to add (and explore C more | |||
* to complete this rather bare language file | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'C', | |||
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
'COMMENT_REGEXP' => array( | |||
//Multiline-continued single-line comments | |||
1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m', | |||
//Multiline-continued preprocessor define | |||
2 => '/#(?:\\\\\\\\|\\\\\\n|.)*$/m' | |||
), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'ESCAPE_CHAR' => '', | |||
'ESCAPE_REGEXP' => array( | |||
//Simple Single Char Escapes | |||
1 => "#\\\\[\\\\abfnrtv\'\"?\n]#i", | |||
//Hexadecimal Char Specs | |||
2 => "#\\\\x[\da-fA-F]{2}#", | |||
//Hexadecimal Char Specs | |||
3 => "#\\\\u[\da-fA-F]{4}#", | |||
//Hexadecimal Char Specs | |||
4 => "#\\\\U[\da-fA-F]{8}#", | |||
//Octal Char Specs | |||
5 => "#\\\\[0-7]{1,3}#" | |||
), | |||
'NUMBERS' => | |||
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B | | |||
GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI | | |||
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO, | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'if', 'return', 'while', 'case', 'continue', 'default', | |||
'do', 'else', 'for', 'switch', 'goto' | |||
), | |||
2 => array( | |||
'null', 'false', 'break', 'true', 'function', 'enum', 'extern', 'inline' | |||
), | |||
3 => array( | |||
// assert.h | |||
'assert', | |||
//complex.h | |||
'cabs', 'cacos', 'cacosh', 'carg', 'casin', 'casinh', 'catan', | |||
'catanh', 'ccos', 'ccosh', 'cexp', 'cimag', 'cis', 'clog', 'conj', | |||
'cpow', 'cproj', 'creal', 'csin', 'csinh', 'csqrt', 'ctan', 'ctanh', | |||
//ctype.h | |||
'digittoint', 'isalnum', 'isalpha', 'isascii', 'isblank', 'iscntrl', | |||
'isdigit', 'isgraph', 'islower', 'isprint', 'ispunct', 'isspace', | |||
'isupper', 'isxdigit', 'toascii', 'tolower', 'toupper', | |||
//inttypes.h | |||
'imaxabs', 'imaxdiv', 'strtoimax', 'strtoumax', 'wcstoimax', | |||
'wcstoumax', | |||
//locale.h | |||
'localeconv', 'setlocale', | |||
//math.h | |||
'acos', 'asin', 'atan', 'atan2', 'ceil', 'cos', 'cosh', 'exp', | |||
'fabs', 'floor', 'frexp', 'ldexp', 'log', 'log10', 'modf', 'pow', | |||
'sin', 'sinh', 'sqrt', 'tan', 'tanh', | |||
//setjmp.h | |||
'longjmp', 'setjmp', | |||
//signal.h | |||
'raise', | |||
//stdarg.h | |||
'va_arg', 'va_copy', 'va_end', 'va_start', | |||
//stddef.h | |||
'offsetof', | |||
//stdio.h | |||
'clearerr', 'fclose', 'fdopen', 'feof', 'ferror', 'fflush', 'fgetc', | |||
'fgetpos', 'fgets', 'fopen', 'fprintf', 'fputc', 'fputchar', | |||
'fputs', 'fread', 'freopen', 'fscanf', 'fseek', 'fsetpos', 'ftell', | |||
'fwrite', 'getc', 'getch', 'getchar', 'gets', 'perror', 'printf', | |||
'putc', 'putchar', 'puts', 'remove', 'rename', 'rewind', 'scanf', | |||
'setbuf', 'setvbuf', 'snprintf', 'sprintf', 'sscanf', 'tmpfile', | |||
'tmpnam', 'ungetc', 'vfprintf', 'vfscanf', 'vprintf', 'vscanf', | |||
'vsprintf', 'vsscanf', | |||
//stdlib.h | |||
'abort', 'abs', 'atexit', 'atof', 'atoi', 'atol', 'bsearch', | |||
'calloc', 'div', 'exit', 'free', 'getenv', 'itoa', 'labs', 'ldiv', | |||
'ltoa', 'malloc', 'qsort', 'rand', 'realloc', 'srand', 'strtod', | |||
'strtol', 'strtoul', 'system', | |||
//string.h | |||
'memchr', 'memcmp', 'memcpy', 'memmove', 'memset', 'strcat', | |||
'strchr', 'strcmp', 'strcoll', 'strcpy', 'strcspn', 'strerror', | |||
'strlen', 'strncat', 'strncmp', 'strncpy', 'strpbrk', 'strrchr', | |||
'strspn', 'strstr', 'strtok', 'strxfrm', | |||
//time.h | |||
'asctime', 'clock', 'ctime', 'difftime', 'gmtime', 'localtime', | |||
'mktime', 'strftime', 'time', | |||
//wchar.h | |||
'btowc', 'fgetwc', 'fgetws', 'fputwc', 'fputws', 'fwide', | |||
'fwprintf', 'fwscanf', 'getwc', 'getwchar', 'mbrlen', 'mbrtowc', | |||
'mbsinit', 'mbsrtowcs', 'putwc', 'putwchar', 'swprintf', 'swscanf', | |||
'ungetwc', 'vfwprintf', 'vswprintf', 'vwprintf', 'wcrtomb', | |||
'wcscat', 'wcschr', 'wcscmp', 'wcscoll', 'wcscpy', 'wcscspn', | |||
'wcsftime', 'wcslen', 'wcsncat', 'wcsncmp', 'wcsncpy', 'wcspbrk', | |||
'wcsrchr', 'wcsrtombs', 'wcsspn', 'wcsstr', 'wcstod', 'wcstok', | |||
'wcstol', 'wcstoul', 'wcsxfrm', 'wctob', 'wmemchr', 'wmemcmp', | |||
'wmemcpy', 'wmemmove', 'wmemset', 'wprintf', 'wscanf', | |||
//wctype.h | |||
'iswalnum', 'iswalpha', 'iswcntrl', 'iswctype', 'iswdigit', | |||
'iswgraph', 'iswlower', 'iswprint', 'iswpunct', 'iswspace', | |||
'iswupper', 'iswxdigit', 'towctrans', 'towlower', 'towupper', | |||
'wctrans', 'wctype' | |||
), | |||
4 => array( | |||
'auto', 'char', 'const', 'double', 'float', 'int', 'long', | |||
'register', 'short', 'signed', 'sizeof', 'static', 'struct', | |||
'typedef', 'union', 'unsigned', 'void', 'volatile', 'wchar_t', | |||
'int8', 'int16', 'int32', 'int64', | |||
'uint8', 'uint16', 'uint32', 'uint64', | |||
'int_fast8_t', 'int_fast16_t', 'int_fast32_t', 'int_fast64_t', | |||
'uint_fast8_t', 'uint_fast16_t', 'uint_fast32_t', 'uint_fast64_t', | |||
'int_least8_t', 'int_least16_t', 'int_least32_t', 'int_least64_t', | |||
'uint_least8_t', 'uint_least16_t', 'uint_least32_t', 'uint_least64_t', | |||
'int8_t', 'int16_t', 'int32_t', 'int64_t', | |||
'uint8_t', 'uint16_t', 'uint32_t', 'uint64_t', | |||
'intmax_t', 'uintmax_t', 'intptr_t', 'uintptr_t', | |||
'size_t', 'off_t' | |||
), | |||
), | |||
'SYMBOLS' => array( | |||
'(', ')', '{', '}', '[', ']', | |||
'+', '-', '*', '/', '%', | |||
'=', '<', '>', | |||
'!', '^', '&', '|', | |||
'?', ':', | |||
';', ',' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => true, | |||
2 => true, | |||
3 => true, | |||
4 => true, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #b1b100;', | |||
2 => 'color: #000000; font-weight: bold;', | |||
3 => 'color: #000066;', | |||
4 => 'color: #993333;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #666666; font-style: italic;', | |||
2 => 'color: #339933;', | |||
'MULTI' => 'color: #808080; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;', | |||
1 => 'color: #000099; font-weight: bold;', | |||
2 => 'color: #660099; font-weight: bold;', | |||
3 => 'color: #660099; font-weight: bold;', | |||
4 => 'color: #660099; font-weight: bold;', | |||
5 => 'color: #006699; font-weight: bold;', | |||
'HARD' => '', | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #009900;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #ff0000;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #0000dd;', | |||
GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;', | |||
GESHI_NUMBER_OCT_PREFIX => 'color: #208080;', | |||
GESHI_NUMBER_HEX_PREFIX => 'color: #208080;', | |||
GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;', | |||
GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;', | |||
GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;', | |||
GESHI_NUMBER_FLT_NONSCI => 'color:#800080;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #202020;', | |||
2 => 'color: #202020;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #339933;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAMEL}.html', | |||
4 => '' | |||
), | |||
'OOLANG' => true, | |||
'OBJECT_SPLITTERS' => array( | |||
1 => '.', | |||
2 => '::' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 4 | |||
); | |||
?> |
@@ -0,0 +1,323 @@ | |||
<?php | |||
/************************************************************************************* | |||
* c_loadrunner.php | |||
* --------------------------------- | |||
* Author: Stuart Moncrieff (stuart at myloadtest dot com) | |||
* Copyright: (c) 2010 Stuart Moncrieff (http://www.myloadtest.com/loadrunner-syntax-highlighter/) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2010-07-25 | |||
* | |||
* C (for LoadRunner) language file for GeSHi. | |||
* | |||
* Based on LoadRunner 9.52. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2010-08-01 (1.0.8.9) | |||
* - Added highlighting support for LoadRunner {parameters}. | |||
* 2010-07-25 (1.0.8.8) | |||
* - First Release. Syntax highlighting support for lr_, web_, and sapgui_ functions only. | |||
* | |||
* TODO (updated 2010-07-25) | |||
* ------------------------- | |||
* - Add support for other vuser types: MMS, FTP, etc. | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* ************************************************************************************/ | |||
$language_data = array ( | |||
// The First Indices | |||
'LANG_NAME' => 'C (LoadRunner)', | |||
'COMMENT_SINGLE' => array(1 => '//'), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'ESCAPE_CHAR' => '', | |||
// Escape characters within strings (like \\) are not highlighted differently in LoadRunner, so | |||
// I am using GeSHi escape characters (or regular expressions) to highlight LoadRunner {parameters}. | |||
// LoadRunner {parameters} must begin with a letter and contain only alphanumeric characters and '_' | |||
'ESCAPE_REGEXP' => array( | |||
0 => "#\{[a-zA-Z]{1}[a-zA-Z_]{0,}\}#", | |||
), | |||
// Keywords | |||
'KEYWORDS' => array( | |||
// Keywords from http://en.wikipedia.org/wiki/C_syntax | |||
1 => array( | |||
'auto', 'break', 'case', 'char', 'const', 'continue', 'default', | |||
'do', 'double', 'else', 'enum', 'extern', 'float', 'for', 'goto', | |||
'if', 'inline', 'int', 'long', 'register', 'restrict', 'return', | |||
'short', 'signed', 'sizeof', 'static', 'struct', 'switch', | |||
'typedef', 'union', 'unsigned', 'void', 'volatile', 'while', | |||
'_Bool', '_Complex', '_Imaginary' | |||
), | |||
// C preprocessor directives from http://en.wikipedia.org/wiki/C_preprocessor | |||
2 => array( | |||
'#define', '#if', '#ifdef', '#ifndef', '#include', '#else', '#elif', '#endif', '#pragma', '#undef' | |||
), | |||
// Functions from lrun.h | |||
3 => array( | |||
'lr_start_transaction', 'lr_start_sub_transaction', 'lr_start_transaction_instance', 'lr_end_transaction', | |||
'lr_end_sub_transaction', 'lr_end_transaction_instance', 'lr_stop_transaction', 'lr_stop_transaction_instance', | |||
'lr_resume_transaction', 'lr_resume_transaction_instance', 'lr_wasted_time', 'lr_set_transaction', 'lr_user_data_point', | |||
'lr_user_data_point_instance', 'lr_user_data_point_ex', 'lr_user_data_point_instance_ex', 'lr_get_transaction_duration', | |||
'lr_get_trans_instance_duration', 'lr_get_transaction_think_time', 'lr_get_trans_instance_think_time', | |||
'lr_get_transaction_wasted_time', 'lr_get_trans_instance_wasted_time', 'lr_get_transaction_status', | |||
'lr_get_trans_instance_status', 'lr_set_transaction_status', 'lr_set_transaction_status_by_name', | |||
'lr_set_transaction_instance_status', 'lr_start_timer', 'lr_end_timer', 'lr_rendezvous', 'lr_rendezvous_ex', | |||
'lr_get_vuser_ip', 'lr_whoami', 'lr_get_host_name', 'lr_get_master_host_name', 'lr_get_attrib_long', | |||
'lr_get_attrib_string', 'lr_get_attrib_double', 'lr_paramarr_idx', 'lr_paramarr_random', 'lr_paramarr_len', | |||
'lr_param_unique', 'lr_param_sprintf', 'lr_load_dll', 'lr_continue_on_error', 'lr_decrypt', 'lr_abort', 'lr_exit', | |||
'lr_peek_events', 'lr_think_time', 'lr_debug_message', 'lr_log_message', 'lr_message', 'lr_error_message', | |||
'lr_output_message', 'lr_vuser_status_message', 'lr_fail_trans_with_error', 'lr_next_row', 'lr_advance_param', | |||
'lr_eval_string', 'lr_eval_string_ext', 'lr_eval_string_ext_free', 'lr_param_increment', 'lr_save_var', | |||
'lr_save_string', 'lr_save_int', 'lr_save_datetime', 'lr_save_searched_string', 'lr_set_debug_message', | |||
'lr_get_debug_message', 'lr_enable_ip_spoofing', 'lr_disable_ip_spoofing', 'lr_convert_string_encoding' | |||
), | |||
// Constants from lrun.h | |||
4 => array( | |||
'DP_FLAGS_NO_LOG', 'DP_FLAGS_STANDARD_LOG', 'DP_FLAGS_EXTENDED_LOG', 'merc_timer_handle_t', 'LR_EXIT_VUSER', | |||
'LR_EXIT_ACTION_AND_CONTINUE', 'LR_EXIT_ITERATION_AND_CONTINUE', 'LR_EXIT_VUSER_AFTER_ITERATION', | |||
'LR_EXIT_VUSER_AFTER_ACTION', 'LR_EXIT_MAIN_ITERATION_AND_CONTINUE', 'LR_MSG_CLASS_DISABLE_LOG', | |||
'LR_MSG_CLASS_STANDARD_LOG', 'LR_MSG_CLASS_RETURNED_DATA', 'LR_MSG_CLASS_PARAMETERS', 'LR_MSG_CLASS_ADVANCED_TRACE', | |||
'LR_MSG_CLASS_EXTENDED_LOG', 'LR_MSG_CLASS_SENT_DATA', 'LR_MSG_CLASS_JIT_LOG_ON_ERROR', 'LR_SWITCH_OFF', 'LR_SWITCH_ON', | |||
'LR_SWITCH_DEFAULT', 'ONE_DAY', 'ONE_HOUR', 'ONE_MIN', 'DATE_NOW', 'TIME_NOW', 'LR_MSG_CLASS_BRIEF_LOG', | |||
'LR_MSG_CLASS_RESULT_DATA', 'LR_MSG_CLASS_FULL_TRACE', 'LR_MSG_CLASS_AUTO_LOG', 'LR_MSG_OFF', 'LR_MSG_ON', | |||
'LR_MSG_DEFAULT' | |||
), | |||
// Functions from web_api.h | |||
5 => array( | |||
'web_reg_add_cookie', 'web_report_data_point', 'web_text_link', 'web_element', 'web_image_link', 'web_static_image', | |||
'web_image_submit', 'web_button', 'web_edit_field', 'web_radio_group', 'web_check_box', 'web_list', 'web_text_area', | |||
'web_map_area', 'web_eval_java_script', 'web_reg_dialog', 'web_reg_cross_step_download', 'web_browser', | |||
'web_set_rts_key', 'web_save_param_length', 'web_save_timestamp_param', 'web_load_cache', 'web_dump_cache', | |||
'web_add_cookie_ex' | |||
), | |||
// Constants from web_api.h | |||
6 => array( | |||
'DESCRIPTION', 'ACTION', 'VERIFICATION', 'LR_NOT_FOUND', 'HTTP_INFO_TOTAL_REQUEST_STAT', | |||
'HTTP_INFO_TOTAL_RESPONSE_STAT', 'LRW_OPT_STOP_VUSER_ON_ERROR', 'LRW_OPT_DISPLAY_IMAGE_BODY' | |||
), | |||
// Functions from as_web.h | |||
7 => array( | |||
'web_add_filter', 'web_add_auto_filter', 'web_add_auto_header', 'web_add_header', 'web_add_cookie', | |||
'web_cleanup_auto_headers', 'web_cleanup_cookies', 'web_concurrent_end', 'web_concurrent_start', 'web_create_html_param', | |||
'web_create_html_param_ex', 'web_custom_request', 'web_disable_keep_alive', 'web_enable_keep_alive', 'web_find', | |||
'web_get_int_property', 'web_image', 'web_image_check', 'web_link', 'web_global_verification', 'web_reg_find', | |||
'web_reg_save_param', 'web_convert_param', 'web_remove_auto_filter', 'web_remove_auto_header', 'web_revert_auto_header', | |||
'web_remove_cookie', 'web_save_header', 'web_set_certificate', 'web_set_certificate_ex', 'web_set_connections_limit', | |||
'web_set_max_html_param_len', 'web_set_max_retries', 'web_set_proxy', 'web_set_proxy_bypass', 'web_set_secure_proxy', | |||
'web_set_sockets_option', 'web_set_option', 'web_set_timeout', 'web_set_user', 'web_sjis_to_euc_param', | |||
'web_submit_data', 'web_submit_form', 'web_url', 'web_set_proxy_bypass_local', 'web_cache_cleanup', | |||
'web_create_html_query', 'web_create_radio_button_param', 'web_switch_net_layer' | |||
), | |||
// Constants from as_web.h | |||
8 => array( | |||
'ENDFORM', 'LAST', 'ENDITEM', 'EXTRARES', 'ITEMDATA', 'STARTHIDDENS', 'ENDHIDDENS', 'CONNECT', 'RECEIVE', 'RESOLVE', | |||
'STEP', 'REQUEST', 'RESPONSE', 'STARTQUERY', 'ENDQUERY', 'INPROPS', 'OUTPROPS', 'ENDPROPS', 'RAW_BODY_START', | |||
'RAW_BODY_END', 'HTTP_INFO_RETURN_CODE', 'HTTP_INFO_DOWNLOAD_SIZE', 'HTTP_INFO_DOWNLOAD_TIME', | |||
'LRW_NET_SOCKET_OPT_LOAD_VERIFY_FILE', 'LRW_NET_SOCKET_OPT_DEFAULT_VERIFY_PATH', 'LRW_NET_SOCKET_OPT_SSL_VERSION', | |||
'LRW_NET_SOCKET_OPT_SSL_CIPHER_LIST', 'LRW_NET_SOCKET_OPT_SO_REUSE_ADDRESS', 'LRW_NET_SOCKET_OPT_USER_IP_ADDRESS', | |||
'LRW_NET_SOCKET_OPT_IP_ADDRESS_BY_INDEX', 'LRW_NET_SOCKET_OPT_HELP', 'LRW_NET_SOCKET_OPT_PRINT_USER_IP_ADDRESS_LIST', | |||
'LRW_OPT_HTML_CHAR_REF_BACKWARD_COMPATIBILITY', 'LRW_OPT_VALUE_YES', 'LRW_OPT_VALUE_NO' | |||
), | |||
// Functions from as_sapgui.h | |||
9 => array( | |||
'sapgui_open_connection', 'sapgui_open_connection_ex', 'sapgui_logon', 'sapgui_create_session', | |||
'sapgui_create_new_session', 'sapgui_call_method', 'sapgui_call_method_ex', 'sapgui_set_property', | |||
'sapgui_get_property', 'sapgui_set_collection_property', 'sapgui_active_object_from_parent_method', | |||
'sapgui_active_object_from_parent_property', 'sapgui_call_method_of_active_object', | |||
'sapgui_call_method_of_active_object_ex', 'sapgui_set_property_of_active_object', 'sapgui_get_property_of_active_object', | |||
'sapgui_select_active_connection', 'sapgui_select_active_session', 'sapgui_select_active_window ', | |||
'sapgui_status_bar_get_text', 'sapgui_status_bar_get_param', 'sapgui_status_bar_get_type', 'sapgui_get_status_bar_text', | |||
'sapgui_get_active_window_title', 'sapgui_is_object_available', 'sapgui_is_tab_selected', 'sapgui_is_object_changeable', | |||
'sapgui_set_ok_code', 'sapgui_send_vkey', 'sapgui_resize_window', 'sapgui_window_resize', 'sapgui_window_maximize', | |||
'sapgui_window_close', 'sapgui_window_restore', 'sapgui_window_scroll_to_row', 'sapgui_press_button', | |||
'sapgui_select_radio_button', 'sapgui_set_password', 'sapgui_set_text', 'sapgui_select_menu', 'sapgui_select_tab', | |||
'sapgui_set_checkbox', 'sapgui_set_focus', 'sapgui_select_combobox_entry', 'sapgui_get_ok_code', | |||
'sapgui_is_radio_button_selected', 'sapgui_get_text', 'sapgui_is_checkbox_selected', 'sapgui_table_set_focus', | |||
'sapgui_table_press_button', 'sapgui_table_select_radio_button', 'sapgui_table_set_password', 'sapgui_table_set_text', | |||
'sapgui_table_set_checkbox', 'sapgui_table_select_combobox_entry', 'sapgui_table_set_row_selected', | |||
'sapgui_table_set_column_selected', 'sapgui_table_set_column_width', 'sapgui_table_reorder', 'sapgui_table_fill_data', | |||
'sapgui_table_get_text', 'sapgui_table_is_radio_button_selected', 'sapgui_table_is_checkbox_selected', | |||
'sapgui_table_is_row_selected', 'sapgui_table_is_column_selected', 'sapgui_table_get_column_width', | |||
'sapgui_grid_clear_selection', 'sapgui_grid_select_all', 'sapgui_grid_selection_changed', | |||
'sapgui_grid_press_column_header', 'sapgui_grid_select_cell', 'sapgui_grid_select_rows', 'sapgui_grid_select_column', | |||
'sapgui_grid_deselect_column', 'sapgui_grid_select_columns', 'sapgui_grid_select_cells', 'sapgui_grid_select_cell_row', | |||
'sapgui_grid_select_cell_column', 'sapgui_grid_set_column_order', 'sapgui_grid_set_column_width', | |||
'sapgui_grid_scroll_to_row', 'sapgui_grid_double_click', 'sapgui_grid_click', 'sapgui_grid_press_button', | |||
'sapgui_grid_press_total_row', 'sapgui_grid_set_cell_data', 'sapgui_grid_set_checkbox', | |||
'sapgui_grid_double_click_current_cell', 'sapgui_grid_click_current_cell', 'sapgui_grid_press_button_current_cell', | |||
'sapgui_grid_press_total_row_current_cell', 'sapgui_grid_press_F1', 'sapgui_grid_press_F4', 'sapgui_grid_press_ENTER', | |||
'sapgui_grid_press_toolbar_button', 'sapgui_grid_press_toolbar_context_button', 'sapgui_grid_open_context_menu', | |||
'sapgui_grid_select_context_menu', 'sapgui_grid_select_toolbar_menu', 'sapgui_grid_fill_data', | |||
'sapgui_grid_get_current_cell_row', 'sapgui_grid_get_current_cell_column', 'sapgui_grid_get_rows_count', | |||
'sapgui_grid_get_columns_count', 'sapgui_grid_get_cell_data', 'sapgui_grid_is_checkbox_selected', | |||
'sapgui_tree_scroll_to_node', 'sapgui_tree_set_hierarchy_header_width', 'sapgui_tree_set_selected_node', | |||
'sapgui_tree_double_click_node', 'sapgui_tree_press_key', 'sapgui_tree_press_button', 'sapgui_tree_set_checkbox', | |||
'sapgui_tree_double_click_item', 'sapgui_tree_click_link', 'sapgui_tree_open_default_context_menu', | |||
'sapgui_tree_open_node_context_menu', 'sapgui_tree_open_header_context_menu', 'sapgui_tree_open_item_context_menu', | |||
'sapgui_tree_select_context_menu', 'sapgui_tree_select_item', 'sapgui_tree_select_node', 'sapgui_tree_unselect_node', | |||
'sapgui_tree_unselect_all', 'sapgui_tree_select_column', 'sapgui_tree_unselect_column', 'sapgui_tree_set_column_order', | |||
'sapgui_tree_collapse_node', 'sapgui_tree_expand_node', 'sapgui_tree_scroll_to_item', 'sapgui_tree_set_column_width', | |||
'sapgui_tree_press_header', 'sapgui_tree_is_checkbox_selected', 'sapgui_tree_get_node_text', 'sapgui_tree_get_item_text', | |||
'sapgui_calendar_scroll_to_date', 'sapgui_calendar_focus_date', 'sapgui_calendar_select_interval', | |||
'sapgui_apogrid_select_all', 'sapgui_apogrid_clear_selection', 'sapgui_apogrid_select_cell', | |||
'sapgui_apogrid_deselect_cell', 'sapgui_apogrid_select_row', 'sapgui_apogrid_deselect_row', | |||
'sapgui_apogrid_select_column', 'sapgui_apogrid_deselect_column', 'sapgui_apogrid_scroll_to_row', | |||
'sapgui_apogrid_scroll_to_column', 'sapgui_apogrid_double_click', 'sapgui_apogrid_set_cell_data', | |||
'sapgui_apogrid_get_cell_data', 'sapgui_apogrid_is_cell_changeable', 'sapgui_apogrid_get_cell_format', | |||
'sapgui_apogrid_get_cell_tooltip', 'sapgui_apogrid_press_ENTER', 'sapgui_apogrid_open_cell_context_menu', | |||
'sapgui_apogrid_select_context_menu_item', 'sapgui_text_edit_scroll_to_line', 'sapgui_text_edit_set_selection_indexes', | |||
'sapgui_text_edit_set_unprotected_text_part', 'sapgui_text_edit_get_first_visible_line', | |||
'sapgui_text_edit_get_selection_index_start', 'sapgui_text_edit_get_selection_index_end', | |||
'sapgui_text_edit_get_number_of_unprotected_text_parts', 'sapgui_text_edit_double_click', | |||
'sapgui_text_edit_single_file_dropped', 'sapgui_text_edit_multiple_files_dropped', 'sapgui_text_edit_press_F1', | |||
'sapgui_text_edit_press_F4', 'sapgui_text_edit_open_context_menu', 'sapgui_text_edit_select_context_menu', | |||
'sapgui_text_edit_modified_status_changed', 'sapgui_htmlviewer_send_event', 'sapgui_htmlviewer_dom_get_property', | |||
'sapgui_toolbar_press_button', 'sapgui_toolbar_press_context_button', 'sapgui_toolbar_select_menu_item', | |||
'sapgui_toolbar_select_menu_item_by_text', 'sapgui_toolbar_select_context_menu_item', | |||
'sapgui_toolbar_select_context_menu_item_by_text' | |||
), | |||
// Constants from as_sapgui.h | |||
10 => array( | |||
'BEGIN_OPTIONAL', 'END_OPTIONAL', 'al-keys', 'ENTER', 'HELP', 'F2', 'BACK', 'F4', 'F5', 'F6', 'F7', 'F8', 'F9', | |||
'F10', 'F11', 'ESC', 'SHIFT_F1', 'SHIFT_F2', 'SHIFT_F3', 'SHIFT_F4', 'SHIFT_F5', 'SHIFT_F6', 'SHIFT_F7', 'SHIFT_F8', | |||
'SHIFT_F9', 'SHIFT_F10', 'SHIFT_F11', 'SHIFT_F12', 'CTRL_F1', 'CTRL_F2', 'CTRL_F3', 'CTRL_F4', 'CTRL_F5', 'CTRL_F6', | |||
'CTRL_F7', 'CTRL_F8', 'CTRL_F9', 'CTRL_F10', 'CTRL_F11', 'CTRL_F12', 'CTRL_SHIFT_F1', 'CTRL_SHIFT_F2', 'CTRL_SHIFT_F3', | |||
'CTRL_SHIFT_F4', 'CTRL_SHIFT_F5', 'CTRL_SHIFT_F6', 'CTRL_SHIFT_F7', 'CTRL_SHIFT_F8', 'CTRL_SHIFT_F9', 'CTRL_SHIFT_F10', | |||
'CTRL_SHIFT_F11', 'CTRL_SHIFT_F12', 'CANCEL', 'CTRL_F', 'CTRL_PAGE_UP', 'PAGE_UP', 'PAGE_DOWN', 'CTRL_PAGE_DOWN', | |||
'CTRL_G', 'CTRL_P' | |||
), | |||
), | |||
// Symbols and Case Sensitivity | |||
// Symbols from: http://en.wikipedia.org/wiki/C_syntax | |||
'SYMBOLS' => array( | |||
'(', ')', '{', '}', '[', ']', | |||
'+', '-', '*', '/', '%', | |||
'=', '<', '>', '!', '^', '&', '|', '?', ':', ';', ',' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => true, // Standard C reserved keywords | |||
2 => true, // C preprocessor directives | |||
3 => true, // Functions from lrun.h | |||
4 => true, // Constants from lrun.h | |||
5 => true, // Functions from web_api.h | |||
6 => true, // Constants from web_api.h | |||
7 => true, // Functions from as_web.h | |||
8 => true, // Constants from as_web.h | |||
9 => true, // Functions from as_sapgui.h | |||
10 => true, // Constants from as_sapgui.h | |||
), | |||
// Styles | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
// Functions are brown, constants and reserved words are blue | |||
1 => 'color: #0000ff;', // Standard C reserved keywords | |||
2 => 'color: #0000ff;', // C preprocessor directives | |||
3 => 'color: #8a0000;', // Functions from lrun.h | |||
4 => 'color: #0000ff;', // Constants from lrun.h | |||
5 => 'color: #8a0000;', // Functions from web_api.h | |||
6 => 'color: #0000ff;', // Constants from web_api.h | |||
7 => 'color: #8a0000;', // Functions from as_web.h | |||
8 => 'color: #0000ff;', // Constants from as_web.h | |||
9 => 'color: #8a0000;', // Functions from as_sapgui.h | |||
10 => 'color: #0000ff;', // Constants from as_sapgui.h | |||
), | |||
'COMMENTS' => array( | |||
// Comments are grey | |||
1 => 'color: #9b9b9b;', | |||
'MULTI' => 'color: #9b9b9b;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
// GeSHi cannot define a separate style for ESCAPE_REGEXP. The style for ESCAPE_CHAR also applies to ESCAPE_REGEXP. | |||
// This is used for LoadRunner {parameters} | |||
// {parameters} are pink | |||
0 => 'color: #c000c0;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #000000;' | |||
), | |||
'STRINGS' => array( | |||
// Strings are green | |||
0 => 'color: #008080;' | |||
), | |||
'NUMBERS' => array( | |||
// Numbers are green | |||
0 => 'color: #008080;', | |||
GESHI_NUMBER_BIN_PREFIX_0B => 'color: #008080;', | |||
GESHI_NUMBER_OCT_PREFIX => 'color: #008080;', | |||
GESHI_NUMBER_HEX_PREFIX => 'color: #008080;', | |||
GESHI_NUMBER_FLT_SCI_SHORT => 'color:#008080;', | |||
GESHI_NUMBER_FLT_SCI_ZERO => 'color:#008080;', | |||
GESHI_NUMBER_FLT_NONSCI_F => 'color:#008080;', | |||
GESHI_NUMBER_FLT_NONSCI => 'color:#008080;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #000000;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #000000;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
// URLs for Functions | |||
'URLS' => array( | |||
1 => '', // Standard C reserved keywords | |||
2 => '', // C preprocessor directives | |||
3 => '', // Functions from lrun.h | |||
4 => '', // Constants from lrun.h | |||
5 => '', // Functions from web_api.h | |||
6 => '', // Constants from web_api.h | |||
7 => '', // Functions from as_web.h | |||
8 => '', // Constants from as_web.h | |||
9 => '', // Functions from as_sapgui.h | |||
10 => '', // Constants from as_sapgui.h | |||
), | |||
// Object Orientation | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
// Regular Expressions | |||
// Note that REGEXPS are not applied within strings. | |||
'REGEXPS' => array( | |||
), | |||
// Contextual Highlighting and Strict Mode | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
// Tabs | |||
// Note that if you are using <pre> tags for your code, then the browser chooses how many spaces your tabs will translate to. | |||
'TAB_WIDTH' => 4 | |||
); | |||
?> |
@@ -0,0 +1,227 @@ | |||
<?php | |||
/************************************************************************************* | |||
* c_mac.php | |||
* --------- | |||
* Author: M. Uli Kusterer (witness.of.teachtext@gmx.net) | |||
* Copyright: (c) 2004 M. Uli Kusterer, Nigel McNie (http://qbnz.com/highlighter/) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2004/06/04 | |||
* | |||
* C for Macs language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2008/05/23 (1.0.7.22) | |||
* - Added description of extra language features (SF#1970248) | |||
* 2004/11/27 | |||
* - First Release | |||
* | |||
* TODO (updated 2004/11/27) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'C (Mac)', | |||
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
'COMMENT_REGEXP' => array( | |||
//Multiline-continued single-line comments | |||
1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m', | |||
//Multiline-continued preprocessor define | |||
2 => '/#(?:\\\\\\\\|\\\\\\n|.)*$/m' | |||
), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'ESCAPE_CHAR' => '', | |||
'ESCAPE_REGEXP' => array( | |||
//Simple Single Char Escapes | |||
1 => "#\\\\[\\\\abfnrtv\'\"?\n]#i", | |||
//Hexadecimal Char Specs | |||
2 => "#\\\\x[\da-fA-F]{2}#", | |||
//Hexadecimal Char Specs | |||
3 => "#\\\\u[\da-fA-F]{4}#", | |||
//Hexadecimal Char Specs | |||
4 => "#\\\\U[\da-fA-F]{8}#", | |||
//Octal Char Specs | |||
5 => "#\\\\[0-7]{1,3}#" | |||
), | |||
'NUMBERS' => | |||
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B | | |||
GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI | | |||
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO, | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'if', 'return', 'while', 'case', 'continue', 'default', | |||
'do', 'else', 'for', 'switch', 'goto' | |||
), | |||
2 => array( | |||
'NULL', 'false', 'break', 'true', 'enum', 'errno', 'EDOM', | |||
'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG', | |||
'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG', | |||
'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP', | |||
'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP', | |||
'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN', | |||
'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN', | |||
'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT', | |||
'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR', | |||
'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam', | |||
'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr', | |||
'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC', | |||
// Mac-specific constants: | |||
'kCFAllocatorDefault' | |||
), | |||
3 => array( | |||
'printf', 'fprintf', 'snprintf', 'sprintf', 'assert', | |||
'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint', | |||
'ispunct', 'isspace', 'isupper', 'isxdigit', 'tolower', 'toupper', | |||
'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp', | |||
'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2', | |||
'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp', | |||
'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen', | |||
'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf', | |||
'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf', | |||
'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc', | |||
'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind', | |||
'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs', | |||
'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc', | |||
'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv', | |||
'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat', | |||
'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn', | |||
'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy', | |||
'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime', | |||
'asctime', 'ctime', 'gmtime', 'localtime', 'strftime' | |||
), | |||
4 => array( | |||
'auto', 'char', 'const', 'double', 'float', 'int', 'long', | |||
'register', 'short', 'signed', 'static', 'struct', | |||
'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf', | |||
'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t', | |||
'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm', 'wchar_t', | |||
'int8', 'int16', 'int32', 'int64', | |||
'uint8', 'uint16', 'uint32', 'uint64', | |||
'int_fast8_t', 'int_fast16_t', 'int_fast32_t', 'int_fast64_t', | |||
'uint_fast8_t', 'uint_fast16_t', 'uint_fast32_t', 'uint_fast64_t', | |||
'int_least8_t', 'int_least16_t', 'int_least32_t', 'int_least64_t', | |||
'uint_least8_t', 'uint_least16_t', 'uint_least32_t', 'uint_least64_t', | |||
'int8_t', 'int16_t', 'int32_t', 'int64_t', | |||
'uint8_t', 'uint16_t', 'uint32_t', 'uint64_t', | |||
'intmax_t', 'uintmax_t', 'intptr_t', 'uintptr_t', | |||
// Mac-specific types: | |||
'CFArrayRef', 'CFDictionaryRef', 'CFMutableDictionaryRef', 'CFBundleRef', 'CFSetRef', 'CFStringRef', | |||
'CFURLRef', 'CFLocaleRef', 'CFDateFormatterRef', 'CFNumberFormatterRef', 'CFPropertyListRef', | |||
'CFTreeRef', 'CFWriteStreamRef', 'CFCharacterSetRef', 'CFMutableStringRef', 'CFNotificationRef', | |||
'CFReadStreamRef', 'CFNull', 'CFAllocatorRef', 'CFBagRef', 'CFBinaryHeapRef', | |||
'CFBitVectorRef', 'CFBooleanRef', 'CFDataRef', 'CFDateRef', 'CFMachPortRef', 'CFMessagePortRef', | |||
'CFMutableArrayRef', 'CFMutableBagRef', 'CFMutableBitVectorRef', 'CFMutableCharacterSetRef', | |||
'CFMutableDataRef', 'CFMutableSetRef', 'CFNumberRef', 'CFPlugInRef', 'CFPlugInInstanceRef', | |||
'CFRunLoopRef', 'CFRunLoopObserverRef', 'CFRunLoopSourceRef', 'CFRunLoopTimerRef', 'CFSocketRef', | |||
'CFTimeZoneRef', 'CFTypeRef', 'CFUserNotificationRef', 'CFUUIDRef', 'CFXMLNodeRef', 'CFXMLParserRef', | |||
'CFXMLTreeRef' | |||
), | |||
), | |||
'SYMBOLS' => array( | |||
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => true, | |||
2 => true, | |||
3 => true, | |||
4 => true, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #0000ff;', | |||
2 => 'color: #0000ff;', | |||
3 => 'color: #0000dd;', | |||
4 => 'color: #0000ff;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #ff0000;', | |||
2 => 'color: #339900;', | |||
'MULTI' => 'color: #ff0000; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;', | |||
1 => 'color: #000099; font-weight: bold;', | |||
2 => 'color: #660099; font-weight: bold;', | |||
3 => 'color: #660099; font-weight: bold;', | |||
4 => 'color: #660099; font-weight: bold;', | |||
5 => 'color: #006699; font-weight: bold;', | |||
'HARD' => '', | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #000000;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #666666;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #0000dd;', | |||
GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;', | |||
GESHI_NUMBER_OCT_PREFIX => 'color: #208080;', | |||
GESHI_NUMBER_HEX_PREFIX => 'color: #208080;', | |||
GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;', | |||
GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;', | |||
GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;', | |||
GESHI_NUMBER_FLT_NONSCI => 'color:#800080;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #00eeff;', | |||
2 => 'color: #00eeff;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #000000;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => 'http://www.opengroup.org/onlinepubs/009695399/functions/{FNAMEL}.html', | |||
4 => '' | |||
), | |||
'OOLANG' => true, | |||
'OBJECT_SPLITTERS' => array( | |||
1 => '.', | |||
2 => '::' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 4 | |||
); | |||
?> |
@@ -0,0 +1,126 @@ | |||
<?php | |||
/************************************************************************************* | |||
* caddcl.php | |||
* ---------- | |||
* Author: Roberto Rossi (rsoftware@altervista.org) | |||
* Copyright: (c) 2004 Roberto Rossi (http://rsoftware.altervista.org), Nigel McNie (http://qbnz.com/highlighter) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2004/08/30 | |||
* | |||
* CAD DCL (Dialog Control Language) language file for GeSHi. | |||
* | |||
* DCL for AutoCAD 12 or later and IntelliCAD all versions. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2004/11/27 (1.0.1) | |||
* - Added support for multiple object splitters | |||
* 2004/1!/27 (1.0.0) | |||
* - First Release | |||
* | |||
* TODO (updated 2004/11/27) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'CAD DCL', | |||
'COMMENT_SINGLE' => array(1 => '//'), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"'), | |||
'ESCAPE_CHAR' => '\\', | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'boxed_column','boxed_radio_column','boxed_radio_row','boxed_row', | |||
'column','concatenation','button','dialog','edit_box','image','image_button', | |||
'errtile','list_box','ok_cancel','ok_cancel_help','ok_cancel_help_errtile', | |||
'ok_cancel_help_info','ok_only','paragraph','popup_list','radio_button', | |||
'radio_column','radio_row','row','slider','spacer','spacer_0','spacer_1','text', | |||
'text_part','toggle', | |||
'action','alignment','allow_accept','aspect_ratio','big_increment', | |||
'children_alignment','children_fixed_height', | |||
'children_fixed_width','color', | |||
'edit_limit','edit_width','fixed_height','fixed_width', | |||
'height','initial_focus','is_cancel','is_default', | |||
'is_enabled','is_tab_stop','is-bold','key','label','layout','list', | |||
'max_value','min_value','mnemonic','multiple_select','password_char', | |||
'small_increment','tabs','tab_truncate','value','width', | |||
'false','true','left','right','centered','top','bottom', | |||
'dialog_line','dialog_foreground','dialog_background', | |||
'graphics_background','black','red','yellow','green','cyan', | |||
'blue','magenta','whitegraphics_foreground', | |||
'horizontal','vertical' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #b1b100;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #808080; font-style: italic;', | |||
'MULTI' => 'color: #808080; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #66cc66;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #ff0000;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #cc66cc;' | |||
), | |||
'METHODS' => array( | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #66cc66;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '' | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
) | |||
); | |||
?> |
@@ -0,0 +1,186 @@ | |||
<?php | |||
/************************************************************************************* | |||
* cadlisp.php | |||
* ----------- | |||
* Author: Roberto Rossi (rsoftware@altervista.org) | |||
* Copyright: (c) 2004 Roberto Rossi (http://rsoftware.altervista.org), Nigel McNie (http://qbnz.com/blog) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2004/08/30 | |||
* | |||
* AutoCAD/IntelliCAD Lisp language file for GeSHi. | |||
* | |||
* For AutoCAD V.12..2005 and IntelliCAD all versions. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2004/11/27 (1.0.1) | |||
* - Added support for multiple object splitters | |||
* 2004/10/27 (1.0.0) | |||
* - First Release | |||
* | |||
* TODO (updated 2004/11/27) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'CAD Lisp', | |||
'COMMENT_SINGLE' => array(1 => ";"), | |||
'COMMENT_MULTI' => array(";|" => "|;"), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"'), | |||
'ESCAPE_CHAR' => '\\', | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'abs','acad_colordlg','acad_helpdlg','acad_strlsort','action_tile', | |||
'add_list','alert','alloc','and','angle','angtof','angtos','append','apply', | |||
'arx','arxload','arxunload','ascii','assoc','atan','atof','atoi','atom', | |||
'atoms-family','autoarxload','autoload','Boole','boundp','caddr', | |||
'cadr','car','cdr','chr','client_data_tile','close','command','cond', | |||
'cons','cos','cvunit','defun','defun-q','defun-q-list-ref', | |||
'defun-q-list-set','dictadd','dictnext','dictremove','dictrename', | |||
'dictsearch','dimx_tile','dimy_tile','distance','distof','done_dialog', | |||
'end_image','end_list','entdel','entget','entlast','entmake', | |||
'entmakex','entmod','entnext','entsel','entupd','eq','equal','eval','exit', | |||
'exp','expand','expt','fill_image','findfile','fix','float','foreach','function', | |||
'gc','gcd','get_attr','get_tile','getangle','getcfg','getcname','getcorner', | |||
'getdist','getenv','getfiled','getint','getkword','getorient','getpoint', | |||
'getreal','getstring','getvar','graphscr','grclear','grdraw','grread','grtext', | |||
'grvecs','handent','help','if','initdia','initget','inters','itoa','lambda','last', | |||
'layoutlist','length','list','listp','load','load_dialog','log','logand','logior', | |||
'lsh','mapcar','max','mem','member','menucmd','menugroup','min','minusp','mode_tile', | |||
'namedobjdict','nentsel','nentselp','new_dialog','nil','not','nth','null', | |||
'numberp','open','or','osnap','polar','prin1','princ','print','progn','prompt', | |||
'quit','quote','read','read-char','read-line','redraw','regapp','rem','repeat', | |||
'reverse','rtos','set','set_tile','setcfg','setenv','setfunhelp','setq','setvar', | |||
'setview','sin','slide_image','snvalid','sqrt','ssadd','ssdel','ssget','ssgetfirst', | |||
'sslength','ssmemb','ssname','ssnamex','sssetfirst','start_dialog','start_image', | |||
'start_list','startapp','strcase','strcat','strlen','subst','substr','t','tablet', | |||
'tblnext','tblobjname','tblsearch','term_dialog','terpri','textbox','textpage', | |||
'textscr','trace','trans','type','unload_dialog','untrace','vector_image','ver', | |||
'vports','wcmatch','while','write-char','write-line','xdroom','xdsize','zerop', | |||
'vl-acad-defun','vl-acad-undefun','vl-arx-import','vlax-3D-point', | |||
'vlax-add-cmd','vlax-create-object','vlax-curve-getArea', | |||
'vlax-curve-getClosestPointTo','vlax-curve-getClosestPointToProjection', | |||
'vlax-curve-getDistAtParam','vlax-curve-getDistAtPoint', | |||
'vlax-curve-getEndParam','vlax-curve-getEndPoint', | |||
'vlax-curve-getFirstDeriv','vlax-curve-getParamAtDist', | |||
'vlax-curve-getParamAtPoint','vlax-curve-getPointAtDist', | |||
'vlax-curve-getPointAtParam','vlax-curve-getSecondDeriv', | |||
'vlax-curve-getStartParam','vlax-curve-getStartPoint', | |||
'vlax-curve-isClosed','vlax-curve-isPeriodic','vlax-curve-isPlanar', | |||
'vlax-dump-object','vlax-erased-p','vlax-for','vlax-get-acad-object', | |||
'vlax-get-object','vlax-get-or-create-object','vlax-get-property', | |||
'vlax-import-type-library','vlax-invoke-method','vlax-ldata-delete', | |||
'vlax-ldata-get','vlax-ldata-list','vlax-ldata-put','vlax-ldata-test', | |||
'vlax-make-safearray','vlax-make-variant','vlax-map-collection', | |||
'vlax-method-applicable-p','vlax-object-released-p','vlax-product-key', | |||
'vlax-property-available-p','vlax-put-property','vlax-read-enabled-p', | |||
'vlax-release-object','vlax-remove-cmd','vlax-safearray-fill', | |||
'vlax-safearray-get-dim','vlax-safearray-get-element', | |||
'vlax-safearray-get-l-bound','vlax-safearray-get-u-bound', | |||
'vlax-safearray-put-element','vlax-safearray-type','vlax-tmatrix', | |||
'vlax-typeinfo-available-p','vlax-variant-change-type', | |||
'vlax-variant-type','vlax-variant-value','vlax-write-enabled-p', | |||
'vl-bb-ref','vl-bb-set','vl-catch-all-apply','vl-catch-all-error-message', | |||
'vl-catch-all-error-p','vl-cmdf','vl-consp','vl-directory-files','vl-doc-export', | |||
'vl-doc-import','vl-doc-ref','vl-doc-set','vl-every','vl-exit-with-error', | |||
'vl-exit-with-value','vl-file-copy','vl-file-delete','vl-file-directory-p', | |||
'vl-filename-base','vl-filename-directory','vl-filename-extension', | |||
'vl-filename-mktemp','vl-file-rename','vl-file-size','vl-file-systime', | |||
'vl-get-resource','vlisp-compile','vl-list-exported-functions', | |||
'vl-list-length','vl-list-loaded-vlx','vl-load-all','vl-load-com', | |||
'vl-load-reactors','vl-member-if','vl-member-if-not','vl-position', | |||
'vl-prin1-to-string','vl-princ-to-string','vl-propagate','vlr-acdb-reactor', | |||
'vlr-add','vlr-added-p','vlr-beep-reaction','vlr-command-reactor', | |||
'vlr-current-reaction-name','vlr-data','vlr-data-set', | |||
'vlr-deepclone-reactor','vlr-docmanager-reactor','vlr-dwg-reactor', | |||
'vlr-dxf-reactor','vlr-editor-reactor','vl-registry-delete', | |||
'vl-registry-descendents','vl-registry-read','vl-registry-write', | |||
'vl-remove','vl-remove-if','vl-remove-if-not','vlr-insert-reactor', | |||
'vlr-linker-reactor','vlr-lisp-reactor','vlr-miscellaneous-reactor', | |||
'vlr-mouse-reactor','vlr-notification','vlr-object-reactor', | |||
'vlr-owner-add','vlr-owner-remove','vlr-owners','vlr-pers','vlr-pers-list', | |||
'vlr-pers-p','vlr-pers-release','vlr-reaction-names','vlr-reactions', | |||
'vlr-reaction-set','vlr-reactors','vlr-remove','vlr-remove-all', | |||
'vlr-set-notification','vlr-sysvar-reactor','vlr-toolbar-reactor', | |||
'vlr-trace-reaction','vlr-type','vlr-types','vlr-undo-reactor', | |||
'vlr-wblock-reactor','vlr-window-reactor','vlr-xref-reactor', | |||
'vl-some','vl-sort','vl-sort-i','vl-string-elt','vl-string-left-trim', | |||
'vl-string-mismatch','vl-string-position','vl-string-right-trim', | |||
'vl-string-search','vl-string-subst','vl-string-translate','vl-string-trim', | |||
'vl-symbol-name','vl-symbolp','vl-symbol-value','vl-unload-vlx','vl-vbaload', | |||
'vl-vbarun','vl-vlx-loaded-p' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'(', ')', '{', '}', '[', ']', '!', '%', '^', '&', '/','+','-','*','=','<','>' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #b1b100;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #808080; font-style: italic;', | |||
'MULTI' => 'color: #808080; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #66cc66;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #ff0000;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #cc66cc;' | |||
), | |||
'METHODS' => array( | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #66cc66;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '' | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
) | |||
); | |||
?> |
@@ -0,0 +1,124 @@ | |||
<?php | |||
/************************************************************************************* | |||
* cfdg.php | |||
* -------- | |||
* Author: John Horigan <john@glyphic.com> | |||
* Copyright: (c) 2006 John Horigan http://www.ozonehouse.com/john/ | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2006/03/11 | |||
* | |||
* CFDG language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2006/03/11 (1.0.0) | |||
* - First Release | |||
* | |||
* TODO (updated 2006/03/11) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'CFDG', | |||
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'ESCAPE_CHAR' => '', | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'include', 'startshape', 'rule', 'background' | |||
), | |||
2 => array( | |||
'SQUARE', 'CIRCLE', 'TRIANGLE', | |||
), | |||
3 => array( | |||
'b','brightness','h','hue','sat','saturation', | |||
'a','alpha','x','y','z','s','size', | |||
'r','rotate','f','flip','skew','xml_set_object' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'[', ']', '{', '}', '*', '|' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #717100;', | |||
2 => 'color: #000000; font-weight: bold;', | |||
3 => 'color: #006666;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #808080; font-style: italic;', | |||
2 => 'color: #808080; font-style: italic;', | |||
'MULTI' => 'color: #808080; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #66cc66;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #ff0000;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #cc66cc;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #006600;', | |||
2 => 'color: #006600;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #66cc66;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
0 => '', | |||
1 => '', | |||
2 => '', | |||
3 => '' | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '' | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array(), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
) | |||
); | |||
?> |
@@ -0,0 +1,299 @@ | |||
<?php | |||
/************************************************************************************* | |||
* cfm.php | |||
* ------- | |||
* Author: Diego | |||
* Copyright: (c) 2006 Diego | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2006/02/25 | |||
* | |||
* ColdFusion language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2006/02/25 (1.0.0) | |||
* - First Release | |||
* | |||
* TODO (updated 2006/02/25) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'ColdFusion', | |||
'COMMENT_SINGLE' => array(1 => '//'), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'ESCAPE_CHAR' => '\\', | |||
'KEYWORDS' => array( | |||
/* CFM Tags */ | |||
1 => array( | |||
'cfabort', 'cfapplet', 'cfapplication', 'cfargument', 'cfassociate', | |||
'cfbreak', 'cfcache', 'cfcase', 'cfcatch', 'cfchart', 'cfchartdata', | |||
'cfchartseries', 'cfcol', 'cfcollection', 'cfcomponent', | |||
'cfcontent', 'cfcookie', 'cfdefaultcase', 'cfdirectory', | |||
'cfdocument', 'cfdocumentitem', 'cfdocumentsection', 'cfdump', | |||
'cfelse', 'cfelseif', 'cferror', 'cfexecute', 'cfexit', 'cffile', | |||
'cfflush', 'cfform', 'cfformgroup', 'cfformitem', 'cfftp', | |||
'cffunction', 'cfgrid', 'cfgridcolumn', 'cfgridrow', 'cfgridupdate', | |||
'cfheader', 'cfhtmlhead', 'cfhttp', 'cfhttpparam', 'cfif', | |||
'cfimport', 'cfinclude', 'cfindex', 'cfinput', 'cfinsert', | |||
'cfinvoke', 'cfinvokeargument', 'cfldap', 'cflocation', 'cflock', | |||
'cflog', 'cflogin', 'cfloginuser', 'cflogout', 'cfloop', 'cfmail', | |||
'cfmailparam', 'cfmailpart', 'cfmodule', 'cfNTauthenticate', | |||
'cfobject', 'cfobjectcache', 'cfoutput', 'cfparam', 'cfpop', | |||
'cfprocessingdirective', 'cfprocparam', | |||
'cfprocresult', 'cfproperty', 'cfquery', 'cfqueryparam', | |||
'cfregistry', 'cfreport', 'cfreportparam', 'cfrethrow', 'cfreturn', | |||
'cfsavecontent', 'cfschedule', 'cfscript', 'cfsearch', 'cfselect', | |||
'cfset', 'cfsetting', 'cfsilent', 'cfstoredproc', | |||
'cfswitch', 'cftable', 'cftextarea', 'cfthrow', 'cftimer', | |||
'cftrace', 'cftransaction', 'cftree', 'cftreeitem', 'cftry', | |||
'cfupdate', 'cfwddx' | |||
), | |||
/* HTML Tags */ | |||
2 => array( | |||
'a', 'abbr', 'acronym', 'address', 'applet', | |||
'base', 'basefont', 'bdo', 'big', 'blockquote', 'body', 'br', 'button', 'b', | |||
'caption', 'center', 'cite', 'code', 'colgroup', 'col', | |||
'dd', 'del', 'dfn', 'dir', 'div', 'dl', 'dt', | |||
'em', | |||
'fieldset', 'font', 'form', 'frame', 'frameset', | |||
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'hr', 'html', | |||
'iframe', 'ilayer', 'img', 'input', 'ins', 'isindex', 'i', | |||
'kbd', | |||
'label', 'legend', 'link', 'li', | |||
'map', 'meta', | |||
'noframes', 'noscript', | |||
'object', 'ol', 'optgroup', 'option', | |||
'param', 'pre', 'p', | |||
'q', | |||
'samp', 'script', 'select', 'small', 'span', 'strike', 'strong', 'style', 'sub', 'sup', 's', | |||
'table', 'tbody', 'td', 'textarea', 'text', 'tfoot', 'thead', 'th', 'title', 'tr', 'tt', | |||
'ul', 'u', | |||
'var', | |||
), | |||
/* HTML attributes */ | |||
3 => array( | |||
'abbr', 'accept-charset', 'accept', 'accesskey', 'action', 'align', 'alink', 'alt', 'archive', 'axis', | |||
'background', 'bgcolor', 'border', | |||
'cellpadding', 'cellspacing', 'char', 'charoff', 'charset', 'checked', 'cite', 'class', 'classid', 'clear', 'code', 'codebase', 'codetype', 'color', 'cols', 'colspan', 'compact', 'content', 'coords', | |||
'data', 'datetime', 'declare', 'defer', 'dir', 'disabled', | |||
'enctype', | |||
'face', 'for', 'frame', 'frameborder', | |||
'headers', 'height', 'href', 'hreflang', 'hspace', 'http-equiv', | |||
'id', 'ismap', | |||
'label', 'lang', 'language', 'link', 'longdesc', | |||
'marginheight', 'marginwidth', 'maxlength', 'media', 'method', 'multiple', | |||
'name', 'nohref', 'noresize', 'noshade', 'nowrap', | |||
'object', 'onblur', 'onchange', 'onclick', 'ondblclick', 'onfocus', 'onkeydown', 'onkeypress', 'onkeyup', 'onload', 'onmousedown', 'onmousemove', 'onmouseout', 'onmouseover', 'onmouseup', 'onreset', 'onselect', 'onsubmit', 'onunload', | |||
'profile', 'prompt', | |||
'readonly', 'rel', 'rev', 'rowspan', 'rows', 'rules', | |||
'scheme', 'scope', 'scrolling', 'selected', 'shape', 'size', 'span', 'src', 'standby', 'start', 'style', 'summary', | |||
'tabindex', 'target', 'text', 'title', 'type', | |||
'usemap', | |||
'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace', | |||
'width' | |||
), | |||
/* CFM Script delimeters */ | |||
4 => array( | |||
'var', 'function', 'while', 'if','else' | |||
), | |||
/* CFM Functions */ | |||
5 => array( | |||
'Abs', 'GetFunctionList', 'LSTimeFormat','ACos','GetGatewayHelper','LTrim','AddSOAPRequestHeader','GetHttpRequestData', | |||
'Max','AddSOAPResponseHeader','GetHttpTimeString','Mid','ArrayAppend','GetLocale','Min','ArrayAvg','GetLocaleDisplayName', | |||
'Minute','ArrayClear','GetMetaData','Month','ArrayDeleteAt','GetMetricData','MonthAsString','ArrayInsertAt','GetPageContext', | |||
'Now','ArrayIsEmpty','GetProfileSections','NumberFormat','ArrayLen','GetProfileString','ParagraphFormat','ArrayMax', | |||
'GetLocalHostIP','ParseDateTime','ArrayMin','GetSOAPRequest','Pi','ArrayNew','GetSOAPRequestHeader','PreserveSingleQuotes', | |||
'ArrayPrepend','GetSOAPResponse','Quarter','ArrayResize','GetSOAPResponseHeader','QueryAddColumn','ArraySet', | |||
'GetTempDirectory','QueryAddRow','ArraySort','QueryNew','ArraySum','GetTempFile','QuerySetCell', | |||
'ArraySwap','GetTickCount','QuotedValueList','ArrayToList','GetTimeZoneInfo','Rand','Asc','GetToken','Randomize', | |||
'ASin','Hash','RandRange','Atn','Hour','REFind','BinaryDecode','HTMLCodeFormat','REFindNoCase','BinaryEncode', | |||
'HTMLEditFormat','ReleaseComObject','BitAnd','IIf','RemoveChars','BitMaskClear','IncrementValue','RepeatString', | |||
'BitMaskRead','InputBaseN','Replace','BitMaskSet','Insert','ReplaceList','BitNot','Int','ReplaceNoCase','BitOr', | |||
'IsArray','REReplace','BitSHLN','IsBinary','REReplaceNoCase','BitSHRN','IsBoolean','Reverse','BitXor','IsCustomFunction', | |||
'Right','Ceiling','IsDate','RJustify','CharsetDecode','IsDebugMode','Round','CharsetEncode','IsDefined','RTrim', | |||
'Chr','IsLeapYear','Second','CJustify','IsLocalHost','SendGatewayMessage','Compare','IsNumeric','SetEncoding', | |||
'CompareNoCase','IsNumericDate','SetLocale','Cos','IsObject','SetProfileString','CreateDate','IsQuery','SetVariable', | |||
'CreateDateTime','IsSimpleValue','Sgn','CreateObject','IsSOAPRequest','Sin','CreateODBCDate','IsStruct','SpanExcluding', | |||
'CreateODBCDateTime','IsUserInRole','SpanIncluding','CreateODBCTime','IsValid','Sqr','CreateTime','IsWDDX','StripCR', | |||
'CreateTimeSpan','IsXML','StructAppend','CreateUUID','IsXmlAttribute','StructClear','DateAdd','IsXmlDoc','StructCopy', | |||
'DateCompare','IsXmlElem','StructCount','DateConvert','IsXmlNode','StructDelete','DateDiff','IsXmlRoot','StructFind', | |||
'DateFormat','JavaCast','StructFindKey','DatePart','JSStringFormat','StructFindValue','Day','LCase','StructGet', | |||
'DayOfWeek','Left','StructInsert','DayOfWeekAsString','Len','StructIsEmpty','DayOfYear','ListAppend','StructKeyArray', | |||
'DaysInMonth','ListChangeDelims','StructKeyExists','DaysInYear','ListContains','StructKeyList','DE','ListContainsNoCase', | |||
'StructNew','DecimalFormat','ListDeleteAt','StructSort','DecrementValue','ListFind','StructUpdate','Decrypt','ListFindNoCase', | |||
'Tan','DecryptBinary','ListFirst','TimeFormat','DeleteClientVariable','ListGetAt','ToBase64','DirectoryExists', | |||
'ListInsertAt','ToBinary','DollarFormat','ListLast','ToScript','Duplicate','ListLen','ToString','Encrypt','ListPrepend', | |||
'Trim','EncryptBinary','ListQualify','UCase','Evaluate','ListRest','URLDecode','Exp','ListSetAt','URLEncodedFormat', | |||
'ExpandPath','ListSort','URLSessionFormat','FileExists','ListToArray','Val','Find','ListValueCount','ValueList', | |||
'FindNoCase','ListValueCountNoCase','Week','FindOneOf','LJustify','Wrap','FirstDayOfMonth','Log','WriteOutput', | |||
'Fix','Log10','XmlChildPos','FormatBaseN','LSCurrencyFormat','XmlElemNew','GetAuthUser','LSDateFormat','XmlFormat', | |||
'GetBaseTagData','LSEuroCurrencyFormat','XmlGetNodeType','GetBaseTagList','LSIsCurrency','XmlNew','GetBaseTemplatePath', | |||
'LSIsDate','XmlParse','GetClientVariablesList','LSIsNumeric','XmlSearch','GetCurrentTemplatePath','LSNumberFormat', | |||
'XmlTransform','GetDirectoryFromPath','LSParseCurrency','XmlValidate','GetEncoding','LSParseDateTime','Year', | |||
'GetException','LSParseEuroCurrency','YesNoFormat','GetFileFromPath','LSParseNumber' | |||
), | |||
/* CFM Attributes */ | |||
6 => array( | |||
'dbtype','connectstring','datasource','username','password','query','delimeter','description','required','hint','default','access','from','to','list','index' | |||
), | |||
7 => array( | |||
'EQ', 'GT', 'LT', 'GTE', 'LTE', 'IS', 'LIKE', 'NEQ' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'/', '=', '{', '}', '(', ')', '[', ']', '<', '>', '&' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
4 => false, | |||
5 => false, | |||
6 => false, | |||
7 => false | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #990000; font-weight: bold;', | |||
2 => 'color: #000000; font-weight: bold;', | |||
3 => 'color: #0000FF;', | |||
4 => 'color: #000000; font-weight: bold;', | |||
5 => 'color: #0000FF;', | |||
6 => 'color: #0000FF;', | |||
7 => 'color: #0000FF;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #808080; font-style: italic;', | |||
'MULTI' => 'color: #808080; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #0000FF;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #009900;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #FF0000;' | |||
), | |||
'METHODS' => array( | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #0000FF;' | |||
), | |||
'SCRIPT' => array( | |||
0 => 'color: #808080; font-style: italic;', | |||
1 => 'color: #00bbdd;', | |||
2 => 'color: #0000FF;', | |||
3 => 'color: #000099;', | |||
4 => 'color: #333333;', | |||
5 => 'color: #333333;' | |||
), | |||
'REGEXPS' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => 'http://december.com/html/4/element/{FNAMEL}.html', | |||
3 => '', | |||
4 => '', | |||
5 => '', | |||
6 => '', | |||
7 => '' | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_ALWAYS, | |||
'SCRIPT_DELIMITERS' => array( | |||
0 => array( | |||
'<!--' => '-->' | |||
), | |||
1 => array( | |||
'<!DOCTYPE' => '>' | |||
), | |||
2 => "/(?!<#)(?:(?:##)*)(#)[a-zA-Z0-9_\.\(\)]+(#)/", | |||
3 => array( | |||
'<cfscript>' => '</cfscript>' | |||
), | |||
4 => array( | |||
'<' => '>' | |||
), | |||
5 => '/((?!<!)<)(?:"[^"]*"|\'[^\']*\'|(?R)|[^">])+?(>)/si' | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
0 => false, | |||
1 => false, | |||
2 => true, | |||
3 => true, | |||
4 => true, | |||
5 => true | |||
), | |||
'PARSER_CONTROL' => array( | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'DISALLOWED_BEFORE' => '(?<=<|<\/)', | |||
'DISALLOWED_AFTER' => '(?=\s|\/|>)', | |||
), | |||
2 => array( | |||
'DISALLOWED_BEFORE' => '(?<=<|<\/)', | |||
'DISALLOWED_AFTER' => '(?=\s|\/|>)', | |||
), | |||
3 => array( | |||
'DISALLOWED_BEFORE' => '(?<![a-zA-Z0-9\$_\|\#>|^])', // allow ; before keywords | |||
'DISALLOWED_AFTER' => '(?![a-zA-Z0-9_\|%\\-])', // allow & after keywords | |||
), | |||
7 => array( | |||
'DISALLOWED_BEFORE' => '(?<![a-zA-Z0-9\$_\|\#>&|^])', // allow ; before keywords | |||
'DISALLOWED_AFTER' => '(?![a-zA-Z0-9_\|%\\-])', // allow & after keywords | |||
) | |||
) | |||
) | |||
); | |||
?> |
@@ -0,0 +1,140 @@ | |||
<?php | |||
/************************************************************************************* | |||
* chaiscript.php | |||
* -------------- | |||
* Author: Jason Turner & Jonathan Turner | |||
* Copyright: (c) 2010 Jason Turner (lefticus@gmail.com), | |||
* (c) 2009 Jonathan Turner, | |||
* (c) 2004 Ben Keen (ben.keen@gmail.com), Benny Baumann (http://qbnz.com/highlighter) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2009/07/03 | |||
* | |||
* ChaiScript language file for GeSHi. | |||
* | |||
* Based on JavaScript by Ben Keen (ben.keen@gmail.com) | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2010/03/30 (1.0.8.8) | |||
* - Updated to include more language features | |||
* - Removed left over pieces from JavaScript | |||
* 2009/07/03 (1.0.0) | |||
* - First Release | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'ChaiScript', | |||
'COMMENT_SINGLE' => array(1 => '//'), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
//Regular Expressions | |||
'COMMENT_REGEXP' => array(2 => "/(?<=[\\s^])s\\/(?:\\\\.|(?!\n)[^\\/\\\\])+\\/(?:\\\\.|(?!\n)[^\\/\\\\])+\\/[gimsu]*(?=[\\s$\\.\\;])|(?<=[\\s^(=])m?\\/(?:\\\\.|(?!\n)[^\\/\\\\])+\\/[gimsu]*(?=[\\s$\\.\\,\\;\\)])/iU"), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'ESCAPE_CHAR' => '\\', | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'break', 'else', 'else if', 'eval', 'for', 'if', 'return', 'while', 'try', 'catch', 'finally', | |||
), | |||
2 => array( | |||
'def', 'false', 'fun', 'true', 'var', 'attr', | |||
), | |||
3 => array( | |||
// built in functions | |||
'throw', | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'(', ')', '[', ']', '{', '}', | |||
'+', '-', '*', '/', '%', | |||
'!', '@', '&', '|', '^', | |||
'<', '>', '=', | |||
',', ';', '?', ':' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #000066; font-weight: bold;', | |||
2 => 'color: #003366; font-weight: bold;', | |||
3 => 'color: #000066;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #006600; font-style: italic;', | |||
2 => 'color: #009966; font-style: italic;', | |||
'MULTI' => 'color: #006600; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #009900;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #3366CC;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #CC0000;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #660066;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #339933;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
0 => '', | |||
1 => '', | |||
2 => '', | |||
3 => '' | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '' | |||
), | |||
'OOLANG' => true, | |||
'OBJECT_SPLITTERS' => array( | |||
1 => '.' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_MAYBE, | |||
'SCRIPT_DELIMITERS' => array( | |||
0 => array( | |||
), | |||
1 => array( | |||
) | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
0 => true, | |||
1 => true | |||
) | |||
); | |||
?> |
@@ -0,0 +1,196 @@ | |||
<?php | |||
/************************************************************************************* | |||
* cil.php | |||
* -------- | |||
* Author: Marcus Griep (neoeinstein+GeSHi@gmail.com) | |||
* Copyright: (c) 2007 Marcus Griep (http://www.xpdm.us) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2007/10/24 | |||
* | |||
* CIL (Common Intermediate Language) language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2004/10/24 (1.0.8) | |||
* - First Release | |||
* | |||
* TODO (updated 2007/10/24) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'CIL', | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'COMMENT_SINGLE' => array('//'), | |||
'COMMENT_MULTI' => array(), | |||
'QUOTEMARKS' => array('"'), | |||
'ESCAPE_CHAR' => '\\', | |||
'KEYWORDS' => array( | |||
1 => array(//Dotted | |||
'.zeroinit', '.vtfixup', '.vtentry', '.vtable', '.ver', '.try', '.subsystem', '.size', '.set', '.removeon', | |||
'.publickeytoken', '.publickey', '.property', '.permissionset', '.permission', '.pdirect', '.param', '.pack', | |||
'.override', '.other', '.namespace', '.mresource', '.module', '.method', '.maxstack', '.manifestres', '.locals', | |||
'.localized', '.locale', '.line', '.language', '.import', '.imagebase', '.hash', '.get', '.fire', '.file', '.field', | |||
'.export', '.event', '.entrypoint', '.emitbyte', '.data', '.custom', '.culture', '.ctor', '.corflags', '.class', | |||
'.cctor', '.assembly', '.addon' | |||
), | |||
2 => array(//Attributes | |||
'wrapper', 'with', 'winapi', 'virtual', 'vector', 'vararg', 'value', 'userdefined', 'unused', 'unmanagedexp', | |||
'unmanaged', 'unicode', 'to', 'tls', 'thiscall', 'synchronized', 'struct', 'strict', 'storage', 'stdcall', | |||
'static', 'specialname', 'special', 'serializable', 'sequential', 'sealed', 'runtime', 'rtspecialname', 'request', | |||
'reqsecobj', 'reqrefuse', 'reqopt', 'reqmin', 'record', 'public', 'privatescope', 'private', 'preservesig', | |||
'prejitgrant', 'prejitdeny', 'platformapi', 'pinvokeimpl', 'pinned', 'permitonly', 'out', 'optil', 'opt', | |||
'notserialized', 'notremotable', 'not_in_gc_heap', 'noprocess', 'noncaslinkdemand', 'noncasinheritance', | |||
'noncasdemand', 'nometadata', 'nomangle', 'nomachine', 'noinlining', 'noappdomain', 'newslot', 'nested', 'native', | |||
'modreq', 'modopt', 'marshal', 'managed', 'literal', 'linkcheck', 'lcid', 'lasterr', 'internalcall', 'interface', | |||
'instance', 'initonly', 'init', 'inheritcheck', 'in', 'import', 'implicitres', 'implicitcom', 'implements', | |||
'illegal', 'il', 'hidebysig', 'handler', 'fromunmanaged', 'forwardref', 'fixed', 'finally', 'final', 'filter', | |||
'filetime', 'field', 'fault', 'fastcall', 'famorassem', 'family', 'famandassem', 'extern', 'extends', 'explicit', | |||
'error', 'enum', 'endmac', 'deny', 'demand', 'default', 'custom', 'compilercontrolled', 'clsid', 'class', 'cil', | |||
'cf', 'cdecl', 'catch', 'beforefieldinit', 'autochar', 'auto', 'at', 'assert', 'assembly', 'as', 'any', 'ansi', | |||
'alignment', 'algorithm', 'abstract' | |||
), | |||
3 => array(//Types | |||
'wchar', 'void', 'variant', 'unsigned', 'valuetype', 'typedref', 'tbstr', 'sysstring', 'syschar', 'string', | |||
'streamed_object', 'stream', 'stored_object', 'safearray', 'objectref', 'object', 'nullref', 'method', 'lpwstr', | |||
'lpvoid', 'lptstr', 'lpstruct', 'lpstr', 'iunknown', 'int64', 'int32', 'int16', 'int8', 'int', 'idispatch', | |||
'hresult', 'float64', 'float32', 'float', 'decimal', 'date', 'currency', 'char', 'carray', 'byvalstr', | |||
'bytearray', 'boxed', 'bool', 'blob_object', 'blob', 'array' | |||
), | |||
4 => array(//Prefix | |||
'volatile', 'unaligned', 'tail', 'readonly', 'no', 'constrained' | |||
), | |||
5 => array(//Suffix | |||
'un', 'u8', 'u4', 'u2', 'u1', 'u', 's', 'ref', 'r8', 'r4', 'm1', 'i8', 'i4', 'i2', 'i1', 'i'#, '.8', '.7', '.6', '.5', '.4', '.3', '.2', '.1', '.0' | |||
), | |||
6 => array(//Base | |||
'xor', 'switch', 'sub', 'stloc', | |||
'stind', 'starg', | |||
'shr', 'shl', 'ret', 'rem', 'pop', 'or', 'not', 'nop', 'neg', 'mul', | |||
'localloc', 'leave', 'ldnull', 'ldloca', | |||
'ldloc', 'ldind', 'ldftn', 'ldc', 'ldarga', | |||
'ldarg', 'jmp', 'initblk', 'endfinally', 'endfilter', | |||
'endfault', 'dup', 'div', 'cpblk', 'conv', 'clt', 'ckfinite', 'cgt', 'ceq', 'calli', | |||
'call', 'brzero', 'brtrue', 'brnull', 'brinst', | |||
'brfalse', 'break', 'br', 'bne', 'blt', 'ble', 'bgt', 'bge', 'beq', 'arglist', | |||
'and', 'add' | |||
), | |||
7 => array(//Object | |||
'unbox.any', 'unbox', 'throw', 'stsfld', 'stobj', 'stfld', 'stelem', 'sizeof', 'rethrow', 'refanyval', 'refanytype', 'newobj', | |||
'newarr', 'mkrefany', 'ldvirtftn', 'ldtoken', 'ldstr', 'ldsflda', 'ldsfld', 'ldobj', 'ldlen', 'ldflda', 'ldfld', | |||
'ldelema', 'ldelem', 'isinst', 'initobj', 'cpobj', 'castclass', | |||
'callvirt', 'callmostderived', 'box' | |||
), | |||
8 => array(//Other | |||
'prefixref', 'prefix7', 'prefix6', 'prefix5', 'prefix4', 'prefix3', 'prefix2', 'prefix1', 'prefix0' | |||
), | |||
9 => array(//Literal | |||
'true', 'null', 'false' | |||
), | |||
10 => array(//Comment-like | |||
'#line', '^THE_END^' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'(', ')', '[', ']', '{', '}', '!', '!!' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => true, | |||
2 => true, | |||
3 => true, | |||
4 => true, | |||
5 => true, | |||
6 => true, | |||
7 => true, | |||
8 => true, | |||
9 => true, | |||
10 => true | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color:maroon;font-weight:bold;', | |||
2 => 'color:blue;font-weight:bold;', | |||
3 => 'color:purple;font-weight:bold;', | |||
4 => 'color:teal;', | |||
5 => 'color:blue;', | |||
6 => 'color:blue;', | |||
7 => 'color:blue;', | |||
8 => 'color:blue;', | |||
9 => 'color:00008B', | |||
10 => 'color:gray' | |||
), | |||
'COMMENTS' => array( | |||
0 => 'color:gray;font-style:italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #008000; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #006400;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #008000;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #00008B;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #000033;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #006400;' | |||
), | |||
'REGEXPS' => array( | |||
0 => 'color:blue;' | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '', | |||
4 => '', | |||
5 => '', | |||
6 => '', | |||
7 => '', | |||
8 => '', | |||
9 => '', | |||
10 => '' | |||
), | |||
'OOLANG' => true, | |||
'OBJECT_SPLITTERS' => array( | |||
1 => '::' | |||
), | |||
'REGEXPS' => array( | |||
0 => '(?<=ldc\\.i4\\.)[0-8]|(?<=(?:ldarg|ldloc|stloc)\\.)[0-3]' # Pickup the opcodes that end with integers | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 4 | |||
); | |||
?> |
@@ -0,0 +1,134 @@ | |||
<?php | |||
/************************************************************************************* | |||
* clojure.php | |||
* -------- | |||
* Author: Jess Johnson (jess@grok-code.com) | |||
* Copyright: (c) 2009 Jess Johnson (http://grok-code.com) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2009/09/20 | |||
* | |||
* Clojure language file for GeSHi. | |||
* | |||
* This file borrows significantly from the lisp language file for GeSHi | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2009/09/20 (1.0.8.6) | |||
* - First Release | |||
* | |||
* TODO (updated 2009/09/20) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'Clojure', | |||
'COMMENT_SINGLE' => array(1 => ';'), | |||
'COMMENT_MULTI' => array(';|' => '|;'), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"'), | |||
'ESCAPE_CHAR' => '\\', | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'defn', 'defn-', 'defmulti', 'defmethod', 'defmacro', 'deftest', | |||
'defstruct', 'def', 'defonce', 'let', 'letfn', 'do', 'cond', 'condp', | |||
'for', 'loop', 'recur', 'when', 'when-not', 'when-let', 'when-first', | |||
'if', 'if-let', 'if-not', 'doto', 'and', 'or','not','aget','aset', | |||
'dosync', 'doseq', 'dotimes', 'dorun', 'doall', | |||
'load', 'import', 'unimport', 'ns', 'in-ns', 'refer', 'print', | |||
'try', 'catch', 'finally', 'throw', 'fn', 'update-in', | |||
'with-open', 'with-local-vars', 'binding', | |||
'gen-class', 'gen-and-load-class', 'gen-and-save-class', | |||
'implement', 'proxy', 'lazy-cons', 'with-meta', | |||
'struct', 'struct-map', 'delay', 'locking', 'sync', 'time', 'apply', | |||
'remove', 'merge', 'interleave', 'interpose', 'distinct', | |||
'cons', 'concat', 'lazy-cat', 'cycle', 'rest', 'frest', 'drop', | |||
'drop-while', 'nthrest', 'take', 'take-while', 'take-nth', 'butlast', | |||
'reverse', 'sort', 'sort-by', 'split-at', 'partition', 'split-with', | |||
'first', 'ffirst', 'rfirst', 'zipmap', 'into', 'set', 'vec', | |||
'to-array-2d', 'not-empty', 'seq?', 'not-every?', 'every?', 'not-any?', | |||
'map', 'mapcat', 'vector?', 'list?', 'hash-map', 'reduce', 'filter', | |||
'vals', 'keys', 'rseq', 'subseq', 'rsubseq', 'count', 'empty?', | |||
'fnseq', 'repeatedly', 'iterate', 'drop-last', | |||
'repeat', 'replicate', 'range', 'into-array', | |||
'line-seq', 'resultset-seq', 're-seq', 're-find', 'tree-seq', 'file-seq', | |||
'iterator-seq', 'enumeration-seq', 'declare', 'xml-seq', | |||
'symbol?', 'string?', 'vector', 'conj', 'str', | |||
'pos?', 'neg?', 'zero?', 'nil?', 'inc', 'dec', 'format', | |||
'alter', 'commute', 'ref-set', 'floor', 'assoc', 'send', 'send-off' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'(', ')', '{', '}', '[', ']', '!', '%', '^', '&', '/','+','-','*','=','<','>',';','|', '.', '..', '->', | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => true, | |||
1 => false | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #b1b100;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #808080; font-style: italic;', | |||
'MULTI' => 'color: #808080; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #66cc66;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #ff0000;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #cc66cc;' | |||
), | |||
'METHODS' => array( | |||
0 => 'color: #555;', | |||
1 => 'color: #555;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #66cc66;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '' | |||
), | |||
'OOLANG' => true, | |||
'OBJECT_SPLITTERS' => array( | |||
'::', ':' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
) | |||
); | |||
?> |
@@ -0,0 +1,181 @@ | |||
<?php | |||
/************************************************************************************* | |||
* cmake.php | |||
* ------- | |||
* Author: Daniel Nelson (danieln@eng.utah.edu) | |||
* Copyright: (c) 2009 Daniel Nelson | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2009/04/06 | |||
* | |||
* CMake language file for GeSHi. | |||
* | |||
* Keyword list generated using CMake 2.6.3. | |||
* | |||
* CHANGES | |||
* ------- | |||
* <date-of-release> (<GeSHi release>) | |||
* - First Release | |||
* | |||
* TODO (updated <date-of-release>) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'CMake', | |||
'COMMENT_SINGLE' => array(1 => '#'), | |||
'COMMENT_MULTI' => array(), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"'), | |||
'ESCAPE_CHAR' => '\\', | |||
'ESCAPE_REGEXP' => array( | |||
// Quoted variables ${...} | |||
1 => "/\\$(ENV)?\\{[^\\n\\}]*?\\}/i", | |||
// Quoted registry keys [...] | |||
2 => "/\\[HKEY[^\n\\]]*?]/i" | |||
), | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'add_custom_command', 'add_custom_target', 'add_definitions', | |||
'add_dependencies', 'add_executable', 'add_library', | |||
'add_subdirectory', 'add_test', 'aux_source_directory', 'break', | |||
'build_command', 'cmake_minimum_required', 'cmake_policy', | |||
'configure_file', 'create_test_sourcelist', 'define_property', | |||
'else', 'elseif', 'enable_language', 'enable_testing', | |||
'endforeach', 'endfunction', 'endif', 'endmacro', | |||
'endwhile', 'execute_process', 'export', 'file', 'find_file', | |||
'find_library', 'find_package', 'find_path', 'find_program', | |||
'fltk_wrap_ui', 'foreach', 'function', 'get_cmake_property', | |||
'get_directory_property', 'get_filename_component', 'get_property', | |||
'get_source_file_property', 'get_target_property', | |||
'get_test_property', 'if', 'include', 'include_directories', | |||
'include_external_msproject', 'include_regular_expression', | |||
'install', 'link_directories', 'list', 'load_cache', | |||
'load_command', 'macro', 'mark_as_advanced', 'math', 'message', | |||
'option', 'output_required_files', 'project', 'qt_wrap_cpp', | |||
'qt_wrap_ui', 'remove_definitions', 'return', 'separate_arguments', | |||
'set', 'set_directory_properties', 'set_property', | |||
'set_source_files_properties', 'set_target_properties', | |||
'set_tests_properties', 'site_name', 'source_group', 'string', | |||
'target_link_libraries', 'try_compile', 'try_run', 'unset', | |||
'variable_watch', 'while' | |||
), | |||
2 => array( | |||
// Deprecated commands | |||
'build_name', 'exec_program', 'export_library_dependencies', | |||
'install_files', 'install_programs', 'install_targets', | |||
'link_libraries', 'make_directory', 'remove', 'subdir_depends', | |||
'subdirs', 'use_mangled_mesa', 'utility_source', | |||
'variable_requires', 'write_file' | |||
), | |||
3 => array( | |||
// Special command arguments, this list is not comprehesive. | |||
'AND', 'APPEND', 'ASCII', 'BOOL', 'CACHE', 'COMMAND', 'COMMENT', | |||
'COMPARE', 'CONFIGURE', 'DEFINED', 'DEPENDS', 'DIRECTORY', | |||
'EQUAL', 'EXCLUDE_FROM_ALL', 'EXISTS', 'FALSE', 'FATAL_ERROR', | |||
'FILEPATH', 'FIND', 'FORCE', 'GET', 'GLOBAL', 'GREATER', | |||
'IMPLICIT_DEPENDS', 'INSERT', 'INTERNAL', 'IS_ABSOLUTE', | |||
'IS_DIRECTORY', 'IS_NEWER_THAN', 'LENGTH', 'LESS', | |||
'MAIN_DEPENDENCY', 'MATCH', 'MATCHALL', 'MATCHES', 'MODULE', 'NOT', | |||
'NOTFOUND', 'OFF', 'ON', 'OR', 'OUTPUT', 'PARENT_SCOPE', 'PATH', | |||
'POLICY', 'POST_BUILD', 'PRE_BUILD', 'PRE_LINK', 'PROPERTY', | |||
'RANDOM', 'REGEX', 'REMOVE_AT', 'REMOVE_DUPLICATES', 'REMOVE_ITEM', | |||
'REPLACE', 'REVERSE', 'SEND_ERROR', 'SHARED', 'SORT', 'SOURCE', | |||
'STATIC', 'STATUS', 'STREQUAL', 'STRGREATER', 'STRING', 'STRIP', | |||
'STRLESS', 'SUBSTRING', 'TARGET', 'TEST', 'TOLOWER', 'TOUPPER', | |||
'TRUE', 'VERBATIM', 'VERSION', 'VERSION_EQUAL', 'VERSION_GREATOR', | |||
'VERSION_LESS', 'WORKING_DIRECTORY', | |||
) | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => true | |||
), | |||
'SYMBOLS' => array( | |||
0 => array('(', ')') | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #1f3f81; font-style: bold;', | |||
2 => 'color: #1f3f81;', | |||
3 => 'color: #077807; font-sytle: italic;' | |||
), | |||
'BRACKETS' => array(), | |||
'COMMENTS' => array( | |||
1 => 'color: #666666; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;', | |||
1 => 'color: #b08000;', | |||
2 => 'color: #0000cd;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #912f11;', | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #197d8b;' | |||
), | |||
'NUMBERS' => array(), | |||
'METHODS' => array(), | |||
'REGEXPS' => array( | |||
0 => 'color: #b08000;', | |||
1 => 'color: #0000cd;' | |||
), | |||
'SCRIPT' => array() | |||
), | |||
'URLS' => array( | |||
1 => 'http://www.cmake.org/cmake/help/cmake2.6docs.html#command:{FNAMEL}', | |||
2 => 'http://www.cmake.org/cmake/help/cmake2.6docs.html#command:{FNAMEL}', | |||
3 => '', | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array(), | |||
'REGEXPS' => array( | |||
// Unquoted variables | |||
0 => "\\$(ENV)?\\{[^\\n}]*?\\}", | |||
// Unquoted registry keys | |||
1 => "\\[HKEY[^\n\\]]*?]" | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array(), | |||
'HIGHLIGHT_STRICT_BLOCK' => array(), | |||
'TAB_WIDTH' => 4, | |||
'PARSER_CONTROL' => array( | |||
'KEYWORDS' => array( | |||
// These keywords cannot come after a open paren | |||
1 => array( | |||
'DISALLOWED_AFTER' => '(?= *\()' | |||
), | |||
2 => array( | |||
'DISALLOWED_AFTER' => '(?= *\()' | |||
) | |||
), | |||
'ENABLE_FLAGS' => array( | |||
'BRACKETS' => GESHI_NEVER, | |||
'METHODS' => GESHI_NEVER, | |||
'NUMBERS' => GESHI_NEVER | |||
) | |||
) | |||
); | |||
?> |
@@ -0,0 +1,244 @@ | |||
<?php | |||
/************************************************************************************* | |||
* cobol.php | |||
* ---------- | |||
* Author: BenBE (BenBE@omorphia.org) | |||
* Copyright: (c) 2007-2008 BenBE (http://www.omorphia.de/) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2007/07/02 | |||
* | |||
* COBOL language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* | |||
* TODO (updated 2007/07/02) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'COBOL', | |||
'COMMENT_SINGLE' => array(), | |||
'COMMENT_MULTI' => array(), | |||
'COMMENT_REGEXP' => array(1 => '/^\*.*?$/m'), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"', "'"), | |||
'ESCAPE_CHAR' => '\\', | |||
'NUMBERS' => | |||
GESHI_NUMBER_INT_BASIC | | |||
GESHI_NUMBER_FLT_NONSCI | | |||
GESHI_NUMBER_FLT_SCI_SHORT | | |||
GESHI_NUMBER_FLT_SCI_ZERO, | |||
'KEYWORDS' => array( | |||
1 => array( //Compiler Directives | |||
'ANSI', 'BLANK', 'NOBLANK', 'CALL-SHARED', 'CANCEL', 'NOCANCEL', | |||
'CHECK', 'CODE', 'NOCODE', 'COLUMNS', 'COMPACT', 'NOCOMPACT', | |||
'COMPILE', 'CONSULT', 'NOCONSULT', 'CROSSREF', 'NOCROSSREF', | |||
'DIAGNOSE-74', 'NODIAGNOSE-74', 'DIAGNOSE-85', 'NODIAGNOSE-85', | |||
'DIAGNOSEALL', 'NODIAGNOSEALL', 'ENDIF', 'ENDUNIT', 'ENV', | |||
'ERRORFILE', 'ERRORS', 'FIPS', 'NOFIPS', 'FMAP', 'HEADING', 'HEAP', | |||
'HIGHPIN', 'HIGHREQUESTERS', 'ICODE', 'NOICODE', 'IF', 'IFNOT', | |||
'INNERLIST', 'NOINNERLIST', 'INSPECT', 'NOINSPECT', 'LARGEDATA', | |||
'LD', 'LESS-CODE', 'LIBRARY', 'LINES', 'LIST', 'NOLIST', 'LMAP', | |||
'NOLMAP', 'MAIN', 'MAP', 'NOMAP', 'NLD', 'NONSTOP', 'NON-SHARED', | |||
'OPTIMIZE', 'PERFORM-TRACE', 'PORT', 'NOPORT', 'RESETTOG', | |||
'RUNNABLE', 'RUNNAMED', 'SAVE', 'SAVEABEND', 'NOSAVEABEND', | |||
'SEARCH', 'NOSEARCH', 'SECTION', 'SETTOG', 'SHARED', 'SHOWCOPY', | |||
'NOSHOWCOPY', 'SHOWFILE', 'NOSHOWFILE', 'SOURCE', 'SQL', 'NOSQL', | |||
'SQLMEM', 'SUBSET', 'SUBTYPE', 'SUPPRESS', 'NOSUPPRESS', 'SYMBOLS', | |||
'NOSYMBOLS', 'SYNTAX', 'TANDEM', 'TRAP2', 'NOTRAP2', 'TRAP2-74', | |||
'NOTRAP2-74', 'UL', 'WARN', 'NOWARN' | |||
), | |||
2 => array( //Statement Keywords | |||
'ACCEPT', 'ADD', 'TO', 'GIVING', 'CORRESPONDING', 'ALTER', 'CALL', | |||
'CHECKPOINT', 'CLOSE', 'COMPUTE', 'CONTINUE', 'COPY', | |||
'DELETE', 'DISPLAY', 'DIVIDE', 'INTO', 'REMAINDER', 'ENTER', | |||
'COBOL', 'EVALUATE', 'EXIT', 'GO', 'INITIALIZE', | |||
'TALLYING', 'REPLACING', 'CONVERTING', 'LOCKFILE', 'MERGE', 'MOVE', | |||
'MULTIPLY', 'OPEN', 'PERFORM', 'TIMES', | |||
'UNTIL', 'VARYING', 'RETURN', | |||
), | |||
3 => array( //Reserved in some contexts | |||
'ACCESS', 'ADDRESS', 'ADVANCING', 'AFTER', 'ALL', | |||
'ALPHABET', 'ALPHABETIC', 'ALPHABETIC-LOWER', 'ALPHABETIC-UPPER', | |||
'ALPHANUMERIC', 'ALPHANUMERIC-EDITED', 'ALSO', 'ALTERNATE', | |||
'AND', 'ANY', 'APPROXIMATE', 'AREA', 'AREAS', 'ASCENDING', 'ASSIGN', | |||
'AT', 'AUTHOR', 'BEFORE', 'BINARY', 'BLOCK', 'BOTTOM', 'BY', | |||
'CD', 'CF', 'CH', 'CHARACTER', 'CHARACTERS', | |||
'CHARACTER-SET', 'CLASS', 'CLOCK-UNITS', | |||
'CODE-SET', 'COLLATING', 'COLUMN', 'COMMA', | |||
'COMMON', 'COMMUNICATION', 'COMP', 'COMP-3', 'COMP-5', | |||
'COMPUTATIONAL', 'COMPUTATIONAL-3', 'COMPUTATIONAL-5', | |||
'CONFIGURATION', 'CONTAINS', 'CONTENT', 'CONTROL', | |||
'CONTROLS', 'CORR', 'COUNT', | |||
'CURRENCY', 'DATA', 'DATE', 'DATE-COMPILED', 'DATE-WRITTEN', 'DAY', | |||
'DAY-OF-WEEK', 'DE', 'DEBUG-CONTENTS', 'DEBUG-ITEM', 'DEBUG-LINE', | |||
'DEBUG-SUB-2', 'DEBUG-SUB-3', 'DEBUGGING', 'DECIMAL-POINT', | |||
'DECLARATIVES', 'DEBUG-NAME', 'DEBUG-SUB-1', 'DELIMITED', | |||
'DELIMITER', 'DEPENDING', 'DESCENDING', 'DESTINATION', 'DETAIL', | |||
'DISABLE', 'DIVISION', 'DOWN', 'DUPLICATES', | |||
'DYNAMIC', 'EGI', 'ELSE', 'EMI', 'ENABLE', 'END', 'END-ADD', | |||
'END-COMPUTE', 'END-DELETE', 'END-DIVIDE', 'END-EVALUATE', 'END-IF', | |||
'END-MULTIPLY', 'END-OF-PAGE', 'END-PERFORM', 'END-READ', | |||
'END-RECEIVE', 'END-RETURN', 'END-REWRITE', 'END-SEARCH', | |||
'END-START', 'END-STRING', 'END-SUBTRACT', 'END-UNSTRING', | |||
'END-WRITE', 'EOP', 'EQUAL', 'ERROR', 'ESI', | |||
'EVERY', 'EXCEPTION', 'EXCLUSIVE', 'EXTEND', | |||
'EXTENDED-STORAGE', 'EXTERNAL', 'FALSE', 'FD', 'FILE', | |||
'FILE-CONTROL', 'FILLER', 'FINAL', 'FIRST', 'FOOTING', 'FOR', | |||
'FROM', 'FUNCTION', 'GENERATE', 'GENERIC', 'GLOBAL', | |||
'GREATER', 'GROUP', 'GUARDIAN-ERR', 'HIGH-VALUE', | |||
'HIGH-VALUES', 'I-O', 'I-O-CONTROL', 'IDENTIFICATION', 'IN', | |||
'INDEX', 'INDEXED', 'INDICATE', 'INITIAL', 'INITIATE', | |||
'INPUT', 'INPUT-OUTPUT', 'INSTALLATION', | |||
'INVALID', 'IS', 'JUST', 'JUSTIFIED', 'KEY', 'LABEL', 'LAST', | |||
'LEADING', 'LEFT', 'LESS', 'LIMIT', 'LIMITS', 'LINAGE', | |||
'LINAGE-COUNTER', 'LINE', 'LINE-COUNTER', 'LINKAGE', 'LOCK', | |||
'LOW-VALUE', 'LOW-VALUES', 'MEMORY', 'MESSAGE', | |||
'MODE', 'MODULES', 'MULTIPLE', 'NATIVE', | |||
'NEGATIVE', 'NEXT', 'NO', 'NOT', 'NULL', 'NULLS', 'NUMBER', | |||
'NUMERIC', 'NUMERIC-EDITED', 'OBJECT-COMPUTER', 'OCCURS', 'OF', | |||
'OFF', 'OMITTED', 'ON', 'OPTIONAL', 'OR', 'ORDER', | |||
'ORGANIZATION', 'OTHER', 'OUTPUT', 'OVERFLOW', 'PACKED-DECIMAL', | |||
'PADDING', 'PAGE', 'PAGE-COUNTER', 'PF', 'PH', 'PIC', | |||
'PICTURE', 'PLUS', 'POINTER', 'POSITION', 'POSITIVE', 'PRINTING', | |||
'PROCEDURE', 'PROCEDURES', 'PROCEED', 'PROGRAM', 'PROGRAM-ID', | |||
'PROGRAM-STATUS', 'PROGRAM-STATUS-1', 'PROGRAM-STATUS-2', 'PROMPT', | |||
'PROTECTED', 'PURGE', 'QUEUE', 'QUOTE', 'QUOTES', 'RD', | |||
'RECEIVE', 'RECEIVE-CONTROL', 'RECORD', 'RECORDS', | |||
'REDEFINES', 'REEL', 'REFERENCE', 'REFERENCES', 'RELATIVE', | |||
'REMOVAL', 'RENAMES', 'REPLACE', | |||
'REPLY', 'REPORT', 'REPORTING', 'REPORTS', 'RERUN', | |||
'RESERVE', 'RESET', 'REVERSED', 'REWIND', 'REWRITE', 'RF', | |||
'RH', 'RIGHT', 'ROUNDED', 'RUN', 'SAME', 'SD', | |||
'SECURITY', 'SEGMENT', 'SEGMENT-LIMIT', 'SELECT', 'SEND', | |||
'SENTENCE', 'SEPARATE', 'SEQUENCE', 'SEQUENTIAL', 'SET', | |||
'SIGN', 'SIZE', 'SORT', 'SORT-MERGE', 'SOURCE-COMPUTER', | |||
'SPACE', 'SPACES', 'SPECIAL-NAMES', 'STANDARD', 'STANDARD-1', | |||
'STANDARD-2', 'START', 'STARTBACKUP', 'STATUS', 'STOP', 'STRING', | |||
'SUB-QUEUE-1', 'SUB-QUEUE-2', 'SUB-QUEUE-3', 'SUBTRACT', | |||
'SYMBOLIC', 'SYNC', 'SYNCDEPTH', 'SYNCHRONIZED', | |||
'TABLE', 'TAL', 'TAPE', 'TERMINAL', 'TERMINATE', 'TEST', | |||
'TEXT', 'THAN', 'THEN', 'THROUGH', 'THRU', 'TIME', | |||
'TOP', 'TRAILING', 'TRUE', 'TYPE', 'UNIT', 'UNLOCK', 'UNLOCKFILE', | |||
'UNLOCKRECORD', 'UNSTRING', 'UP', 'UPON', 'USAGE', 'USE', | |||
'USING', 'VALUE', 'VALUES', 'WHEN', 'WITH', 'WORDS', | |||
'WORKING-STORAGE', 'WRITE', 'ZERO', 'ZEROES' | |||
), | |||
4 => array( //Standard functions | |||
'ACOS', 'ANNUITY', 'ASIN', 'ATAN', 'CHAR', 'COS', 'CURRENT-DATE', | |||
'DATE-OF-INTEGER', 'DAY-OF-INTEGER', 'FACTORIAL', 'INTEGER', | |||
'INTEGER-OF-DATE', 'INTEGER-OF-DAY', 'INTEGER-PART', 'LENGTH', | |||
'LOG', 'LOG10', 'LOWER-CASE', 'MAX', 'MEAN', 'MEDIAN', 'MIDRANGE', | |||
'MIN', 'MOD', 'NUMVAL', 'NUMVAL-C', 'ORD', 'ORD-MAX', 'ORD-MIN', | |||
'PRESENT-VALUE', 'RANDOM', 'RANGE', 'REM', 'REVERSE', 'SIN', 'SQRT', | |||
'STANDARD-DEVIATION', 'SUM', 'TAN', 'UPPER-CASE', 'VARIANCE', | |||
'WHEN-COMPILED' | |||
), | |||
5 => array( //Privileged Built-in Functions | |||
'#IN', '#OUT', '#TERM', '#TEMP', '#DYNAMIC', 'COBOL85^ARMTRAP', | |||
'COBOL85^COMPLETION', 'COBOL_COMPLETION_', 'COBOL_CONTROL_', | |||
'COBOL_GETENV_', 'COBOL_PUTENV_', 'COBOL85^RETURN^SORT^ERRORS', | |||
'COBOL_RETURN_SORT_ERRORS_', 'COBOL85^REWIND^SEQUENTIAL', | |||
'COBOL_REWIND_SEQUENTIAL_', 'COBOL85^SET^SORT^PARAM^TEXT', | |||
'COBOL_SET_SORT_PARAM_TEXT_', 'COBOL85^SET^SORT^PARAM^VALUE', | |||
'COBOL_SET_SORT_PARAM_VALUE_', 'COBOL_SET_MAX_RECORD_', | |||
'COBOL_SETMODE_', 'COBOL85^SPECIAL^OPEN', 'COBOL_SPECIAL_OPEN_', | |||
'COBOLASSIGN', 'COBOL_ASSIGN_', 'COBOLFILEINFO', 'COBOL_FILE_INFO_', | |||
'COBOLSPOOLOPEN', 'CREATEPROCESS', 'ALTERPARAMTEXT', | |||
'CHECKLOGICALNAME', 'CHECKMESSAGE', 'DELETEASSIGN', 'DELETEPARAM', | |||
'DELETESTARTUP', 'GETASSIGNTEXT', 'GETASSIGNVALUE', 'GETBACKUPCPU', | |||
'GETPARAMTEXT', 'GETSTARTUPTEXT', 'PUTASSIGNTEXT', 'PUTASSIGNVALUE', | |||
'PUTPARAMTEXT', 'PUTSTARTUPTEXT' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
//Avoid having - in identifiers marked as symbols | |||
' + ', ' - ', ' * ', ' / ', ' ** ', | |||
'.', ',', | |||
'=', | |||
'(', ')', '[', ']' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
4 => false, | |||
5 => false | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #000080; font-weight: bold;', | |||
2 => 'color: #000000; font-weight: bold;', | |||
3 => 'color: #008000; font-weight: bold;', | |||
4 => 'color: #000080;', | |||
5 => 'color: #008000;', | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #a0a0a0; font-style: italic;', | |||
'MULTI' => 'color: #a0a0a0; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #339933;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #ff0000;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #993399;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #202020;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #000066;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '', | |||
4 => '', | |||
5 => '' | |||
), | |||
'OOLANG' => false, | |||
'OBJECT_SPLITTERS' => array( | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 4 | |||
); | |||
?> |
@@ -0,0 +1,146 @@ | |||
<?php | |||
/************************************************************************************* | |||
* coffeescript.php | |||
* ---------- | |||
* Author: Trevor Burnham (trevorburnham@gmail.com) | |||
* Copyright: (c) 2010 Trevor Burnham (http://iterative.ly) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2010/06/08 | |||
* | |||
* CoffeeScript language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2010/06/08 (1.0.8.9) | |||
* - First Release | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'CoffeeScript', | |||
'COMMENT_SINGLE' => array(1 => '#'), | |||
'COMMENT_MULTI' => array('###' => '###'), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
//Longest quotemarks ALWAYS first | |||
'QUOTEMARKS' => array('"""', "'''", '"', "'"), | |||
'ESCAPE_CHAR' => '\\', | |||
'KEYWORDS' => array( | |||
/* | |||
** Set 1: control keywords | |||
*/ | |||
1 => array( | |||
'break', 'by', 'catch', 'continue', 'else', 'finally', 'for', 'in', 'of', 'if', | |||
'return', 'switch', 'then', 'throw', 'try', 'unless', 'when', 'while', 'until' | |||
), | |||
/* | |||
** Set 2: logic keywords | |||
*/ | |||
2 => array( | |||
'and', 'or', 'is', 'isnt', 'not' | |||
), | |||
/* | |||
** Set 3: other keywords | |||
*/ | |||
3 => array( | |||
'instanceof', 'new', 'delete', 'typeof', | |||
'class', 'super', 'this', 'extends' | |||
), | |||
/* | |||
** Set 4: constants | |||
*/ | |||
4 => array( | |||
'true', 'false', 'on', 'off', 'yes', 'no', | |||
'Infinity', 'NaN', 'undefined', 'null' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'(', ')', '[', ']', '{', '}', '*', '&', '|', '%', '!', ',', ';', '<', '>', '?', '`', | |||
'+', '-', '*', '/', '->', '=>', '<<', '>>', '@', ':', '^' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => true, | |||
2 => true, | |||
3 => true, | |||
4 => true | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #ff7700;font-weight:bold;', | |||
2 => 'color: #008000;', | |||
3 => 'color: #dc143c;', | |||
4 => 'color: #0000cd;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #808080; font-style: italic;', | |||
'MULTI' => 'color: #808080; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: black;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #483d8b;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #ff4500;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: black;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #66cc66;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '', | |||
4 => '' | |||
), | |||
'OOLANG' => true, | |||
'OBJECT_SPLITTERS' => array( | |||
1 => '.' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_MAYBE, | |||
'SCRIPT_DELIMITERS' => array( | |||
0 => array( | |||
'<script type="text/coffeescript">' => '</script>' | |||
) | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
0 => true | |||
) | |||
); | |||
?> |
@@ -0,0 +1,564 @@ | |||
<?php | |||
/************************************************************************************* | |||
* cpp.php | |||
* ------- | |||
* Author: Iulian M | |||
* Copyright: (c) 2006 Iulian M | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2004/09/27 | |||
* | |||
* C++ (with QT extensions) language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2009/06/28 (1.0.8.4) | |||
* - Updated list of Keywords from Qt 4.5 | |||
* | |||
* 2008/05/23 (1.0.7.22) | |||
* - Added description of extra language features (SF#1970248) | |||
* | |||
* TODO | |||
* ---- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'C++ (QT)', | |||
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
'COMMENT_REGEXP' => array( | |||
//Multiline-continued single-line comments | |||
1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m', | |||
//Multiline-continued preprocessor define | |||
2 => '/#(?:\\\\\\\\|\\\\\\n|.)*$/m' | |||
), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'ESCAPE_CHAR' => '', | |||
'ESCAPE_REGEXP' => array( | |||
//Simple Single Char Escapes | |||
1 => "#\\\\[abfnrtv\\\'\"?\n]#i", | |||
//Hexadecimal Char Specs | |||
2 => "#\\\\x[\da-fA-F]{2}#", | |||
//Hexadecimal Char Specs | |||
3 => "#\\\\u[\da-fA-F]{4}#", | |||
//Hexadecimal Char Specs | |||
4 => "#\\\\U[\da-fA-F]{8}#", | |||
//Octal Char Specs | |||
5 => "#\\\\[0-7]{1,3}#" | |||
), | |||
'NUMBERS' => | |||
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B | | |||
GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI | | |||
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO, | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'case', 'continue', 'default', 'do', 'else', 'for', 'goto', 'if', 'return', | |||
'switch', 'while', 'delete', 'new', 'this' | |||
), | |||
2 => array( | |||
'NULL', 'false', 'break', 'true', 'enum', 'errno', 'EDOM', | |||
'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG', | |||
'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG', | |||
'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP', | |||
'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP', | |||
'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN', | |||
'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN', | |||
'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT', | |||
'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR', | |||
'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam', | |||
'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr', | |||
'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC', | |||
'virtual', 'public', 'private', 'protected', 'template', 'using', 'namespace', | |||
'try', 'catch', 'inline', 'dynamic_cast', 'const_cast', 'reinterpret_cast', | |||
'static_cast', 'explicit', 'friend', 'typename', 'typeid', 'class' , | |||
'foreach','connect', 'Q_OBJECT' , 'slots' , 'signals', 'Q_SIGNALS', 'Q_SLOTS', | |||
'Q_FOREACH', 'QCOMPARE', 'QVERIFY', 'qDebug', 'kDebug', 'QBENCHMARK' | |||
), | |||
3 => array( | |||
'cin', 'cerr', 'clog', 'cout', | |||
'printf', 'fprintf', 'snprintf', 'sprintf', 'assert', | |||
'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint', | |||
'ispunct', 'isspace', 'isupper', 'isxdigit', 'tolower', 'toupper', | |||
'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp', | |||
'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2', | |||
'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp', | |||
'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen', | |||
'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf', | |||
'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf', | |||
'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc', | |||
'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind', | |||
'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs', | |||
'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc', | |||
'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv', | |||
'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat', | |||
'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn', | |||
'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy', | |||
'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime', | |||
'asctime', 'ctime', 'gmtime', 'localtime', 'strftime' | |||
), | |||
4 => array( | |||
'auto', 'bool', 'char', 'const', 'double', 'float', 'int', 'long', 'longint', | |||
'register', 'short', 'shortint', 'signed', 'static', 'struct', | |||
'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf', | |||
'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t', | |||
'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm', 'wchar_t', | |||
'int8', 'int16', 'int32', 'int64', | |||
'uint8', 'uint16', 'uint32', 'uint64', | |||
'int_fast8_t', 'int_fast16_t', 'int_fast32_t', 'int_fast64_t', | |||
'uint_fast8_t', 'uint_fast16_t', 'uint_fast32_t', 'uint_fast64_t', | |||
'int_least8_t', 'int_least16_t', 'int_least32_t', 'int_least64_t', | |||
'uint_least8_t', 'uint_least16_t', 'uint_least32_t', 'uint_least64_t', | |||
'int8_t', 'int16_t', 'int32_t', 'int64_t', | |||
'uint8_t', 'uint16_t', 'uint32_t', 'uint64_t', | |||
'intmax_t', 'uintmax_t', 'intptr_t', 'uintptr_t' | |||
), | |||
5 => array( | |||
"Q_UINT16", "Q_UINT32", "Q_UINT64", "Q_UINT8", "Q_ULLONG", | |||
"Q_ULONG", "Q3Accel", "Q3Action", "Q3ActionGroup", "Q3AsciiBucket", | |||
"Q3AsciiCache", "Q3AsciiCacheIterator", "Q3AsciiDict", | |||
"Q3AsciiDictIterator", "Q3BaseBucket", "Q3BoxLayout", "Q3Button", | |||
"Q3ButtonGroup", "Q3Cache", "Q3CacheIterator", "Q3Canvas", | |||
"Q3CanvasEllipse", "Q3CanvasItem", "Q3CanvasItemList", | |||
"Q3CanvasLine", "Q3CanvasPixmap", "Q3CanvasPixmapArray", | |||
"Q3CanvasPolygon", "Q3CanvasPolygonalItem", "Q3CanvasRectangle", | |||
"Q3CanvasSpline", "Q3CanvasSprite", "Q3CanvasText", "Q3CanvasView", | |||
"Q3CheckListItem", "Q3CheckTableItem", "Q3CleanupHandler", | |||
"Q3ColorDrag", "Q3ComboBox", "Q3ComboTableItem", "Q3CString", | |||
"Q3DataBrowser", "Q3DataTable", "Q3DataView", "Q3DateEdit", | |||
"Q3DateTimeEdit", "Q3DateTimeEditBase", "Q3DeepCopy", "Q3Dict", | |||
"Q3DictIterator", "Q3Dns", "Q3DnsSocket", "Q3DockArea", | |||
"Q3DockAreaLayout", "Q3DockWindow", "Q3DragObject", "Q3DropSite", | |||
"Q3EditorFactory", "Q3FileDialog", "Q3FileIconProvider", | |||
"Q3FilePreview", "Q3Frame", "Q3Ftp", "Q3GArray", "Q3GCache", | |||
"Q3GCacheIterator", "Q3GDict", "Q3GDictIterator", "Q3GList", | |||
"Q3GListIterator", "Q3GListStdIterator", "Q3Grid", "Q3GridLayout", | |||
"Q3GridView", "Q3GroupBox", "Q3GVector", "Q3HBox", "Q3HBoxLayout", | |||
"Q3HButtonGroup", "Q3Header", "Q3HGroupBox", "Q3Http", | |||
"Q3HttpHeader", "Q3HttpRequestHeader", "Q3HttpResponseHeader", | |||
"Q3IconDrag", "Q3IconDragItem", "Q3IconView", "Q3IconViewItem", | |||
"Q3ImageDrag", "Q3IntBucket", "Q3IntCache", "Q3IntCacheIterator", | |||
"Q3IntDict", "Q3IntDictIterator", "Q3ListBox", "Q3ListBoxItem", | |||
"Q3ListBoxPixmap", "Q3ListBoxText", "Q3ListView", "Q3ListViewItem", | |||
"Q3ListViewItemIterator", "Q3LNode", "Q3LocalFs", "Q3MainWindow", | |||
"Q3MemArray", "Q3MimeSourceFactory", "Q3MultiLineEdit", | |||
"Q3NetworkOperation", "Q3NetworkProtocol", "Q3NetworkProtocolDict", | |||
"Q3NetworkProtocolFactory", "Q3NetworkProtocolFactoryBase", | |||
"Q3ObjectDictionary", "Q3PaintDeviceMetrics", "Q3Painter", | |||
"Q3Picture", "Q3PointArray", "Q3PolygonScanner", "Q3PopupMenu", | |||
"Q3Process", "Q3ProgressBar", "Q3ProgressDialog", "Q3PtrBucket", | |||
"Q3PtrCollection", "Q3PtrDict", "Q3PtrDictIterator", "Q3PtrList", | |||
"Q3PtrListIterator", "Q3PtrListStdIterator", "Q3PtrQueue", | |||
"Q3PtrStack", "Q3PtrVector", "Q3RangeControl", "Q3ScrollView", | |||
"Q3Semaphore", "Q3ServerSocket", "Q3Shared", "Q3Signal", | |||
"Q3SimpleRichText", "Q3SingleCleanupHandler", "Q3Socket", | |||
"Q3SocketDevice", "Q3SortedList", "Q3SpinWidget", "Q3SqlCursor", | |||
"Q3SqlEditorFactory", "Q3SqlFieldInfo", "Q3SqlFieldInfoList", | |||
"Q3SqlForm", "Q3SqlPropertyMap", "Q3SqlRecordInfo", | |||
"Q3SqlSelectCursor", "Q3StoredDrag", "Q3StrIList", "Q3StringBucket", | |||
"Q3StrIVec", "Q3StrList", "Q3StrListIterator", "Q3StrVec", | |||
"Q3StyleSheet", "Q3StyleSheetItem", "Q3SyntaxHighlighter", | |||
"Q3TabDialog", "Q3Table", "Q3TableItem", "Q3TableSelection", | |||
"Q3TextBrowser", "Q3TextDrag", "Q3TextEdit", | |||
"Q3TextEditOptimPrivate", "Q3TextStream", "Q3TextView", | |||
"Q3TimeEdit", "Q3ToolBar", "Q3TSFUNC", "Q3UriDrag", "Q3Url", | |||
"Q3UrlOperator", "Q3ValueList", "Q3ValueListConstIterator", | |||
"Q3ValueListIterator", "Q3ValueStack", "Q3ValueVector", "Q3VBox", | |||
"Q3VBoxLayout", "Q3VButtonGroup", "Q3VGroupBox", "Q3WhatsThis", | |||
"Q3WidgetStack", "Q3Wizard", "QAbstractButton", | |||
"QAbstractEventDispatcher", "QAbstractExtensionFactory", | |||
"QAbstractExtensionManager", "QAbstractFileEngine", | |||
"QAbstractFileEngineHandler", "QAbstractFileEngineIterator", | |||
"QAbstractFormBuilder", "QAbstractGraphicsShapeItem", | |||
"QAbstractItemDelegate", "QAbstractItemModel", "QAbstractItemView", | |||
"QAbstractListModel", "QAbstractMessageHandler", | |||
"QAbstractNetworkCache", "QAbstractPageSetupDialog", | |||
"QAbstractPrintDialog", "QAbstractProxyModel", | |||
"QAbstractScrollArea", "QAbstractSlider", "QAbstractSocket", | |||
"QAbstractSpinBox", "QAbstractTableModel", | |||
"QAbstractTextDocumentLayout", "QAbstractUndoItem", | |||
"QAbstractUriResolver", "QAbstractXmlNodeModel", | |||
"QAbstractXmlReceiver", "QAccessible", "QAccessible2Interface", | |||
"QAccessibleApplication", "QAccessibleBridge", | |||
"QAccessibleBridgeFactoryInterface", "QAccessibleBridgePlugin", | |||
"QAccessibleEditableTextInterface", "QAccessibleEvent", | |||
"QAccessibleFactoryInterface", "QAccessibleInterface", | |||
"QAccessibleInterfaceEx", "QAccessibleObject", | |||
"QAccessibleObjectEx", "QAccessiblePlugin", | |||
"QAccessibleSimpleEditableTextInterface", | |||
"QAccessibleTableInterface", "QAccessibleTextInterface", | |||
"QAccessibleValueInterface", "QAccessibleWidget", | |||
"QAccessibleWidgetEx", "QAction", "QActionEvent", "QActionGroup", | |||
"QApplication", "QArgument", "QAssistantClient", "QAtomicInt", | |||
"QAtomicPointer", "QAuthenticator", "QBasicAtomicInt", | |||
"QBasicAtomicPointer", "QBasicTimer", "QBitArray", "QBitmap", | |||
"QBitRef", "QBool", "QBoxLayout", "QBrush", "QBrushData", "QBuffer", | |||
"QButtonGroup", "QByteArray", "QByteArrayMatcher", "QByteRef", | |||
"QCache", "QCalendarWidget", "QCDEStyle", "QChar", "QCharRef", | |||
"QCheckBox", "QChildEvent", "QCleanlooksStyle", "QClipboard", | |||
"QClipboardEvent", "QCloseEvent", "QColor", "QColorDialog", | |||
"QColorGroup", "QColormap", "QColumnView", "QComboBox", | |||
"QCommandLinkButton", "QCommonStyle", "QCompleter", | |||
"QConicalGradient", "QConstString", "QContextMenuEvent", "QCOORD", | |||
"QCoreApplication", "QCryptographicHash", "QCursor", "QCursorShape", | |||
"QCustomEvent", "QDataStream", "QDataWidgetMapper", "QDate", | |||
"QDateEdit", "QDateTime", "QDateTimeEdit", "QDB2Driver", | |||
"QDB2Result", "QDBusAbstractAdaptor", "QDBusAbstractInterface", | |||
"QDBusArgument", "QDBusConnection", "QDBusConnectionInterface", | |||
"QDBusContext", "QDBusError", "QDBusInterface", "QDBusMessage", | |||
"QDBusMetaType", "QDBusObjectPath", "QDBusPendingCall", | |||
"QDBusPendingCallWatcher", "QDBusPendingReply", | |||
"QDBusPendingReplyData", "QDBusReply", "QDBusServer", | |||
"QDBusSignature", "QDBusVariant", "QDebug", | |||
"QDesignerActionEditorInterface", "QDesignerBrushManagerInterface", | |||
"QDesignerComponents", "QDesignerContainerExtension", | |||
"QDesignerCustomWidgetCollectionInterface", | |||
"QDesignerCustomWidgetInterface", "QDesignerDnDItemInterface", | |||
"QDesignerDynamicPropertySheetExtension", "QDesignerExportWidget", | |||
"QDesignerExtraInfoExtension", "QDesignerFormEditorInterface", | |||
"QDesignerFormEditorPluginInterface", "QDesignerFormWindowCursorInterface", | |||
"QDesignerFormWindowInterface", "QDesignerFormWindowManagerInterface", | |||
"QDesignerFormWindowToolInterface", | |||
"QDesignerIconCacheInterface", "QDesignerIntegrationInterface", | |||
"QDesignerLanguageExtension", "QDesignerLayoutDecorationExtension", | |||
"QDesignerMemberSheetExtension", "QDesignerMetaDataBaseInterface", | |||
"QDesignerMetaDataBaseItemInterface", | |||
"QDesignerObjectInspectorInterface", "QDesignerPromotionInterface", | |||
"QDesignerPropertyEditorInterface", | |||
"QDesignerPropertySheetExtension", "QDesignerResourceBrowserInterface", | |||
"QDesignerTaskMenuExtension", "QDesignerWidgetBoxInterface", | |||
"QDesignerWidgetDataBaseInterface", "QDesignerWidgetDataBaseItemInterface", | |||
"QDesignerWidgetFactoryInterface", "QDesktopServices", | |||
"QDesktopWidget", "QDial", "QDialog", "QDialogButtonBox", "QDir", | |||
"QDirIterator", "QDirModel", "QDockWidget", "QDomAttr", | |||
"QDomCDATASection", "QDomCharacterData", "QDomComment", | |||
"QDomDocument", "QDomDocumentFragment", "QDomDocumentType", | |||
"QDomElement", "QDomEntity", "QDomEntityReference", | |||
"QDomImplementation", "QDomNamedNodeMap", "QDomNode", | |||
"QDomNodeList", "QDomNotation", "QDomProcessingInstruction", | |||
"QDomText", "QDoubleSpinBox", "QDoubleValidator", "QDrag", | |||
"QDragEnterEvent", "QDragLeaveEvent", "QDragMoveEvent", | |||
"QDragResponseEvent", "QDropEvent", "QDynamicPropertyChangeEvent", | |||
"QErrorMessage", "QEvent", "QEventLoop", "QEventSizeOfChecker", | |||
"QExplicitlySharedDataPointer", "QExtensionFactory", | |||
"QExtensionManager", "QFactoryInterface", "QFile", "QFileDialog", | |||
"QFileIconProvider", "QFileInfo", "QFileInfoList", | |||
"QFileInfoListIterator", "QFileOpenEvent", "QFileSystemModel", | |||
"QFileSystemWatcher", "QFlag", "QFlags", "QFocusEvent", | |||
"QFocusFrame", "QFont", "QFontComboBox", "QFontDatabase", | |||
"QFontDialog", "QFontInfo", "QFontMetrics", "QFontMetricsF", | |||
"QForeachContainer", "QForeachContainerBase", "QFormBuilder", | |||
"QFormLayout", "QFrame", "QFSFileEngine", "QFtp", "QFuture", | |||
"QFutureInterface", "QFutureInterfaceBase", "QFutureIterator", | |||
"QFutureSynchronizer", "QFutureWatcher", "QFutureWatcherBase", | |||
"QGenericArgument", "QGenericReturnArgument", "QGLColormap", | |||
"QGLContext", "QGLFormat", "QGLFramebufferObject", "QGlobalStatic", | |||
"QGlobalStaticDeleter", "QGLPixelBuffer", "QGLWidget", "QGradient", | |||
"QGradientStop", "QGradientStops", "QGraphicsEllipseItem", | |||
"QGraphicsGridLayout", "QGraphicsItem", "QGraphicsItemAnimation", | |||
"QGraphicsItemGroup", "QGraphicsLayout", "QGraphicsLayoutItem", | |||
"QGraphicsLinearLayout", "QGraphicsLineItem", "QGraphicsPathItem", | |||
"QGraphicsPixmapItem", "QGraphicsPolygonItem", | |||
"QGraphicsProxyWidget", "QGraphicsRectItem", "QGraphicsScene", | |||
"QGraphicsSceneContextMenuEvent", "QGraphicsSceneDragDropEvent", | |||
"QGraphicsSceneEvent", "QGraphicsSceneHelpEvent", | |||
"QGraphicsSceneHoverEvent", "QGraphicsSceneMouseEvent", | |||
"QGraphicsSceneMoveEvent", "QGraphicsSceneResizeEvent", | |||
"QGraphicsSceneWheelEvent", "QGraphicsSimpleTextItem", | |||
"QGraphicsSvgItem", "QGraphicsTextItem", "QGraphicsView", | |||
"QGraphicsWidget", "QGridLayout", "QGroupBox", "QGtkStyle", "QHash", | |||
"QHashData", "QHashDummyNode", "QHashDummyValue", "QHashIterator", | |||
"QHashNode", "QHBoxLayout", "QHeaderView", "QHelpContentItem", | |||
"QHelpContentModel", "QHelpContentWidget", "QHelpEngine", | |||
"QHelpEngineCore", "QHelpEvent", "QHelpGlobal", "QHelpIndexModel", | |||
"QHelpIndexWidget", "QHelpSearchEngine", "QHelpSearchQuery", | |||
"QHelpSearchQueryWidget", "QHelpSearchResultWidget", "QHideEvent", | |||
"QHostAddress", "QHostInfo", "QHoverEvent", "QHttp", "QHttpHeader", | |||
"QHttpRequestHeader", "QHttpResponseHeader", "QIBaseDriver", | |||
"QIBaseResult", "QIcon", "QIconDragEvent", "QIconEngine", | |||
"QIconEngineFactoryInterface", "QIconEngineFactoryInterfaceV2", | |||
"QIconEnginePlugin", "QIconEnginePluginV2", "QIconEngineV2", | |||
"QIconSet", "QImage", "QImageIOHandler", | |||
"QImageIOHandlerFactoryInterface", "QImageIOPlugin", "QImageReader", | |||
"QImageTextKeyLang", "QImageWriter", "QIncompatibleFlag", | |||
"QInputContext", "QInputContextFactory", | |||
"QInputContextFactoryInterface", "QInputContextPlugin", | |||
"QInputDialog", "QInputEvent", "QInputMethodEvent", "Q_INT16", | |||
"Q_INT32", "Q_INT64", "Q_INT8", "QInternal", "QIntForSize", | |||
"QIntForType", "QIntValidator", "QIODevice", "Q_IPV6ADDR", | |||
"QIPv6Address", "QItemDelegate", "QItemEditorCreator", | |||
"QItemEditorCreatorBase", "QItemEditorFactory", "QItemSelection", | |||
"QItemSelectionModel", "QItemSelectionRange", "QKeyEvent", | |||
"QKeySequence", "QLabel", "QLatin1Char", "QLatin1String", "QLayout", | |||
"QLayoutItem", "QLayoutIterator", "QLCDNumber", "QLibrary", | |||
"QLibraryInfo", "QLine", "QLinearGradient", "QLineEdit", "QLineF", | |||
"QLinkedList", "QLinkedListData", "QLinkedListIterator", | |||
"QLinkedListNode", "QList", "QListData", "QListIterator", | |||
"QListView", "QListWidget", "QListWidgetItem", "Q_LLONG", "QLocale", | |||
"QLocalServer", "QLocalSocket", "Q_LONG", "QMacCompatGLenum", | |||
"QMacCompatGLint", "QMacCompatGLuint", "QMacGLCompatTypes", | |||
"QMacMime", "QMacPasteboardMime", "QMainWindow", "QMap", "QMapData", | |||
"QMapIterator", "QMapNode", "QMapPayloadNode", "QMatrix", | |||
"QMdiArea", "QMdiSubWindow", "QMenu", "QMenuBar", | |||
"QMenubarUpdatedEvent", "QMenuItem", "QMessageBox", | |||
"QMetaClassInfo", "QMetaEnum", "QMetaMethod", "QMetaObject", | |||
"QMetaObjectExtraData", "QMetaProperty", "QMetaType", "QMetaTypeId", | |||
"QMetaTypeId2", "QMimeData", "QMimeSource", "QModelIndex", | |||
"QModelIndexList", "QMotifStyle", "QMouseEvent", "QMoveEvent", | |||
"QMovie", "QMultiHash", "QMultiMap", "QMutableFutureIterator", | |||
"QMutableHashIterator", "QMutableLinkedListIterator", | |||
"QMutableListIterator", "QMutableMapIterator", | |||
"QMutableSetIterator", "QMutableStringListIterator", | |||
"QMutableVectorIterator", "QMutex", "QMutexLocker", "QMYSQLDriver", | |||
"QMYSQLResult", "QNetworkAccessManager", "QNetworkAddressEntry", | |||
"QNetworkCacheMetaData", "QNetworkCookie", "QNetworkCookieJar", | |||
"QNetworkDiskCache", "QNetworkInterface", "QNetworkProxy", | |||
"QNetworkProxyFactory", "QNetworkProxyQuery", "QNetworkReply", | |||
"QNetworkRequest", "QNoDebug", "QNoImplicitBoolCast", "QObject", | |||
"QObjectCleanupHandler", "QObjectData", "QObjectList", | |||
"QObjectUserData", "QOCIDriver", "QOCIResult", "QODBCDriver", | |||
"QODBCResult", "QPageSetupDialog", "QPaintDevice", "QPaintEngine", | |||
"QPaintEngineState", "QPainter", "QPainterPath", | |||
"QPainterPathPrivate", "QPainterPathStroker", "QPaintEvent", | |||
"QPair", "QPalette", "QPen", "QPersistentModelIndex", "QPicture", | |||
"QPictureFormatInterface", "QPictureFormatPlugin", "QPictureIO", | |||
"Q_PID", "QPixmap", "QPixmapCache", "QPlainTextDocumentLayout", | |||
"QPlainTextEdit", "QPlastiqueStyle", "QPluginLoader", "QPoint", | |||
"QPointer", "QPointF", "QPolygon", "QPolygonF", "QPrintDialog", | |||
"QPrintEngine", "QPrinter", "QPrinterInfo", "QPrintPreviewDialog", | |||
"QPrintPreviewWidget", "QProcess", "QProgressBar", | |||
"QProgressDialog", "QProxyModel", "QPSQLDriver", "QPSQLResult", | |||
"QPushButton", "QQueue", "QRadialGradient", "QRadioButton", | |||
"QReadLocker", "QReadWriteLock", "QRect", "QRectF", "QRegExp", | |||
"QRegExpValidator", "QRegion", "QResizeEvent", "QResource", | |||
"QReturnArgument", "QRgb", "QRubberBand", "QRunnable", | |||
"QScriptable", "QScriptClass", "QScriptClassPropertyIterator", | |||
"QScriptContext", "QScriptContextInfo", "QScriptContextInfoList", | |||
"QScriptEngine", "QScriptEngineAgent", "QScriptEngineDebugger", | |||
"QScriptExtensionInterface", "QScriptExtensionPlugin", | |||
"QScriptString", "QScriptSyntaxCheckResult", "QScriptValue", | |||
"QScriptValueIterator", "QScriptValueList", "QScrollArea", | |||
"QScrollBar", "QSemaphore", "QSessionManager", "QSet", | |||
"QSetIterator", "QSettings", "QSharedData", "QSharedDataPointer", | |||
"QSharedMemory", "QSharedPointer", "QShortcut", "QShortcutEvent", | |||
"QShowEvent", "QSignalMapper", "QSignalSpy", "QSimpleXmlNodeModel", | |||
"QSize", "QSizeF", "QSizeGrip", "QSizePolicy", "QSlider", | |||
"QSocketNotifier", "QSortFilterProxyModel", "QSound", | |||
"QSourceLocation", "QSpacerItem", "QSpinBox", "QSplashScreen", | |||
"QSplitter", "QSplitterHandle", "QSpontaneKeyEvent", "QSqlDatabase", | |||
"QSqlDriver", "QSqlDriverCreator", "QSqlDriverCreatorBase", | |||
"QSqlDriverFactoryInterface", "QSqlDriverPlugin", "QSqlError", | |||
"QSqlField", "QSqlIndex", "QSQLite2Driver", "QSQLite2Result", | |||
"QSQLiteDriver", "QSQLiteResult", "QSqlQuery", "QSqlQueryModel", | |||
"QSqlRecord", "QSqlRelation", "QSqlRelationalDelegate", | |||
"QSqlRelationalTableModel", "QSqlResult", "QSqlTableModel", "QSsl", | |||
"QSslCertificate", "QSslCipher", "QSslConfiguration", "QSslError", | |||
"QSslKey", "QSslSocket", "QStack", "QStackedLayout", | |||
"QStackedWidget", "QStandardItem", "QStandardItemEditorCreator", | |||
"QStandardItemModel", "QStatusBar", "QStatusTipEvent", | |||
"QStdWString", "QString", "QStringList", "QStringListIterator", | |||
"QStringListModel", "QStringMatcher", "QStringRef", "QStyle", | |||
"QStyledItemDelegate", "QStyleFactory", "QStyleFactoryInterface", | |||
"QStyleHintReturn", "QStyleHintReturnMask", | |||
"QStyleHintReturnVariant", "QStyleOption", "QStyleOptionButton", | |||
"QStyleOptionComboBox", "QStyleOptionComplex", | |||
"QStyleOptionDockWidget", "QStyleOptionDockWidgetV2", | |||
"QStyleOptionFocusRect", "QStyleOptionFrame", "QStyleOptionFrameV2", | |||
"QStyleOptionFrameV3", "QStyleOptionGraphicsItem", | |||
"QStyleOptionGroupBox", "QStyleOptionHeader", | |||
"QStyleOptionMenuItem", "QStyleOptionProgressBar", | |||
"QStyleOptionProgressBarV2", "QStyleOptionQ3DockWindow", | |||
"QStyleOptionQ3ListView", "QStyleOptionQ3ListViewItem", | |||
"QStyleOptionRubberBand", "QStyleOptionSizeGrip", | |||
"QStyleOptionSlider", "QStyleOptionSpinBox", "QStyleOptionTab", | |||
"QStyleOptionTabBarBase", "QStyleOptionTabBarBaseV2", | |||
"QStyleOptionTabV2", "QStyleOptionTabV3", | |||
"QStyleOptionTabWidgetFrame", "QStyleOptionTitleBar", | |||
"QStyleOptionToolBar", "QStyleOptionToolBox", | |||
"QStyleOptionToolBoxV2", "QStyleOptionToolButton", | |||
"QStyleOptionViewItem", "QStyleOptionViewItemV2", | |||
"QStyleOptionViewItemV3", "QStyleOptionViewItemV4", "QStylePainter", | |||
"QStylePlugin", "QSvgGenerator", "QSvgRenderer", "QSvgWidget", | |||
"QSyntaxHighlighter", "QSysInfo", "QSystemLocale", | |||
"QSystemSemaphore", "QSystemTrayIcon", "Qt", "Qt3Support", | |||
"QTabBar", "QTabletEvent", "QTableView", "QTableWidget", | |||
"QTableWidgetItem", "QTableWidgetSelectionRange", "QTabWidget", | |||
"QtAlgorithms", "QtAssistant", "QtCleanUpFunction", | |||
"QtConcurrentFilter", "QtConcurrentMap", "QtConcurrentRun", | |||
"QtContainerFwd", "QtCore", "QTcpServer", "QTcpSocket", "QtDBus", | |||
"QtDebug", "QtDesigner", "QTDSDriver", "QTDSResult", | |||
"QTemporaryFile", "QtEndian", "QTest", "QTestAccessibility", | |||
"QTestAccessibilityEvent", "QTestData", "QTestDelayEvent", | |||
"QTestEvent", "QTestEventList", "QTestEventLoop", | |||
"QTestKeyClicksEvent", "QTestKeyEvent", "QTestMouseEvent", | |||
"QtEvents", "QTextBlock", "QTextBlockFormat", "QTextBlockGroup", | |||
"QTextBlockUserData", "QTextBoundaryFinder", "QTextBrowser", | |||
"QTextCharFormat", "QTextCodec", "QTextCodecFactoryInterface", | |||
"QTextCodecPlugin", "QTextCursor", "QTextDecoder", "QTextDocument", | |||
"QTextDocumentFragment", "QTextDocumentWriter", "QTextEdit", | |||
"QTextEncoder", "QTextFormat", "QTextFragment", "QTextFrame", | |||
"QTextFrameFormat", "QTextFrameLayoutData", "QTextImageFormat", | |||
"QTextInlineObject", "QTextIStream", "QTextItem", "QTextLayout", | |||
"QTextLength", "QTextLine", "QTextList", "QTextListFormat", | |||
"QTextObject", "QTextObjectInterface", "QTextOption", | |||
"QTextOStream", "QTextStream", "QTextStreamFunction", | |||
"QTextStreamManipulator", "QTextTable", "QTextTableCell", | |||
"QTextTableCellFormat", "QTextTableFormat", "QtGlobal", "QtGui", | |||
"QtHelp", "QThread", "QThreadPool", "QThreadStorage", | |||
"QThreadStorageData", "QTime", "QTimeEdit", "QTimeLine", "QTimer", | |||
"QTimerEvent", "QtMsgHandler", "QtNetwork", "QToolBar", | |||
"QToolBarChangeEvent", "QToolBox", "QToolButton", "QToolTip", | |||
"QtOpenGL", "QtPlugin", "QtPluginInstanceFunction", "QTransform", | |||
"QTranslator", "QTreeView", "QTreeWidget", "QTreeWidgetItem", | |||
"QTreeWidgetItemIterator", "QTS", "QtScript", "QtScriptTools", | |||
"QtSql", "QtSvg", "QtTest", "QtUiTools", "QtWebKit", "QtXml", | |||
"QtXmlPatterns", "QTypeInfo", "QUdpSocket", "QUiLoader", | |||
"QUintForSize", "QUintForType", "QUndoCommand", "QUndoGroup", | |||
"QUndoStack", "QUndoView", "QUnixPrintWidget", "QUpdateLaterEvent", | |||
"QUrl", "QUrlInfo", "QUuid", "QValidator", "QVariant", | |||
"QVariantComparisonHelper", "QVariantHash", "QVariantList", | |||
"QVariantMap", "QVarLengthArray", "QVBoxLayout", "QVector", | |||
"QVectorData", "QVectorIterator", "QVectorTypedData", | |||
"QWaitCondition", "QWeakPointer", "QWebDatabase", "QWebFrame", | |||
"QWebHistory", "QWebHistoryInterface", "QWebHistoryItem", | |||
"QWebHitTestResult", "QWebPage", "QWebPluginFactory", | |||
"QWebSecurityOrigin", "QWebSettings", "QWebView", "QWhatsThis", | |||
"QWhatsThisClickedEvent", "QWheelEvent", "QWidget", "QWidgetAction", | |||
"QWidgetData", "QWidgetItem", "QWidgetItemV2", "QWidgetList", | |||
"QWidgetMapper", "QWidgetSet", "QWindowsCEStyle", "QWindowsMime", | |||
"QWindowsMobileStyle", "QWindowsStyle", "QWindowStateChangeEvent", | |||
"QWindowsVistaStyle", "QWindowsXPStyle", "QWizard", "QWizardPage", | |||
"QWMatrix", "QWorkspace", "QWriteLocker", "QX11EmbedContainer", | |||
"QX11EmbedWidget", "QX11Info", "QXmlAttributes", | |||
"QXmlContentHandler", "QXmlDeclHandler", "QXmlDefaultHandler", | |||
"QXmlDTDHandler", "QXmlEntityResolver", "QXmlErrorHandler", | |||
"QXmlFormatter", "QXmlInputSource", "QXmlItem", | |||
"QXmlLexicalHandler", "QXmlLocator", "QXmlName", "QXmlNamePool", | |||
"QXmlNamespaceSupport", "QXmlNodeModelIndex", "QXmlParseException", | |||
"QXmlQuery", "QXmlReader", "QXmlResultItems", "QXmlSerializer", | |||
"QXmlSimpleReader", "QXmlStreamAttribute", "QXmlStreamAttributes", | |||
"QXmlStreamEntityDeclaration", "QXmlStreamEntityDeclarations", | |||
"QXmlStreamEntityResolver", "QXmlStreamNamespaceDeclaration", | |||
"QXmlStreamNamespaceDeclarations", "QXmlStreamNotationDeclaration", | |||
"QXmlStreamNotationDeclarations", "QXmlStreamReader", | |||
"QXmlStreamStringRef", "QXmlStreamWriter" | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'(', ')', '{', '}', '[', ']', '=', '+', '-', '*', '/', '!', '%', '^', '&', ':', ',', ';', '|', '<', '>' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => true, | |||
2 => true, | |||
3 => true, | |||
4 => true, | |||
5 => true, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #000000; font-weight:bold;', | |||
2 => 'color: #0057AE;', | |||
3 => 'color: #2B74C7;', | |||
4 => 'color: #0057AE;', | |||
5 => 'color: #22aadd;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #888888;', | |||
2 => 'color: #006E28;', | |||
'MULTI' => 'color: #888888; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;', | |||
1 => 'color: #000099; font-weight: bold;', | |||
2 => 'color: #660099; font-weight: bold;', | |||
3 => 'color: #660099; font-weight: bold;', | |||
4 => 'color: #660099; font-weight: bold;', | |||
5 => 'color: #006699; font-weight: bold;', | |||
'HARD' => '', | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #006E28;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #BF0303;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #B08000;', | |||
GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;', | |||
GESHI_NUMBER_OCT_PREFIX => 'color: #208080;', | |||
GESHI_NUMBER_HEX_PREFIX => 'color: #208080;', | |||
GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;', | |||
GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;', | |||
GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;', | |||
GESHI_NUMBER_FLT_NONSCI => 'color:#800080;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #2B74C7;', | |||
2 => 'color: #2B74C7;', | |||
3 => 'color: #2B74C7;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #006E28;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '', | |||
4 => '', | |||
5 => 'http://doc.trolltech.com/latest/{FNAMEL}.html' | |||
), | |||
'OOLANG' => true, | |||
'OBJECT_SPLITTERS' => array( | |||
1 => '.', | |||
2 => '::', | |||
3 => '->', | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 4, | |||
'PARSER_CONTROL' => array( | |||
'KEYWORDS' => array( | |||
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\#>|^])", | |||
'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_<\|%\\-])" | |||
), | |||
'OOLANG' => array( | |||
'MATCH_AFTER' => '~?[a-zA-Z][a-zA-Z0-9_]*', | |||
) | |||
) | |||
); | |||
?> |
@@ -0,0 +1,240 @@ | |||
<?php | |||
/************************************************************************************* | |||
* cpp.php | |||
* ------- | |||
* Author: Dennis Bayer (Dennis.Bayer@mnifh-giessen.de) | |||
* Contributors: | |||
* - M. Uli Kusterer (witness.of.teachtext@gmx.net) | |||
* - Jack Lloyd (lloyd@randombit.net) | |||
* Copyright: (c) 2004 Dennis Bayer, Nigel McNie (http://qbnz.com/highlighter) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2004/09/27 | |||
* | |||
* C++ language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2008/05/23 (1.0.7.22) | |||
* - Added description of extra language features (SF#1970248) | |||
* 2004/XX/XX (1.0.2) | |||
* - Added several new keywords (Jack Lloyd) | |||
* 2004/11/27 (1.0.1) | |||
* - Added StdCLib function and constant names, changed color scheme to | |||
* a cleaner one. (M. Uli Kusterer) | |||
* - Added support for multiple object splitters | |||
* 2004/10/27 (1.0.0) | |||
* - First Release | |||
* | |||
* TODO (updated 2004/11/27) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'C++', | |||
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
'COMMENT_REGEXP' => array( | |||
//Multiline-continued single-line comments | |||
1 => '/\/\/(?:\\\\\\\\|\\\\\\n|.)*$/m', | |||
//Multiline-continued preprocessor define | |||
2 => '/#(?:\\\\\\\\|\\\\\\n|.)*$/m' | |||
), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'ESCAPE_CHAR' => '', | |||
'ESCAPE_REGEXP' => array( | |||
//Simple Single Char Escapes | |||
1 => "#\\\\[abfnrtv\\\'\"?\n]#i", | |||
//Hexadecimal Char Specs | |||
2 => "#\\\\x[\da-fA-F]{2}#", | |||
//Hexadecimal Char Specs | |||
3 => "#\\\\u[\da-fA-F]{4}#", | |||
//Hexadecimal Char Specs | |||
4 => "#\\\\U[\da-fA-F]{8}#", | |||
//Octal Char Specs | |||
5 => "#\\\\[0-7]{1,3}#" | |||
), | |||
'NUMBERS' => | |||
GESHI_NUMBER_INT_BASIC | GESHI_NUMBER_INT_CSTYLE | GESHI_NUMBER_BIN_PREFIX_0B | | |||
GESHI_NUMBER_OCT_PREFIX | GESHI_NUMBER_HEX_PREFIX | GESHI_NUMBER_FLT_NONSCI | | |||
GESHI_NUMBER_FLT_NONSCI_F | GESHI_NUMBER_FLT_SCI_SHORT | GESHI_NUMBER_FLT_SCI_ZERO, | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'break', 'case', 'continue', 'default', 'do', 'else', 'for', 'goto', 'if', 'return', | |||
'switch', 'throw', 'while' | |||
), | |||
2 => array( | |||
'NULL', 'false', 'true', 'enum', 'errno', 'EDOM', | |||
'ERANGE', 'FLT_RADIX', 'FLT_ROUNDS', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG', | |||
'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON', 'FLT_MANT_DIG', 'DBL_MANT_DIG', | |||
'LDBL_MANT_DIG', 'FLT_MAX', 'DBL_MAX', 'LDBL_MAX', 'FLT_MAX_EXP', 'DBL_MAX_EXP', | |||
'LDBL_MAX_EXP', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', 'FLT_MIN_EXP', 'DBL_MIN_EXP', | |||
'LDBL_MIN_EXP', 'CHAR_BIT', 'CHAR_MAX', 'CHAR_MIN', 'SCHAR_MAX', 'SCHAR_MIN', | |||
'UCHAR_MAX', 'SHRT_MAX', 'SHRT_MIN', 'USHRT_MAX', 'INT_MAX', 'INT_MIN', | |||
'UINT_MAX', 'LONG_MAX', 'LONG_MIN', 'ULONG_MAX', 'HUGE_VAL', 'SIGABRT', | |||
'SIGFPE', 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'SIG_DFL', 'SIG_ERR', | |||
'SIG_IGN', 'BUFSIZ', 'EOF', 'FILENAME_MAX', 'FOPEN_MAX', 'L_tmpnam', | |||
'SEEK_CUR', 'SEEK_END', 'SEEK_SET', 'TMP_MAX', 'stdin', 'stdout', 'stderr', | |||
'EXIT_FAILURE', 'EXIT_SUCCESS', 'RAND_MAX', 'CLOCKS_PER_SEC', | |||
'virtual', 'public', 'private', 'protected', 'template', 'using', 'namespace', | |||
'try', 'catch', 'inline', 'dynamic_cast', 'const_cast', 'reinterpret_cast', | |||
'static_cast', 'explicit', 'friend', 'typename', 'typeid', 'class' | |||
), | |||
3 => array( | |||
'cin', 'cerr', 'clog', 'cout', 'delete', 'new', 'this', | |||
'printf', 'fprintf', 'snprintf', 'sprintf', 'assert', | |||
'isalnum', 'isalpha', 'isdigit', 'iscntrl', 'isgraph', 'islower', 'isprint', | |||
'ispunct', 'isspace', 'isupper', 'isxdigit', 'tolower', 'toupper', | |||
'exp', 'log', 'log10', 'pow', 'sqrt', 'ceil', 'floor', 'fabs', 'ldexp', | |||
'frexp', 'modf', 'fmod', 'sin', 'cos', 'tan', 'asin', 'acos', 'atan', 'atan2', | |||
'sinh', 'cosh', 'tanh', 'setjmp', 'longjmp', | |||
'va_start', 'va_arg', 'va_end', 'offsetof', 'sizeof', 'fopen', 'freopen', | |||
'fflush', 'fclose', 'remove', 'rename', 'tmpfile', 'tmpname', 'setvbuf', | |||
'setbuf', 'vfprintf', 'vprintf', 'vsprintf', 'fscanf', 'scanf', 'sscanf', | |||
'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc', | |||
'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fseek', 'ftell', 'rewind', | |||
'fgetpos', 'fsetpos', 'clearerr', 'feof', 'ferror', 'perror', 'abs', 'labs', | |||
'div', 'ldiv', 'atof', 'atoi', 'atol', 'strtod', 'strtol', 'strtoul', 'calloc', | |||
'malloc', 'realloc', 'free', 'abort', 'exit', 'atexit', 'system', 'getenv', | |||
'bsearch', 'qsort', 'rand', 'srand', 'strcpy', 'strncpy', 'strcat', 'strncat', | |||
'strcmp', 'strncmp', 'strcoll', 'strchr', 'strrchr', 'strspn', 'strcspn', | |||
'strpbrk', 'strstr', 'strlen', 'strerror', 'strtok', 'strxfrm', 'memcpy', | |||
'memmove', 'memcmp', 'memchr', 'memset', 'clock', 'time', 'difftime', 'mktime', | |||
'asctime', 'ctime', 'gmtime', 'localtime', 'strftime' | |||
), | |||
4 => array( | |||
'auto', 'bool', 'char', 'const', 'double', 'float', 'int', 'long', 'longint', | |||
'register', 'short', 'shortint', 'signed', 'static', 'struct', | |||
'typedef', 'union', 'unsigned', 'void', 'volatile', 'extern', 'jmp_buf', | |||
'signal', 'raise', 'va_list', 'ptrdiff_t', 'size_t', 'FILE', 'fpos_t', | |||
'div_t', 'ldiv_t', 'clock_t', 'time_t', 'tm', 'wchar_t', | |||
'int8', 'int16', 'int32', 'int64', | |||
'uint8', 'uint16', 'uint32', 'uint64', | |||
'int_fast8_t', 'int_fast16_t', 'int_fast32_t', 'int_fast64_t', | |||
'uint_fast8_t', 'uint_fast16_t', 'uint_fast32_t', 'uint_fast64_t', | |||
'int_least8_t', 'int_least16_t', 'int_least32_t', 'int_least64_t', | |||
'uint_least8_t', 'uint_least16_t', 'uint_least32_t', 'uint_least64_t', | |||
'int8_t', 'int16_t', 'int32_t', 'int64_t', | |||
'uint8_t', 'uint16_t', 'uint32_t', 'uint64_t', | |||
'intmax_t', 'uintmax_t', 'intptr_t', 'uintptr_t' | |||
), | |||
), | |||
'SYMBOLS' => array( | |||
0 => array('(', ')', '{', '}', '[', ']'), | |||
1 => array('<', '>','='), | |||
2 => array('+', '-', '*', '/', '%'), | |||
3 => array('!', '^', '&', '|'), | |||
4 => array('?', ':', ';') | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => true, | |||
2 => true, | |||
3 => true, | |||
4 => true, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #0000ff;', | |||
2 => 'color: #0000ff;', | |||
3 => 'color: #0000dd;', | |||
4 => 'color: #0000ff;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #666666;', | |||
2 => 'color: #339900;', | |||
'MULTI' => 'color: #ff0000; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #000099; font-weight: bold;', | |||
1 => 'color: #000099; font-weight: bold;', | |||
2 => 'color: #660099; font-weight: bold;', | |||
3 => 'color: #660099; font-weight: bold;', | |||
4 => 'color: #660099; font-weight: bold;', | |||
5 => 'color: #006699; font-weight: bold;', | |||
'HARD' => '', | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #008000;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #FF0000;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #0000dd;', | |||
GESHI_NUMBER_BIN_PREFIX_0B => 'color: #208080;', | |||
GESHI_NUMBER_OCT_PREFIX => 'color: #208080;', | |||
GESHI_NUMBER_HEX_PREFIX => 'color: #208080;', | |||
GESHI_NUMBER_FLT_SCI_SHORT => 'color:#800080;', | |||
GESHI_NUMBER_FLT_SCI_ZERO => 'color:#800080;', | |||
GESHI_NUMBER_FLT_NONSCI_F => 'color:#800080;', | |||
GESHI_NUMBER_FLT_NONSCI => 'color:#800080;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #007788;', | |||
2 => 'color: #007788;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #008000;', | |||
1 => 'color: #000080;', | |||
2 => 'color: #000040;', | |||
3 => 'color: #000040;', | |||
4 => 'color: #008080;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => '', | |||
4 => '' | |||
), | |||
'OOLANG' => true, | |||
'OBJECT_SPLITTERS' => array( | |||
1 => '.', | |||
2 => '::' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 4, | |||
'PARSER_CONTROL' => array( | |||
'KEYWORDS' => array( | |||
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\#])", | |||
'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_\|%\\-])" | |||
) | |||
) | |||
); | |||
?> |
@@ -0,0 +1,253 @@ | |||
<?php | |||
/************************************************************************************* | |||
* csharp.php | |||
* ---------- | |||
* Author: Alan Juden (alan@judenware.org) | |||
* Revised by: Michael Mol (mikemol@gmail.com) | |||
* Copyright: (c) 2004 Alan Juden, Nigel McNie (http://qbnz.com/highlighter/) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2004/06/04 | |||
* | |||
* C# language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2009/04/03 (1.0.8.6) | |||
* - Added missing keywords identified by Rosetta Code users. | |||
* 2008/05/25 (1.0.7.22) | |||
* - Added highlighting of using and namespace directives as non-OOP | |||
* 2005/01/05 (1.0.1) | |||
* - Used hardquote support for @"..." strings (Cliff Stanford) | |||
* 2004/11/27 (1.0.0) | |||
* - Initial release | |||
* | |||
* TODO (updated 2004/11/27) | |||
* ------------------------- | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'C#', | |||
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
'COMMENT_REGEXP' => array( | |||
//Using and Namespace directives (basic support) | |||
//Please note that the alias syntax for using is not supported | |||
3 => '/(?:(?<=using[\\n\\s])|(?<=namespace[\\n\\s]))[\\n\\s]*([a-zA-Z0-9_]+\\.)*[a-zA-Z0-9_]+[\n\s]*(?=[;=])/i'), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array("'", '"'), | |||
'HARDQUOTE' => array('@"', '"'), | |||
'HARDESCAPE' => array('"'), | |||
'HARDCHAR' => '"', | |||
'ESCAPE_CHAR' => '\\', | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'as', 'auto', 'base', 'break', 'case', 'catch', 'const', 'continue', | |||
'default', 'do', 'else', 'event', 'explicit', 'extern', 'false', | |||
'finally', 'fixed', 'for', 'foreach', 'from', 'goto', 'if', | |||
'implicit', 'in', 'internal', 'lock', 'namespace', 'null', | |||
'operator', 'out', 'override', 'params', 'partial', 'private', | |||
'protected', 'public', 'readonly', 'ref', 'return', 'sealed', | |||
'select', 'stackalloc', 'static', 'switch', 'this', 'throw', 'true', | |||
'try', 'unsafe', 'using', 'virtual', 'where', 'while', 'yield' | |||
), | |||
2 => array( | |||
'#elif', '#endif', '#endregion', '#else', '#error', '#define', '#if', | |||
'#line', '#region', '#undef', '#warning' | |||
), | |||
3 => array( | |||
'checked', 'is', 'new', 'sizeof', 'typeof', 'unchecked' | |||
), | |||
4 => array( | |||
'bool', 'byte', 'char', 'class', 'decimal', 'delegate', 'double', | |||
'enum', 'float', 'int', 'interface', 'long', 'object', 'sbyte', | |||
'short', 'string', 'struct', 'uint', 'ulong', 'ushort', 'void' | |||
), | |||
5 => array( | |||
'Microsoft.Win32', | |||
'System', | |||
'System.CodeDOM', | |||
'System.CodeDOM.Compiler', | |||
'System.Collections', | |||
'System.Collections.Bases', | |||
'System.ComponentModel', | |||
'System.ComponentModel.Design', | |||
'System.ComponentModel.Design.CodeModel', | |||
'System.Configuration', | |||
'System.Configuration.Assemblies', | |||
'System.Configuration.Core', | |||
'System.Configuration.Install', | |||
'System.Configuration.Interceptors', | |||
'System.Configuration.Schema', | |||
'System.Configuration.Web', | |||
'System.Core', | |||
'System.Data', | |||
'System.Data.ADO', | |||
'System.Data.Design', | |||
'System.Data.Internal', | |||
'System.Data.SQL', | |||
'System.Data.SQLTypes', | |||
'System.Data.XML', | |||
'System.Data.XML.DOM', | |||
'System.Data.XML.XPath', | |||
'System.Data.XML.XSLT', | |||
'System.Diagnostics', | |||
'System.Diagnostics.SymbolStore', | |||
'System.DirectoryServices', | |||
'System.Drawing', | |||
'System.Drawing.Design', | |||
'System.Drawing.Drawing2D', | |||
'System.Drawing.Imaging', | |||
'System.Drawing.Printing', | |||
'System.Drawing.Text', | |||
'System.Globalization', | |||
'System.IO', | |||
'System.IO.IsolatedStorage', | |||
'System.Messaging', | |||
'System.Net', | |||
'System.Net.Sockets', | |||
'System.NewXml', | |||
'System.NewXml.XPath', | |||
'System.NewXml.Xsl', | |||
'System.Reflection', | |||
'System.Reflection.Emit', | |||
'System.Resources', | |||
'System.Runtime.InteropServices', | |||
'System.Runtime.InteropServices.Expando', | |||
'System.Runtime.Remoting', | |||
'System.Runtime.Serialization', | |||
'System.Runtime.Serialization.Formatters', | |||
'System.Runtime.Serialization.Formatters.Binary', | |||
'System.Security', | |||
'System.Security.Cryptography', | |||
'System.Security.Cryptography.X509Certificates', | |||
'System.Security.Permissions', | |||
'System.Security.Policy', | |||
'System.Security.Principal', | |||
'System.ServiceProcess', | |||
'System.Text', | |||
'System.Text.RegularExpressions', | |||
'System.Threading', | |||
'System.Timers', | |||
'System.Web', | |||
'System.Web.Caching', | |||
'System.Web.Configuration', | |||
'System.Web.Security', | |||
'System.Web.Services', | |||
'System.Web.Services.Description', | |||
'System.Web.Services.Discovery', | |||
'System.Web.Services.Protocols', | |||
'System.Web.UI', | |||
'System.Web.UI.Design', | |||
'System.Web.UI.Design.WebControls', | |||
'System.Web.UI.Design.WebControls.ListControls', | |||
'System.Web.UI.HtmlControls', | |||
'System.Web.UI.WebControls', | |||
'System.WinForms', | |||
'System.WinForms.ComponentModel', | |||
'System.WinForms.Design', | |||
'System.Xml', | |||
'System.Xml.Serialization', | |||
'System.Xml.Serialization.Code', | |||
'System.Xml.Serialization.Schema' | |||
), | |||
), | |||
'SYMBOLS' => array( | |||
'+', '-', '*', '?', '=', '/', '%', '&', '>', '<', '^', '!', ':', ';', | |||
'(', ')', '{', '}', '[', ']', '|', '.' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => false, | |||
2 => false, | |||
3 => false, | |||
4 => false, | |||
5 => false, | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #0600FF; font-weight: bold;', | |||
2 => 'color: #FF8000; font-weight: bold;', | |||
3 => 'color: #008000;', | |||
4 => 'color: #6666cc; font-weight: bold;', | |||
5 => 'color: #000000;' | |||
), | |||
'COMMENTS' => array( | |||
1 => 'color: #008080; font-style: italic;', | |||
2 => 'color: #008080;', | |||
3 => 'color: #008080;', | |||
'MULTI' => 'color: #008080; font-style: italic;' | |||
), | |||
'ESCAPE_CHAR' => array( | |||
0 => 'color: #008080; font-weight: bold;', | |||
'HARD' => 'color: #008080; font-weight: bold;' | |||
), | |||
'BRACKETS' => array( | |||
0 => 'color: #008000;' | |||
), | |||
'STRINGS' => array( | |||
0 => 'color: #666666;', | |||
'HARD' => 'color: #666666;' | |||
), | |||
'NUMBERS' => array( | |||
0 => 'color: #FF0000;' | |||
), | |||
'METHODS' => array( | |||
1 => 'color: #0000FF;', | |||
2 => 'color: #0000FF;' | |||
), | |||
'SYMBOLS' => array( | |||
0 => 'color: #008000;' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'SCRIPT' => array( | |||
) | |||
), | |||
'URLS' => array( | |||
1 => '', | |||
2 => '', | |||
3 => 'http://www.google.com/search?q={FNAMEL}+msdn.microsoft.com', | |||
4 => '', | |||
5 => '' | |||
), | |||
'OOLANG' => true, | |||
'OBJECT_SPLITTERS' => array( | |||
1 => '.', | |||
2 => '::' | |||
), | |||
'REGEXPS' => array( | |||
), | |||
'STRICT_MODE_APPLIES' => GESHI_NEVER, | |||
'SCRIPT_DELIMITERS' => array( | |||
), | |||
'HIGHLIGHT_STRICT_BLOCK' => array( | |||
), | |||
'TAB_WIDTH' => 4, | |||
'PARSER_CONTROL' => array( | |||
'KEYWORDS' => array( | |||
'DISALLOWED_BEFORE' => "(?<![a-zA-Z0-9\$_\|\#>|^])", | |||
'DISALLOWED_AFTER' => "(?![a-zA-Z0-9_%\\-])" | |||
) | |||
) | |||
); | |||
?> |
@@ -0,0 +1,223 @@ | |||
<?php | |||
/************************************************************************************* | |||
* css.php | |||
* ------- | |||
* Author: Nigel McNie (nigel@geshi.org) | |||
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) | |||
* Release Version: 1.0.8.10 | |||
* Date Started: 2004/06/18 | |||
* | |||
* CSS language file for GeSHi. | |||
* | |||
* CHANGES | |||
* ------- | |||
* 2008/05/23 (1.0.7.22) | |||
* - Added description of extra language features (SF#1970248) | |||
* 2004/11/27 (1.0.3) | |||
* - Added support for multiple object splitters | |||
* 2004/10/27 (1.0.2) | |||
* - Changed regexps to catch "-" symbols | |||
* - Added support for URLs | |||
* 2004/08/05 (1.0.1) | |||
* - Added support for symbols | |||
* 2004/07/14 (1.0.0) | |||
* - First Release | |||
* | |||
* TODO (updated 2004/11/27) | |||
* ------------------------- | |||
* * Improve or drop regexps for class/id/psuedoclass highlighting | |||
* * Re-look at keywords - possibly to make several CSS language | |||
* files, all with different versions of CSS in them | |||
* | |||
************************************************************************************* | |||
* | |||
* This file is part of GeSHi. | |||
* | |||
* GeSHi is free software; you can redistribute it and/or modify | |||
* it under the terms of the GNU General Public License as published by | |||
* the Free Software Foundation; either version 2 of the License, or | |||
* (at your option) any later version. | |||
* | |||
* GeSHi is distributed in the hope that it will be useful, | |||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||
* GNU General Public License for more details. | |||
* | |||
* You should have received a copy of the GNU General Public License | |||
* along with GeSHi; if not, write to the Free Software | |||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |||
* | |||
************************************************************************************/ | |||
$language_data = array ( | |||
'LANG_NAME' => 'CSS', | |||
'COMMENT_SINGLE' => array(1 => '@'), | |||
'COMMENT_MULTI' => array('/*' => '*/'), | |||
'COMMENT_REGEXP' => array( | |||
2 => "/(?<=\\()\\s*(?:(?:[a-z0-9]+?:\\/\\/)?[a-z0-9_\\-\\.\\/:]+?)?[a-z]+?\\.[a-z]+?(\\?[^\)]+?)?\\s*?(?=\\))/i" | |||
), | |||
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |||
'QUOTEMARKS' => array('"', "'"), | |||
'ESCAPE_CHAR' => '', | |||
'ESCAPE_REGEXP' => array( | |||
//Simple Single Char Escapes | |||
//1 => "#\\\\[nfrtv\$\"\n\\\\]#i", | |||
//Hexadecimal Char Specs | |||
2 => "#\\\\[\da-fA-F]{1,6}\s?#i", | |||
//Unicode Char Specs | |||
//3 => "#\\\\u[\da-fA-F]{1,8}#i", | |||
), | |||
'KEYWORDS' => array( | |||
1 => array( | |||
'aqua', 'azimuth', 'background-attachment', 'background-color', | |||
'background-image', 'background-position', 'background-repeat', | |||
'background', 'black', 'blue', 'border-bottom-color', | |||
'border-bottom-style', 'border-bottom-width', 'border-left-color', | |||
'border-left-style', 'border-left-width', 'border-right', | |||
'border-right-color', 'border-right-style', 'border-right-width', | |||
'border-top-color', 'border-top-style', | |||
'border-top-width','border-bottom', 'border-collapse', | |||
'border-left', 'border-width', 'border-color', 'border-spacing', | |||
'border-style', 'border-top', 'border', 'caption-side', 'clear', | |||
'clip', 'color', 'content', 'counter-increment', 'counter-reset', | |||
'cue-after', 'cue-before', 'cue', 'cursor', 'direction', 'display', | |||
'elevation', 'empty-cells', 'float', 'font-family', 'font-size', | |||
'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', | |||
'font-weight', 'font', 'line-height', 'letter-spacing', | |||
'list-style', 'list-style-image', 'list-style-position', | |||
'list-style-type', 'margin-bottom', 'margin-left', 'margin-right', | |||
'margin-top', 'margin', 'marker-offset', 'marks', 'max-height', | |||
'max-width', 'min-height', 'min-width', 'orphans', 'outline', | |||
'outline-color', 'outline-style', 'outline-width', 'overflow', | |||
'padding-bottom', 'padding-left', 'padding-right', 'padding-top', | |||
'padding', 'page', 'page-break-after', 'page-break-before', | |||
'page-break-inside', 'pause-after', 'pause-before', 'pause', | |||
'pitch', 'pitch-range', 'play-during', 'position', 'quotes', | |||
'richness', 'right', 'size', 'speak-header', 'speak-numeral', | |||
'speak-punctuation', 'speak', 'speech-rate', 'stress', | |||
'table-layout', 'text-align', 'text-decoration', 'text-indent', | |||
'text-shadow', 'text-transform', 'top', 'unicode-bidi', | |||
'vertical-align', 'visibility', 'voice-family', 'volume', | |||
'white-space', 'widows', 'width', 'word-spacing', 'z-index', | |||
'bottom', 'left', 'height' | |||
), | |||
2 => array( | |||
'above', 'absolute', 'always', 'armenian', 'aural', 'auto', | |||
'avoid', 'baseline', 'behind', 'below', 'bidi-override', 'blink', | |||
'block', 'bold', 'bolder', 'both', 'capitalize', 'center-left', | |||
'center-right', 'center', 'circle', 'cjk-ideographic', | |||
'close-quote', 'collapse', 'condensed', 'continuous', 'crop', | |||
'crosshair', 'cross', 'cursive', 'dashed', 'decimal-leading-zero', | |||
'decimal', 'default', 'digits', 'disc', 'dotted', 'double', | |||
'e-resize', 'embed', 'extra-condensed', 'extra-expanded', | |||
'expanded', 'fantasy', 'far-left', 'far-right', 'faster', 'fast', | |||
'fixed', 'fuchsia', 'georgian', 'gray', 'green', 'groove', | |||
'hebrew', 'help', 'hidden', 'hide', 'higher', 'high', | |||
'hiragana-iroha', 'hiragana', 'icon', 'inherit', 'inline-table', | |||
'inline', 'inset', 'inside', 'invert', 'italic', 'justify', | |||
'katakana-iroha', 'katakana', 'landscape', 'larger', 'large', | |||
'left-side', 'leftwards', 'level', 'lighter', 'lime', | |||
'line-through', 'list-item', 'loud', 'lower-alpha', 'lower-greek', | |||
'lower-roman', 'lowercase', 'ltr', 'lower', 'low', 'maroon', | |||
'medium', 'message-box', 'middle', 'mix', 'monospace', 'n-resize', | |||
'narrower', 'navy', 'ne-resize', 'no-close-quote', | |||
'no-open-quote', 'no-repeat', 'none', 'normal', 'nowrap', | |||
'nw-resize', 'oblique', 'olive', 'once', 'open-quote', 'outset', | |||
'outside', 'overline', 'pointer', 'portrait', 'purple', 'px', | |||
'red', 'relative', 'repeat-x', 'repeat-y', 'repeat', 'rgb', | |||
'ridge', 'right-side', 'rightwards', 's-resize', 'sans-serif', | |||
'scroll', 'se-resize', 'semi-condensed', 'semi-expanded', | |||
'separate', 'serif', 'show', 'silent', 'silver', 'slow', 'slower', | |||
'small-caps', 'small-caption', 'smaller', 'soft', 'solid', | |||
'spell-out', 'square', 'static', 'status-bar', 'super', | |||
'sw-resize', 'table-caption', 'table-cell', 'table-column', | |||
'table-column-group', 'table-footer-group', 'table-header-group', | |||
'table-row', 'table-row-group', 'teal', 'text', 'text-bottom', | |||
'text-top', 'thick', 'thin', 'transparent', 'ultra-condensed', | |||
'ultra-expanded', 'underline', 'upper-alpha', 'upper-latin', | |||
'upper-roman', 'uppercase', 'url', 'visible', 'w-resize', 'wait', | |||
'white', 'wider', 'x-fast', 'x-high', 'x-large', 'x-loud', | |||
'x-low', 'x-small', 'x-soft', 'xx-large', 'xx-small', 'yellow', | |||
'yes' | |||
) | |||
), | |||
'SYMBOLS' => array( | |||
'(', ')', '{', '}', ':', ';', | |||
'>', '+', '*', ',', '^', '=' | |||
), | |||
'CASE_SENSITIVE' => array( | |||
GESHI_COMMENTS => false, | |||
1 => true, | |||
2 => true | |||
), | |||
'STYLES' => array( | |||
'KEYWORDS' => array( | |||
1 => 'color: #000000; font-weight: bold;', | |||
2 => 'color: #993333;' | |||
), | |||
'COMMENTS' => array( | |||