DNA.php

From Organic Design wiki
Revision as of 19:29, 5 February 2006 by Nad (talk | contribs) (php tag)

<?

  1. DNA syntax highlighting using GeSHi

$language_data = array (

   'LANG_NAME' => 'DNA',
   'COMMENT_SINGLE' => array(1 => '%'),
   'COMMENT_MULTI' => array( '\\begin'.'{comment}' => '\\end'.'{comment}'),
   '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 => true,
       1 => true,
       2 => true,
       3 => true,
       ),
   'STYLES' => array(
       'KEYWORDS' => array(
           1 => 'color: green',
           2 => 'color: red',
           3 => 'color: blue'
           ),
    'COMMENTS' => array(
           1 => 'color: grey; font-style: italic;',
           ),
    )

) ?>