websvn |
Subversion Repositories: |
Rev 1 | Rev 3 | |
---|---|---|
Line 2... | Line 2... | |
/************************************************************************************* |
/************************************************************************************* | |
* klonec.php |
* klonec.php | |
* -------- |
* -------- | |
* Author: AUGER Mickael |
* Author: AUGER Mickael | |
* Copyright: Synchronic |
* Copyright: Synchronic | |
* Release Version: 1.0.8.1 |
* Release Version: 1.0.8.3 | |
* Date Started: 2008/04/16 |
* Date Started: 2008/04/16 | |
* |
* | |
* KLone with C language file for GeSHi. |
* KLone with C language file for GeSHi. | |
* |
* | |
* CHANGES |
* CHANGES | |
Line 44... | Line 44... | |
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, |
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | |
'QUOTEMARKS' => array("'", '"'), |
'QUOTEMARKS' => array("'", '"'), | |
'ESCAPE_CHAR' => '\\', |
'ESCAPE_CHAR' => '\\', | |
'KEYWORDS' => array( |
'KEYWORDS' => array( | |
1 => array(//mots-cles C |
1 => array(//mots-cles C | |
'if', 'return', 'while', 'case', 'continue', 'default', |
'if', 'return', 'while', 'case', 'class', 'continue', 'default', | |
'do', 'else', 'for', 'switch', 'goto', |
'do', 'else', 'for', 'switch', 'goto', | |
'null', 'break', 'true', 'enum', 'extern', 'inline', 'false' |
'null', 'break', 'true', 'enum', 'extern', 'inline', 'false' | |
), |
), | |
2 => array(//mots-cles KLone |
2 => array(//mots-cles KLone | |
'<%=', '<%!', '<%', '%>', 'out', 'request', 'response', |
'out', 'request', 'response', | |
), |
), | |
3 => array(//fonctions C usuelles |
3 => array(//fonctions C usuelles | |
'printf', 'malloc', 'fopen', 'fclose', 'free', 'fputs', 'fgets', 'feof', 'fwrite', |
'printf', 'malloc', 'fopen', 'fclose', 'free', 'fputs', 'fgets', 'feof', 'fwrite', | |
'perror', 'ferror', 'qsort', 'stats', 'sscanf', 'scanf', |
'perror', 'ferror', 'qsort', 'stats', 'sscanf', 'scanf', | |
'strdup', 'strcpy', 'strcmp', 'strncpy', 'strcasecmp', 'cat', 'strcat', 'strstr', |
'strdup', 'strcpy', 'strcmp', 'strncpy', 'strcasecmp', 'cat', 'strcat', 'strstr', | |
Line 150... | Line 150... | |
'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace', |
'valign', 'value', 'valuetype', 'version', 'vlink', 'vspace', | |
'width' |
'width' | |
) |
) | |
), |
), | |
'SYMBOLS' => array( |
'SYMBOLS' => array( | |
'(', ')', '[', ']', '{', '}', |
1 => array( | |
'!', '%', '&', '|', '/', |
'<%=', '<%!', '<%', '%>' | |
'<', '>', |
), | |
'=', '-', '+', '*', |
0 => array( | |
'.', ':', ',', ';', '^' |
'(', ')', '[', ']', '{', '}', | |
'!', '%', '&', '|', '/', | ||
'<', '>', | ||
'=', '-', '+', '*', | ||
'.', ':', ',', ';', '^' | ||
) | ||
), |
), | |
'CASE_SENSITIVE' => array( |
'CASE_SENSITIVE' => array( | |
GESHI_COMMENTS => false, |
GESHI_COMMENTS => false, | |
1 => false, |
1 => false, | |
2 => false, |
2 => false, | |
Line 198... | Line 203... | |
'METHODS' => array( |
'METHODS' => array( | |
1 => 'color: #006600;', |
1 => 'color: #006600;', | |
2 => 'color: #006600;' |
2 => 'color: #006600;' | |
), |
), | |
'SYMBOLS' => array( |
'SYMBOLS' => array( | |
0 => 'color: #000000;' |
0 => 'color: #000000;', | |
1 => 'color: #000000; font-weight: bold;' | ||
), |
), | |
'REGEXPS' => array(), |
'REGEXPS' => array(), | |
'SCRIPT' => array( |
'SCRIPT' => array( | |
0 => 'background-color:#ffccff; font-weight: bold; color:#000000;', |
0 => 'background-color:#ffccff; font-weight: bold; color:#000000;', | |
1 => '', |
1 => '', | |
Line 263... | Line 269... | |
'PARSER_CONTROL' => array( |
'PARSER_CONTROL' => array( | |
'KEYWORDS' => array( |
'KEYWORDS' => array( | |
6 => array( |
6 => array( | |
'DISALLOWED_BEFORE' => '(?<=<|<\/)', |
'DISALLOWED_BEFORE' => '(?<=<|<\/)', | |
'DISALLOWED_AFTER' => '(?=\s|\/|>)', |
'DISALLOWED_AFTER' => '(?=\s|\/|>)', | |
), | ||
7 => array( | ||
'DISALLOWED_AFTER' => '(?=\s*=)', | ||
) |
) | |
) |
) | |
) |
) | |
); |
); | |
|
|