SourceCode HighLighter for bbPress

12/Jun/2010 2 Comentarios


SourceCode HighLighter is a plugin developed for bbPress that highlight source code in a message. SourceCode HighLighter is developed usign Generic Syntax Highlighter (GeSHi).

Tags:  code, formatting, syntax highlight

Tested over bbPress version 1.0


  • SourceCode HighLighter v1.0
    • First version


  • Unzip the plugin archive.
  • Copy sourcecode-highlighter folder into you bbPress plugin directory.
  • Activate the plugin

How use it?

  • Use the PRE tag to highlight the code.
  • Optionally you can use the LANG attribute to indicate the programming language to use as a format.
  • Optionally you can use the LINENO attribute to indicate the line number for which will begin to number the code. See supported sourcecode languages by GesHi.
  • Use single quotes for LANG and LINENO attribute values.


Just copy&paste this code in a bbPress message:

<pre lang='java' lineno='1'>
public class HolaMundo {
  public static void main(String[] args) {
    System.out.println("Hola Mundo");

Use single quotes for lang and lineno.

Websites that use SourceCode HighLighter

Dudas de Programacion (


Download the lastest version

2 comentarios en “SourceCode HighLighter for bbPress”

Víctor Cuervo


Thanks for your wonderful plugin.

When i active your plugin, i got following error:
Fatal error: Cannot redeclare class GeSHi in forum/my-plugins/sourcecode-highlighter/geshi.php on line 255

could you tell me how to fix this error?


¿Algo que nos quieras comentar?

Déjanos tu comentario, no te preocupes que tu email no será publicado