MyBB Community Forums

Full Version: code plugin/feature request
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi all
i think being able to do this would help
or
[code = batch]
[/code]
or
[code="python"]
[/code]
i was thinking we don't need syntax highlighting as such but just a code identifier
PHP only supports syntax highlighting for PHP code.

For other languages, you'd need to write a custom parser (which, mind you, is rather slow to do in PHP), so this definitely can't be included as a core feature of MyBB.

Moved to Requests.

(I recall seeing a GeSHi plugin somewhere around the place)
(2008-10-30, 01:07 PM)ZiNgA BuRgA Wrote: [ -> ]PHP only supports syntax highlighting for PHP code.

For other languages, you'd need to write a custom parser (which, mind you, is rather slow to do in PHP), so this definitely can't be included as a core feature of MyBB.

Moved to Requests.

(I recall seeing a GeSHi plugin somewhere around the place)

I guess you mean this version: http://mods.mybboard.net/archive/view/ge...ode-plugin

But that version is made for mybb 1.2.
I tried installing it on mybb 1.4, but it doesnt seem to do line numbers and indenting properly...