Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 GeSHi Syntax Highlighter integration

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
muzishun Posted - 24 January 2008 : 12:55:24
Current version: 0.8b

If you haven't already seen it, GeSHi is a phenomenal syntax highlighting engine written in PHP. It supports several dozen languages, and is just all around cool. I saw a MOD for a phpBB forum that used GeSHi and decided Snitz needed one as well.

Download from SnitzBitz.

From the readme:
quote:
This MOD adds a new forum code tag that uses the GeSHi syntax highlighter to highlight different code languages. In order to use this, you must be able to run PHP scripts on your web server.
<
15   L A T E S T    R E P L I E S    (Newest First)
muzishun Posted - 25 January 2008 : 13:42:32
Update: I found some typos and errors in the readme file. New version is 0.8b.<
muzishun Posted - 25 January 2008 : 10:47:47
Oooh, that's a good catch. Now that you mention it Marcel, I remember when you had that problem. I didn't even think about it for this MOD. I'll update the files and post back here when 0.75b is ready .

Update: Version 0.75b is up on SnitzBitz. The only change is to the DoGeSHiCode function in inc_func_common.asp.<
MarcelG Posted - 25 January 2008 : 06:45:22
quote:
Originally posted by Shaggy

Very nice but you're going to run into problems when trying to use this tag with a url tag in the same post (see my test posts in your demo topic). This is because you are closing the opening tag with "].



Yep, had that too with the 'tooltip' mod. Decided to use the asterisk there instead: [tip=*text*][/tip]
Perhaps for this one: [code=#code#][/code]?<
Shaggy Posted - 25 January 2008 : 04:18:53
Very nice but you're going to run into problems when trying to use this tag with a url tag in the same post (see my test posts in your demo topic). This is because you are closing the opening tag with "].

<
muzishun Posted - 24 January 2008 : 18:03:29
Yeah. I thought about rewriting the whole thing in ASP... but only for a second. Considering just about every host allows PHP (not sure about free hosts though... anybody?), I didn't see that as being a major drawback. The only thing it really prevents is direct integration into the forum, though it's fairly seamless as is right now.<
Podge Posted - 24 January 2008 : 17:59:26
Works for me in Firefox 2.0.0.11. Looks wonderful. Pity its in php though.<
muzishun Posted - 24 January 2008 : 17:59:12
Thanks for double checking, phy.<
phy1729 Posted - 24 January 2008 : 17:50:40
Works great. If only my forum was on a coding topic.<
muzishun Posted - 24 January 2008 : 17:43:19
phy, would you mind checking again just to be sure? I just re-uploaded the entire set of code (about 30 seconds before you posted), and it should be working at this point.

Note to self: Test on a different install of the forum when you give out links.<
phy1729 Posted - 24 January 2008 : 17:40:14
It doesn't work with FF 2.0.0.11 Mac 10.4.11 Oddly it does work in the preview. Looks nice other than that.

Also when trying to the to the preview from edit it has an error namely
Microsoft VBScript runtime error '800a000d'

Type mismatch: 'rs'

/test/basesnitz/post.asp, line 642<
muzishun Posted - 24 January 2008 : 17:40:01
Sorry. I was working on testing something else that I am working on, and the GeSHi part broke. Everything should be working now.<
MaD2ko0l Posted - 24 January 2008 : 17:38:11
eermm...hi, just went on the testing site and its just a load of code...nothing is highlighted or anything..am i missing somthing?<
muzishun Posted - 24 January 2008 : 16:33:14
Yeah it does. When I saw it being used on the Web Developers' forum here at work, I knew I *had* to do it for Snitz. There's another interesting PHP app that I am working on creating a MOD for, but that one will remain a secret for now. <
ruirib Posted - 24 January 2008 : 16:12:45
This looks really cool.<
muzishun Posted - 24 January 2008 : 16:05:41
Thanks a bunch. I sure am. I've got about a half dozen more MODs lined up in my queue. Hopefully I'll make my way through the list by late February or early March.<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000 Version 3.4.07