Cool Codes (Syntax Highlighter)
Author Message
This plugin is problematic under PHP 7.x or newer.

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: 02-28-2021 08:45 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,288
MyBB Compatibility: 1.4.x, 1.6.x, 1.8.x
Plugin License: GPLv3
Uploader: ZiNgA BuRgA
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Cool Codes (Syntax Highlighter)
The advantages from this plugin is there are no more   chars appear when we copy and paste the code from any code tag to template. It's more 'readable'. There are line numbers, it will make us easier if we want to pointing up a specified line in post. And the select button too... I love it.

Amazing, Yumi. Thank you very much.

03-18-2010 11:57 AM
Find all posts by this user Quote this message in a reply
Pirata Nervo Offline
Member
***
Posts: 235
Joined: Jan 2008
Post: #3
RE: Cool Codes (Syntax Highlighter)
Nice! You've updated it Biggrin Last time I checked it was for 1.2 only so I decided not to try it, thanks a lot for updating it
03-31-2010 11:42 PM
Find all posts by this user Quote this message in a reply
Firefox Wins Offline
Member
***
Posts: 164
Joined: Mar 2008
Post: #4
RE: Cool Codes (Syntax Highlighter)
(03-31-2010 04:42 AM)Pirata Nervo Wrote:  Nice! You've updated it Biggrin Last time I checked it was for 1.2 only so I decided not to try it, thanks a lot for updating it

Yes
04-13-2010 05:01 PM
Find all posts by this user Quote this message in a reply
Imran Offline
Member
***
Posts: 204
Joined: Apr 2010
Post: #5
RE: Cool Codes (Syntax Highlighter)
Excellent

[Image: logo.png]

[Image: twitter.png]
04-26-2010 05:41 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Technoman Offline
Forum Idiot
Posts: 108
Joined: Jun 2010
Post: #6
RE: Cool Codes (Syntax Highlighter)
do we need to edit anything or we just put this in plugins and voila it works instantly?
06-06-2010 07:08 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #7
RE: Cool Codes (Syntax Highlighter)
No code edits required in this version.

My Blog
06-06-2010 07:43 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #8
RE: Cool Codes (Syntax Highlighter)
Geerrrr, seems that Opera (10.5x) is totally breaking the line numbering.  Looks fine in Firefox, and I tried all sorts of things, but couldn't get it to work in Opera.  Its crappy DragonFly debugger isn't much help either Frown

Does anyone, with more CSS knowledge, know why Opera doesn't like me?
Thanks.

My Blog
07-13-2010 07:15 PM
Find all posts by this user Quote this message in a reply
Pirata Nervo Offline
Member
***
Posts: 235
Joined: Jan 2008
Post: #9
RE: Cool Codes (Syntax Highlighter)
It displays fine for me (c++ code) on Opera 10.60
Do you have a screenshot of it not working?
07-13-2010 09:29 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #10
RE: Cool Codes (Syntax Highlighter)
Try this thread: http://mybbhacks.zingaburga.com/showthread.php?tid=292
Maybe also try reducing the width of your browser.  Once you've done that, try scrolling down some of the larger code boxes.

My Blog
07-13-2010 10:34 PM
Find all posts by this user Quote this message in a reply


Forum Jump: