Difference between revisions of "DNA.php"
From Organic Design wiki
Line 9: | Line 9: | ||
'ESCAPE_CHAR' => '\\', | 'ESCAPE_CHAR' => '\\', | ||
'KEYWORDS' => array( | 'KEYWORDS' => array( | ||
− | 1 => array('a | + | 1 => array('a'), |
2 => array('t'), | 2 => array('t'), | ||
− | 3 => array(' | + | 3 => array('c') |
), | ), | ||
'CASE_SENSITIVE' => array( | 'CASE_SENSITIVE' => array( | ||
Line 21: | Line 21: | ||
'STYLES' => array( | 'STYLES' => array( | ||
'KEYWORDS' => array( | 'KEYWORDS' => array( | ||
− | 1 => 'color: # | + | 1 => 'color: #00FF00;', |
− | 2 => 'color: # | + | 2 => 'color: #FF0000;', |
− | 3 => 'color: # | + | 3 => 'color: #0066FF;' |
), | ), | ||
'COMMENTS' => array( | 'COMMENTS' => array( | ||
− | 1 => 'color: # | + | 1 => 'color: #808080; font-style: italic;', |
− | 2 => 'color: # | + | 2 => 'color: #808080; font-style: italic;', |
'MULTI' => 'color: #808080; font-style: italic;' | 'MULTI' => 'color: #808080; font-style: italic;' | ||
), | ), |
Revision as of 19:00, 8 February 2006
?php
- syntax highlighting using GeSHi
$language_data = array(
'LANG_NAME' => 'dna', 'COMMENT_SINGLE' => array(1 => '>',2 => '#'), 'COMMENT_MULTI' => array('/*' => '*/'), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array("'",'"'), 'ESCAPE_CHAR' => '\\', 'KEYWORDS' => array( 1 => array('a'), 2 => array('t'), 3 => array('c') ),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false, 1 => false, 2 => false, 3 => false, ), 'STYLES' => array( 'KEYWORDS' => array( 1 => 'color: #00FF00;', 2 => 'color: #FF0000;', 3 => 'color: #0066FF;' ), 'COMMENTS' => array( 1 => 'color: #808080; font-style: italic;', 2 => 'color: #808080; font-style: italic;', 'MULTI' => 'color: #808080; font-style: italic;' ), )
) ?>