Follow me @Tmeister

BBpress Syntax Highlighter [English]

Posted by Tmeister On February - 1 - 2008

Description and Characteristics

BBPress:Syntax Hiliter it’s a code highlighter designed for bbpress based on iG:Syntax Hiliter. plugin

BBPress:Syntax Hiliter used GeSHi as conversion engine.

BBPress:Syntax Hiliter has been reported to work using these programming code:

  • ActionScript
  • ASP
  • C
  • CPP
  • CSS
  • Delphi
  • HTML
  • Java
  • Javascript
  • Mysql
  • Perl
  • PHP
  • Python
  • Ruby
  • SQL
  • VB
  • XML

Version.

0.1 Beta, First beta version

Installation:

As any other Bbpress plugin you have to:

  • Download the file.
  • Unzip it.
  • Tune plugin parameters (see below)
  • Upload it to your host server under bbpress-root-dir/my-plugins
  • Enable this plugin from Administrator menu.

Configuration:

BBPress:Syntax Hiliter has a configuration file (syntax_hilite_config.php) were you can change different values like:

PLAIN_TEXT : Disable/Enable “Plain text” option which will show code as unformatted text.

SHOW_LANG_NAME : Show lenguage name inside the code box

LINE_NUMBERS : Allows you the show line number as most code editors do.

FANCY_NUMBERS : Will let you change code number colours, only if option LINE_NUMBERS is enabled.

LINE_COLOUR_1 : This colour will be applied first to code lines numbers if option FANCY_NUMBERS is enabled.

LINE_COLOUR_2 : This colours will also be applied to code line numbers when FANCY_NUMBERS is enabled.

CSS

BBPress:Syntax Hiliter has a CSS file ( css/syntax_hilite_css.css ) were you can change the code’s text box.

Usage:

Once enabled and setup you can start writing post with code inside as follows:

[language]
Codigo
[/language]

Ejemplo:

[ as]
trace(“Hi there”)
[ /as]

Plugin will do the rest

Download

Files

download

Download: bbpress_syntax_hilite0.1.zip
Version: 0.1
Updated: February 1, 2008
Size: 98.93 KB

Comments

Please leave your comments in the URL http://klr20mg.com/2008/02/01/syntax-highlighter-plugin-for-bbpress-forums/

Acerca de mi
Enrique Chavez

Enrique Chávez también es conocido como @Tmeister es un desarrollador, emprendedor, poeta y loco.

Geek autodeclarado y apasionado de todo lo que tiene que ver con tecnología y desarrollo.

Cuenta con una experiencia de más de 7 años en el ramo del desarrollo, creando, sobre todo, aplicaciones web en la empresa Sapotek.

A finales del 2008 crea, junto con 3 colegas, la consultoría llamada AureaCode, enfocándose a brindar servicios de desarrollo web en todas sus variantes.

Si necesitas algún tipo de información o consulta por favor no dude en escribir.

View Enrique Chávez's profile on LinkedIn

Carlos Enrique Chavez Garcia's VisualCV

RSS Feed

Links Patrocinados