Page 2 of 2

Posted: Wed May 28, 2008 6:15 pm
by DoubleDutch
Here are the mods I made to your original PureBasic.php

Code: Select all

  'STYLES' => array(
    'KEYWORDS' => array(
      1 => 'color: #006666; font-weight: bold;',
      2 => 'color: #006666; font-weight: bold;',
      3 => 'color: #006666; font-weight: bold;',
      4 => 'color: #006666; font-weight: bold;',
      5 => 'color: #006666; font-weight: bold;',
      ),
    'COMMENTS' => array(
      1 => 'color: #00AAAA; font-style: italic;',
      ),
    'ESCAPE_CHAR' => array(
      0 => 'color: #000099; font-weight: bold;'
      ),
    'BRACKETS' => array(
      0 => 'color: #000000;'
      ),
    'STRINGS' => array(
      0 => 'color: #000000;'
      ),
    'NUMBERS' => array(
      0 => 'color: #000000;'
      ),
    'METHODS' => array(
      1 => 'color: #000000;'
      ),
    'SYMBOLS' => array(
      0 => 'color: #000000; '
I also altered the code at http://www.phpbb.de/viewtopic.php?p=995561 slightly with:

Code: Select all

		if( strtolower($type) == 'purebasic' )
		{
			$geshi->enable_line_numbers(GESHI_NO_LINE_NUMBERS);
			$geshi->set_overall_style('color: #000000; border: 1px solid #8080a0; background-color: #ffffdf;', true);
		}
         $code = $geshi->parse_code();  
(the bit I inserted is just before the ' $code = $geshi->parse_code(); ')

Here is the result...
Image

You can see it for real here: http://computingdata.com/phpbb3/viewtop ... p=119#p119

It works really well - to see the highlighting just set the code to PureBasic, eg:
[ code=purebasic ] else it works as normal.