1 (edited by zaher 2005-02-03 20:46)

Topic: Multi Syntax Highlight for code tags to PunBB 1.2.x

##
##
##        Mod title:  Multi Syntax Highlighter For PunBB
##
##      Mod version:  1.0.0
##   Works on PunBB:  1.2.x
##     Release date:  2005-2-2
##           Author:  zaher dirkey (zaher@parmaja.com)
##
##      Description:  Multi Syntax Highlight for code tags to PunBB 1.2.x
##
##   Affected files:  include\parser.php
##        header.php
##
##       Affects DB:  No
##
##            Notes:  split_text not used in parser.php you can remove it
##
##       DISCLAIMER:  Please note that "mods" are not officially supported by
##                    PunBB. Installation of this modification is done at your
##                    own risk. Backup your forum database and any and all
##                    applicable files before proceeding.
##
##

Download:
  http://www.punres.org/viewtopic.php?id=188
  or
  http://www.parmaja.com/downloads/phpMul … -1.1.0.zip

DEMO:
  http://www.parmaja.com/forums/viewtopic.php?id=31

Old version:
  http://punbb.org/forums/viewtopic.php?id=4243

If your people come crazy, you will not need to your mind any more.

2

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x

I need Keywords for C# and syntax rules for it.

If your people come crazy, you will not need to your mind any more.

3

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x

punbb_geshi.php

if (!defined('PUN_ROOT'))
    exit('The constant PUN_ROOT must be defined and point to a valid PunBB installation root directory.');

  //upload geshi to domain.com/forums/geshi
  include_once(PUN_ROOT.'syn/geshi/geshi.php');
  $geshi = new GeSHi($code, $codename, PUN_ROOT.'syn/geshi/geshi');
//  $geshi->set_header_type(GESHI_HEADER_PRE);
// $geshi->enable_classes(true);
//  $geshi->enable_line_numbers(GESHI_NORMAL_LINE_NUMBERS);
  $code=$geshi->parse_code();

this works fine

4 (edited by zaher 2005-02-04 19:14)

Re: Multi Syntax Highlight for code tags to PunBB 1.2.x

Thanks, i fixed, in next release smile

EDIT:
if someone know about another beautifier for more integrating.

If your people come crazy, you will not need to your mind any more.