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; '
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();
Here is the result...

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.