MyBB Codes
[Release 1.4.x] Regentronique JASS Highlighter - Printable Version

+- MyBB Codes (http://www.mybbcodes.com)
+-- Forum: Mods Database (/forumdisplay.php?fid=4)
+--- Forum: Plugins for 1.4.x and 1.6.x (/forumdisplay.php?fid=5)
+--- Thread: [Release 1.4.x] Regentronique JASS Highlighter (/showthread.php?tid=718)


[Release 1.4.x] Regentronique JASS Highlighter - exdiogene - 01-19-2010 07:48 PM

//----------------
//PLUGIN OVERVIEW:
//----------------

Name: JASS Highlighter
Author: exdiogene
Description: This plugin will highlight the content of a JASS script. Just put the content between these two codes : [jass] [/jass]
Website: http://www.mybbcodes.com
Version: 1.0
Compatibility: 1.4.x,1.6.x,1.8.x,2.0.x
Files To Upload: One
Files To Edits: None
Author is Responsible For Any Damage: NO
Author Provide Support For This Product: YES
License: Inside the License Folder
Copyrights: All codes within the product are strongly copyrighted to Regentronique.

//------------
//SCREENSHOTS:
//------------
[attachment=553]
//----------
// DOWNLOAD:
//----------
[attachment=548]

Last update (Jan 19, 2010):[attachment=551]

Last upgrade V1.2 (Jan 19, 2010):[attachment=554]
Added : Editable style settings.

//--------
//SUPPORT:
//--------

You can reach our support forum at: Plugins Support
The administrator can be reached here: exdiogene

---
I hope that you will appreciate this plugin.
Thank You
exdiogene
---


RE: [Release 1.4.x] Regentronique JASS Highlighter - TheLifelessOne - 01-19-2010 11:31 PM

I found another bug.
When you hit "preview", it parses the code into XHTML/CSS, and then inputs that into the post.


RE: [Release 1.4.x] Regentronique JASS Highlighter - exdiogene - 01-19-2010 11:39 PM

Yes i forgot to not parse in the preview mode, my mistake. Sorry!

I will correct it right away...


RE: [Release 1.4.x] Regentronique JASS Highlighter - exdiogene - 01-20-2010 12:16 AM

Ok, version 1.2 have been uploaded with the added bonus of some editable style settings. Wink

Enjoy!


RE: [Release 1.4.x] Regentronique JASS Highlighter - TheLifelessOne - 01-20-2010 12:16 AM

Can't download the new version... :/


RE: [Release 1.4.x] Regentronique JASS Highlighter - exdiogene - 01-20-2010 12:21 AM

You can now! Smile


RE: [Release 1.4.x] Regentronique JASS Highlighter - TheLifelessOne - 01-20-2010 12:27 AM

Well, now it's not highlighting...
D:
Ahh! Nevermind. Seems to work now...


RE: [Release 1.4.x] Regentronique JASS Highlighter - exdiogene - 01-20-2010 12:32 AM

This is odd, i installed it on my test forum and you can see there that it is :

http://mybbzone.com/showthread.php?tid=7


RE: [Release 1.4.x] Regentronique JASS Highlighter - TheLifelessOne - 01-20-2010 12:35 AM

I forgot to activate it... Big Grin

Also, it's still having the problem with outputting the XHTML/CSS when previewed. Sad


RE: [Release 1.4.x] Regentronique JASS Highlighter - exdiogene - 01-20-2010 12:39 AM

Thi is also odd i do not have this problem here, let me verify few things and i will be back in few minutes...


RE: [Release 1.4.x] Regentronique JASS Highlighter - exdiogene - 01-20-2010 12:51 AM

Ok, it could be because of a setting in your AadminCP or your template. I have figured out another way to be more sure that it will not parse in preview mode.

I will upload the file and allow you to download it in 2 minutes...


RE: [Release 1.4.x] Regentronique JASS Highlighter - exdiogene - 01-20-2010 12:57 AM

Ok you can download it now and i hope that it will recognize when you are in preview mode! Wink


RE: [Release 1.4.x] Regentronique JASS Highlighter - TheLifelessOne - 01-20-2010 01:01 AM

Well, it doesn't highlight in preview mode, but there's no more error with it putting in the XHTML/CSS (at least as far as I can tell).

So that's good.


RE: [Release 1.4.x] Regentronique JASS Highlighter - exdiogene - 01-20-2010 01:17 AM

The way it is designed it is parsing at the pre-output stage of the page. So it is a normal behavior, because it cannot be parse when it is edited.

So enjoy the new features, i will add more style settings this week...


RE: [Release 1.4.x] Regentronique JASS Highlighter - TheLifelessOne - 01-20-2010 07:10 PM

Found a bug:
It doesn't seem to keep whitespace (tab).


RE: [Release 1.4.x] Regentronique JASS Highlighter - exdiogene - 01-20-2010 07:32 PM

A "tab" do not really exists in HTML, neither a series of 8 white spaces to replace. You must put 8 " " to compensate.

I saw nothing in the JASS parsing function to translate those elements, so are you expecting me to correct this function you sent me so it would work better?


RE: [Release 1.4.x] Regentronique JASS Highlighter - netjockey - 01-21-2010 10:09 AM

This also Seem to be Good plugin


RE: [Release 1.4.x] Regentronique JASS Highlighter - JSDK - 05-27-2010 04:01 PM

Please add Image with effect


RE: [Release 1.4.x] Regentronique JASS Highlighter - Laiev - 10-03-2010 12:07 PM

jass of warcraft? o.o


RE: [Release 1.4.x] Regentronique JASS Highlighter - exdiogene - 10-03-2010 12:26 PM

Yes, the JASS scripts are used there!

Wink


RE: [Release 1.4.x] Regentronique JASS Highlighter - Laiev - 10-03-2010 01:03 PM

it should work like:


[jass]function test takes unit u returns nothing
endfunction[/jass]

(at least in the preview don't work)


RE: [Release 1.4.x] Regentronique JASS Highlighter - exdiogene - 10-03-2010 02:33 PM

Yes it is working like this, it will highlight the code in a way similar to what the [ PHP ] tags are doing for PHP code.

Wink


RE: [Release 1.4.x] Regentronique JASS Highlighter - Laiev - 10-03-2010 03:28 PM

well... this don't work for me |: don't know why... anything else to do then import to inc/plugin and install it?


RE: [Release 1.4.x] Regentronique JASS Highlighter - exdiogene - 10-03-2010 04:19 PM

If you have put your JASS code between [jass] [/jass] MyCodes tags and activated the plugin, then it should work!

Can you give me an account to test it on your site?


RE: [Release 1.4.x] Regentronique JASS Highlighter - Laiev - 10-04-2010 01:57 AM

it work now (just need to refresh the page) but it remove all the spaces... making a giant text wall


RE: [Release 1.4.x] Regentronique JASS Highlighter - exdiogene - 10-04-2010 07:41 AM

I could modify the plugin to add an extra setting allowing to replace spaces/tabs with proper amount of " ".

I will put this in my ToDo list for november... Wink


RE: [Release 1.4.x] Regentronique JASS Highlighter - psycho.ts - 11-05-2010 12:59 PM

thanks for this Smile


RE: [Release 1.4.x] Regentronique JASS Highlighter - McMillan - 12-26-2010 04:53 PM

My Polish MyBB Board with this plugin and Polonization is Great Big Grin


RE: [Release 1.4.x] Regentronique JASS Highlighter - metonator - 06-18-2011 01:08 AM

like it
would you tell me how to implement this on my phpbb forum please?


RE: [Release 1.4.x] Regentronique JASS Highlighter - vanskate - 06-25-2011 04:04 AM

thanks...awesome