Difference between revisions of "DNA.php"
From Organic Design wiki
m (dummy edit) |
(Add {{PHP}} to syntax highlight etc) |
||
(8 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | ?php | + | <?php |
− | # | + | # syntax highlighting using GeSHi {{PHP}} |
− | $language_data = array ( | + | $language_data = array( |
− | 'LANG_NAME' => ' | + | 'LANG_NAME' => 'dna', |
− | 'COMMENT_SINGLE' => array(1 => ' | + | 'COMMENT_SINGLE' => array(1 => '>',2 => '#'), |
− | 'COMMENT_MULTI' => array( ' | + | 'COMMENT_MULTI' => array('/*' => '*/'), |
'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, | ||
− | 'QUOTEMARKS' => array(), | + | 'QUOTEMARKS' => array("'",'"'), |
− | 'ESCAPE_CHAR' => '', | + | 'ESCAPE_CHAR' => '\\', |
− | + | 'REGEXPS' => array( | |
− | + | 0 => array( | |
− | + | GESHI_SEARCH => '([Aa]+)', | |
− | + | GESHI_REPLACE => '\\1', | |
− | + | ), | |
− | + | 1 => array( | |
− | + | GESHI_SEARCH => '([Tt]+)', | |
− | + | GESHI_REPLACE => '\\1', | |
− | + | ), | |
+ | 2 => array( | ||
+ | GESHI_SEARCH => '([Cc]+)', | ||
+ | GESHI_REPLACE => '\\1', | ||
+ | ), | ||
+ | ), | ||
+ | 'CASE_SENSITIVE' => array( | ||
+ | GESHI_COMMENTS => false, | ||
+ | 1 => false, | ||
+ | 2 => false, | ||
+ | 3 => false, | ||
), | ), | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
'STYLES' => array( | 'STYLES' => array( | ||
− | ' | + | 'REGEXPS' => array( |
− | 1 => 'color: | + | 0 => 'color: #00FF00;', |
− | 2 => 'color: | + | 1 => 'color: #FF0000', |
− | + | 2 => 'color: #0066FF', | |
− | ) | + | |
+ | ), | ||
+ | 'COMMENTS' => array( | ||
+ | 1 => 'color: #808080; font-style: italic;', | ||
+ | 2 => 'color: #808080; font-style: italic;', | ||
+ | 'MULTI' => 'color: #808080; font-style: italic;' | ||
+ | ), | ||
) | ) | ||
) | ) | ||
+ | ?> |
Latest revision as of 07:02, 25 March 2010
<?php
- syntax highlighting using GeSHi Template:PHP
$language_data = array(
'LANG_NAME' => 'dna', 'COMMENT_SINGLE' => array(1 => '>',2 => '#'), 'COMMENT_MULTI' => array('/*' => '*/'), 'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE, 'QUOTEMARKS' => array("'",'"'), 'ESCAPE_CHAR' => '\\', 'REGEXPS' => array( 0 => array( GESHI_SEARCH => '([Aa]+)', GESHI_REPLACE => '\\1', ), 1 => array( GESHI_SEARCH => '([Tt]+)', GESHI_REPLACE => '\\1', ), 2 => array( GESHI_SEARCH => '([Cc]+)', GESHI_REPLACE => '\\1', ), ),
'CASE_SENSITIVE' => array(
GESHI_COMMENTS => false, 1 => false, 2 => false, 3 => false, ), 'STYLES' => array( 'REGEXPS' => array( 0 => 'color: #00FF00;', 1 => 'color: #FF0000', 2 => 'color: #0066FF', ), 'COMMENTS' => array( 1 => 'color: #808080; font-style: italic;', 2 => 'color: #808080; font-style: italic;', 'MULTI' => 'color: #808080; font-style: italic;' ), )
) ?>