Author: James78
Modification Description:
This MOD takes the original BBCode CODE tag and makes it able to syntax highlight almost any language you can think of (200+!)
Modification Version: 1.0 RC
Requirements: GeSHi - Download (1.0.8.10)
Compatibility:
- Works with 3.0.8+


Features:
- Syntax highlighting in the CODE tag for 200+ languages!
- Highlighted language indicated on CODE box
- Line numbers (with feature to enable/disable in ACP)


Modification Download: Download
Bug? Please report all bugs to my bug tracker (you need an account to report bugs; register here), unless it's a support issue, or a small problem, like a packaging error. You will have to differentiate between installation/user error (and the like) and what could be a bug. While I will definitely maintain support for the MOD in this topic, I cannot do bug reports in topic as it gets very messy and disorganized (your post may get missed in a bunch of other posts).
Usage:
To enable/disable the line numbers:

How to use in posts: (be sure to remove spaces in code tags)
Code: Select all
[ code=html4strict]<!-- HTML -->
<div style="width: 50px;">hi there</div>
<a href="https://www.phpbb.com">phpBB</a>[ /code]
[ code=cpp]// C++
int i= 0;
i++;[ /code]
[ code=delphi](* Delphi *)
repeat
Inc( i, 2 );
until i>= 500;[ /code]
[ code=sql]-- SQL
SELECT *
FROM phpbb_users
WHERE user_type= 1;[ /code]
[ code=dos]rem DOS
@echo off
fsutil fsinfo volumeinfo c:\
pause[ /code]
[ code=vb]' Visual Basic
Dim i As Long
On Error Goto 0[ /code]
Code: Select all
2011-02-22 - Version 0.9.21 BETA
- Added database updater script
2011-02-06 - Version 0.9.2 BETA
- Added line numbers (with feature to enable/disable in ACP)
2011-02-06 - Version 0.9.1 BETA
- Only import GeSHi if language was given
- Highlighted language is now displayed on CODE box
2011-02-06 - Version 0.9 BETA
- Released MOD into the wild