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,271
MyBB Compatibility: 1.4.x, 1.6.x, 1.8.x
Plugin License: GPLv3
Uploader: ZiNgA BuRgA
nodba Offline
Junior Member
**
Posts: 3
Joined: Dec 2010
Post: #61
RE: Cool Codes (Syntax Highlighter)
ZiNgA BuRgA, you can add the CSS code for this plugin?

And I had an idea that I think could improve this plugin. Change the "image 1", for the "image 2":

       
09-06-2011 09:13 PM
Find all posts by this user Quote this message in a reply
Sama34 Offline
Senior Member
****
Posts: 490
Joined: May 2011
Post: #62
RE: Cool Codes (Syntax Highlighter)
(09-06-2011 09:13 PM)nodba Wrote:  ZiNgA BuRgA, you can add the CSS code for this plugin?

And I had an idea that I think could improve this plugin. Change the "image 1", for the "image 2":

That is a interesting idea there, but you will need to edit the editor.js file right?

Support PM's will be ignored. Yipi
Plugins: Announcement Bars - Custom Reputation - Mark PM As Unread
09-07-2011 05:56 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: #63
RE: Cool Codes (Syntax Highlighter)
Maybe I'll look at it in future, but I don't have any intentions of adding a button to the editor at this point in time.
Thanks for the suggestion nonetheless.

My Blog
09-07-2011 08:45 AM
Find all posts by this user Quote this message in a reply
nodba Offline
Junior Member
**
Posts: 3
Joined: Dec 2010
Post: #64
RE: Cool Codes (Syntax Highlighter)
(09-07-2011 08:45 AM)ZiNgA BuRgA Wrote:  Maybe I'll look at it in future, but I don't have any intentions of adding a button to the editor at this point in time.
Thanks for the suggestion nonetheless.

You're welcome. Smile

And add the CSS code, you see no viable right now? Because for my forum I "need" the HTML, CSS, PHP, Javascript and SQL codes.

A greeting and thanks for your time!
(This post was last modified: 09-07-2011 09:41 AM by nodba.)
09-07-2011 09:36 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #65
RE: Cool Codes (Syntax Highlighter)
CSS highlighting was something that I did want to add, though I can't say it'll happen any time soon.  Sorry about that.

My Blog
09-07-2011 10:21 AM
Find all posts by this user Quote this message in a reply
nodba Offline
Junior Member
**
Posts: 3
Joined: Dec 2010
Post: #66
RE: Cool Codes (Syntax Highlighter)
I understand, thanks anyway. Smile
09-07-2011 10:22 AM
Find all posts by this user Quote this message in a reply
Mihu Offline
Junior Member
**
Posts: 2
Joined: Sep 2011
Post: #67
RE: Cool Codes (Syntax Highlighter)
Can someone tell me how to fix this?
I tried to change the width value from highlight.css (from 100% to 90%) but the same problem.
Thanks.
(This post was last modified: 09-10-2011 10:45 PM by Mihu.)
09-10-2011 10:44 PM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #68
RE: Cool Codes (Syntax Highlighter)
You can try to set the width in your .codeblock code class in your global.css. For example: 400px.

09-12-2011 04:00 AM
Find all posts by this user Quote this message in a reply
Mihu Offline
Junior Member
**
Posts: 2
Joined: Sep 2011
Post: #69
RE: Cool Codes (Syntax Highlighter)
(09-12-2011 04:00 AM)RateU Wrote:  You can try to set the width in your .codeblock code class in your global.css. For example: 400px.
Now it`s working... But it is very strange because I cannot set a relative value...
Thanks very much!Wink
(This post was last modified: 09-12-2011 05:07 AM by Mihu.)
09-12-2011 05:05 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #70
RE: Cool Codes (Syntax Highlighter)
(09-12-2011 05:05 AM)Mihu Wrote:  But it is very strange because I cannot set a relative value...

It will fit on the page in "standard" browser, even if we put 100px there (you can try to resize the browser window). But, IE6 will take the width value (I don't know about the other IE versions).

(This post was last modified: 09-12-2011 05:27 AM by RateU.)
09-12-2011 05:23 AM
Find all posts by this user Quote this message in a reply


Forum Jump: