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
Firefox Wins Offline
Member
***
Posts: 164
Joined: Mar 2008
Post: #41
RE: Cool Codes (Syntax Highlighter)
(12-19-2010 08:34 PM)Pirata Nervo Wrote:  How can I download an earlier version to do a diff?

PN, If you still want to study the changes, here:
v.1.22 from ~12/3/10

.7z  coolcode-1.22.7z (Size: 14.45 KB / Downloads: 484)
12-21-2010 09:24 AM
Find all posts by this user Quote this message in a reply
Pirata Nervo Offline
Member
***
Posts: 235
Joined: Jan 2008
Post: #42
RE: Cool Codes (Syntax Highlighter)
Thanks Biggrin
12-21-2010 09:35 AM
Find all posts by this user Quote this message in a reply
Firefox Wins Offline
Member
***
Posts: 164
Joined: Mar 2008
Post: #43
RE: Cool Codes (Syntax Highlighter)
(12-21-2010 09:35 AM)Pirata Nervo Wrote:  Thanks Biggrin

You're welcome + Happy Holidays.  Biggrin
12-22-2010 09:39 AM
Find all posts by this user Quote this message in a reply
DamYan Offline
Junior Member
**
Posts: 4
Joined: Jun 2008
Post: #44
RE: Cool Codes (Syntax Highlighter)
Yummi, can you add the wrap lines option or write here how to edit the plugin to be lines wrapped up like here: http://sestevenson.wordpress.com/2010/09...http://sestevenson.wordpress.com/2010/09/20/fixed-point-d
01-15-2011 06:59 AM
Find all posts by this user Quote this message in a reply
leefish Offline
Hamster
*****
Posts: 1,009
Joined: Apr 2010
Post: #45
RE: Cool Codes (Syntax Highlighter)
Thats how it looks here - except in Opera...sometimes in Opera it doesnt wrap.


[Image: leelink.gif]
MYBB1.6 & XThreads
01-15-2011 07:58 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #46
RE: Cool Codes (Syntax Highlighter)
It won't wrap the lines.  There's a difficulty with doing it along with line numbers.  The example you posted won't select the code easily without the line numbers.

Maybe I'll think about wrapping without line numbers, but probably unlikely... >_>

My Blog
(This post was last modified: 01-15-2011 09:46 AM by ZiNgA BuRgA.)
01-15-2011 09:43 AM
Find all posts by this user Quote this message in a reply
sonic Offline
Junior Member
**
Posts: 6
Joined: Feb 2011
Post: #47
RE: Cool Codes (Syntax Highlighter)
Hi, would like to insert the CSS code in the plugin. What should I enter where?

Thank you for your help.
02-21-2011 12: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: #48
RE: Cool Codes (Syntax Highlighter)
Look in the cache folder.

My Blog
02-21-2011 04:42 PM
Find all posts by this user Quote this message in a reply
sonic Offline
Junior Member
**
Posts: 6
Joined: Feb 2011
Post: #49
RE: Cool Codes (Syntax Highlighter)
Okay I have, what do I do now? Please help me.
(This post was last modified: 03-01-2011 05:42 AM by sonic.)
03-01-2011 05:42 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #50
RE: Cool Codes (Syntax Highlighter)
You can insert your CSS code into the highlight.css file.

03-01-2011 05:49 AM
Find all posts by this user Quote this message in a reply


Forum Jump: