websvn |
Subversion Repositories: |
Rev 1 | Rev 3 | |
---|---|---|
Line 2... | Line 2... | |
/************************************************************************************* |
/************************************************************************************* | |
* java.php |
* java.php | |
* -------- |
* -------- | |
* Author: Nigel McNie (nigel@geshi.org) |
* Author: Nigel McNie (nigel@geshi.org) | |
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) |
* Copyright: (c) 2004 Nigel McNie (http://qbnz.com/highlighter/) | |
* Release Version: 1.0.8.1 |
* Release Version: 1.0.8.3 | |
* Date Started: 2004/07/10 |
* Date Started: 2004/07/10 | |
* |
* | |
* Java language file for GeSHi. |
* Java language file for GeSHi. | |
* |
* | |
* CHANGES |
* CHANGES | |
Line 54... | Line 54... | |
'LANG_NAME' => 'Java(TM) 2 Platform Standard Edition 5.0', |
'LANG_NAME' => 'Java(TM) 2 Platform Standard Edition 5.0', | |
'COMMENT_SINGLE' => array(1 => '//'), |
'COMMENT_SINGLE' => array(1 => '//'), | |
'COMMENT_MULTI' => array('/*' => '*/'), |
'COMMENT_MULTI' => array('/*' => '*/'), | |
'COMMENT_REGEXP' => array( |
'COMMENT_REGEXP' => array( | |
//Import and Package directives (Basic Support only) |
//Import and Package directives (Basic Support only) | |
2 => '/(?:(?<=import[\\n\\s])|(?<=package[\\n\\s]))[\\n\\s]*([a-zA-Z0-9_]+\\.)*([a-zA-Z0-9_]+|\*)(?=[\n\s;])/i'), |
2 => '/(?:(?<=import[\\n\\s])|(?<=package[\\n\\s]))[\\n\\s]*([a-zA-Z0-9_]+\\.)*([a-zA-Z0-9_]+|\*)(?=[\n\s;])/i', | |
// javadoc comments | ||
3 => '#/\*\*(?![\*\/]).*\*/#sU' | ||
), | ||
'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( |
1 => array( | |
Line 813... | Line 816... | |
166 => 'color: #003399; font-weight: bold;' |
166 => 'color: #003399; font-weight: bold;' | |
), |
), | |
'COMMENTS' => array( |
'COMMENTS' => array( | |
1 => 'color: #666666; font-style: italic;', |
1 => 'color: #666666; font-style: italic;', | |
2 => 'color: #006699;', |
2 => 'color: #006699;', | |
3 => 'color: #008000; font-style: italic; font-weight: bold;', | ||
'MULTI' => 'color: #666666; font-style: italic;' |
'MULTI' => 'color: #666666; font-style: italic;' | |
), |
), | |
'ESCAPE_CHAR' => array( |
'ESCAPE_CHAR' => array( | |
0 => 'color: #000099; font-weight: bold;' |
0 => 'color: #000099; font-weight: bold;' | |
), |
), |