SourceCode HighLighter for bbPress

12/Jun/2010 2 Comentarios

Description

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

Versions

  • SourceCode HighLighter v1.0
    • First version

Install

  • 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.

Sample

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");
  }
}</pre>

Use single quotes for lang and lineno.

Websites that use SourceCode HighLighter

Dudas de Programacion (http://www.dudasprogramacion.com)

Download

Download the lastest version http://code.google.com/p/vcp/downloads/detail?name=sourcecode-highlighter-bbpress.zip

2 comentarios en “SourceCode HighLighter for bbPress”

Víctor Cuervo

lfgu

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?

Thanks

¿Algo que nos quieras comentar?

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

*