Cool Codes (Syntax Highlighter)
Author Message
This is pretty much a MyBB 1.4/1.6 port of my Syntax Highlighter for MyBB 1.2.
I've also added line numbers to this one.

To resolve speed issues, you may be interested in my preparser cache plugin.

See the following thread for examples of what this looks like: http://mybbhacks.zingaburga.com/showthread.php?tid=33 (note, no code edits required for this version of the plugin)
(This post was last modified: 11-24-2014 10:39 PM by ZiNgA BuRgA.)
Find all posts by this user
Quote this message in a reply
Download: coolcode-1.26.7z (14.52 KB)
Plugin Version: 1.26
Last Updated: 11-24-2014, 10:39 PM

Downloads: 1,103
MyBB Compatibility: 1.4.x, 1.6.x, 1.8.x
Plugin License: GPLv3
Uploader: ZiNgA BuRgA
Pirata Nervo Offline
Member
***
Posts: 235
Joined: Jan 2008
Post: #11
RE: Cool Codes (Syntax Highlighter)
Okay I can reproduce it now.

Does Opera have any kind of Firebug extension?
07-13-2010 10:44 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #12
RE: Cool Codes (Syntax Highlighter)
Right-click -> Inspect Element (opens DragonFly).

My Blog
07-14-2010 08:11 AM
Find all posts by this user Quote this message in a reply
Pirata Nervo Offline
Member
***
Posts: 235
Joined: Jan 2008
Post: #13
RE: Cool Codes (Syntax Highlighter)
Thanks I'll take a look at that within some hours once I wake up, it's 1:40 AM here right now Tongue
07-14-2010 10:40 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #14
RE: Cool Codes (Syntax Highlighter)
Updated to v1.2 - many many thanks to RateU for figuring out how to fix issues with Opera, as well as the max-width problem Biggrin
Also, thanks to him for pointing out issues with the archive, which should be fixed now.

Apart from those, this update changes a bit of behaviour with line numbers - if there's 5 or fewer lines, it will hide the line numbering.

My Blog
07-14-2010 11:02 AM
Find all posts by this user Quote this message in a reply
Pirata Nervo Offline
Member
***
Posts: 235
Joined: Jan 2008
Post: #15
RE: Cool Codes (Syntax Highlighter)
Oh well, thanks RateU Biggrin
07-14-2010 09:58 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #16
RE: Cool Codes (Syntax Highlighter)
Simple update to v1.21 to resolve issues with the preparser cache plugin.

My Blog
10-08-2010 10:00 AM
Find all posts by this user Quote this message in a reply
techu Offline
Member
***
Posts: 154
Joined: Sep 2010
Post: #17
RE: Cool Codes (Syntax Highlighter)
cool plugin but I dont think it is that much useful and it also slows down the forum.
BTW as I think there is something like this is already present in the mybb`s back end..

[Image: banner.png]
10-09-2010 02:23 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,338
Joined: Jan 2008
Post: #18
RE: Cool Codes (Syntax Highlighter)
(10-09-2010 02:23 AM)techu Wrote:  I dont think it is that much useful
For most forums, yes, but this can be quite useful for some forums.

(10-09-2010 02:23 AM)techu Wrote:  and it also slows down the forum.
Which is why I suggest using it with the preparser cache.

(10-09-2010 02:23 AM)techu Wrote:  BTW as I think there is something like this is already present in the mybb`s back end..
MyBB only comes with PHP syntax highlighting.

My Blog
10-09-2010 10:19 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,327
Joined: Mar 2010
Post: #19
RE: Cool Codes (Syntax Highlighter)
Thanks for the update, Yumi Smile

10-10-2010 06:47 AM
Find all posts by this user Quote this message in a reply
1master1 Offline
Member
***
Posts: 232
Joined: Oct 2010
Post: #20
RE: Cool Codes (Syntax Highlighter)
installed, preparser cache and coolcode plugins. but it isn't highlighing. coolcode is theme dependant? i'm using different theme than mybb default.
11-19-2010 04:22 AM
Find all posts by this user Quote this message in a reply


Forum Jump: