Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Syntax Highlighter Details »
Syntax Highlighter
Mod Version: 1.0.1, by Lizard King (Member) Lizard King is offline
Developer Last Online: Jan 2014 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.1 Rating: (7 votes - 4.71 average) Installs: 29
Released: 13 Jun 2008 Last Update: Never Downloads: 117
Not Supported Template Edits Code Changes Additional Files  

I donot like the limitation of bbcodes with code , php and html. Thats why i decided to integrate syntaxhighlighter - Google Code with vBulletin. You can use different brushes such as SQL , Css , Xml , Pyhton etc... Here are the installation instructions
  1. Download latest version of Syntax Highlighter from syntaxhighlighter - Google Code
  2. Extract the folder and upload js files to a folder named js within your forum root.
  3. Edit class_bbcode.php
    Search for

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    Add After

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    Search For

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    Add After

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  4. Add the following bottom of Footer template

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  5. Add the following 4 template
    1. bbcode_high

      Block Disabled:      (Update License Status)  
      Suspended or Unlicensed Members Cannot View Code.

    2. bbcode_high1

      Block Disabled:      (Update License Status)  
      Suspended or Unlicensed Members Cannot View Code.

    3. bbcode_high_printable

      Block Disabled:      (Update License Status)  
      Suspended or Unlicensed Members Cannot View Code.

    4. bbcode_high1_printable

      Block Disabled:      (Update License Status)  
      Suspended or Unlicensed Members Cannot View Code.

  6. Add the following to your Additional CSS settings

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.


Fix for WYSIWYG missing tags
search for inside class_bbcode_alt.php

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

replace with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

search for

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

replace with

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Update at 18.06.2008 : WYSIWYG missing tags bug has been corrected

If you want you can upload the js files to a different directory. Just donot forget to change the file path within footer template.

This mod is brought to you by vBTech

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	syntaxhighlighter.gif
Views:	814
Size:	29.0 KB
ID:	82264  

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
Mod Developer Type Replies Last Post
Search Engine search Term Highlighter MadKad vBulletin 3.5 Add-ons 14 08 Oct 2006 10:27
ActionScript Syntax Highlighter AdmiralB vBulletin 3.0 Full Releases 12 08 Jan 2006 19:26

Comments
  #2  
Old 14 Jun 2008, 01:11
nothing4me nothing4me is offline
 
Join Date: Oct 2007
Brilliant job! This makes me want to start a coding forum!
Reply With Quote
  #3  
Old 14 Jun 2008, 02:38
Quantnet Quantnet is offline
 
Join Date: Nov 2006
I installed this per instruction. How do I use it?
Reply With Quote
  #4  
Old 14 Jun 2008, 06:06
Magnumutz's Avatar
Magnumutz Magnumutz is offline
 
Join Date: Feb 2006
Real name: Alex
This is awesome for coder forums
Good job !
__________________

Reply With Quote
  #5  
Old 14 Jun 2008, 07:48
Lizard King's Avatar
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Real name: Mert
Originally Posted by Quantnet.org View Post
I installed this per instruction. How do I use it?
[high=language]code[/high] or [high]code[/high]
__________________
Mert G÷kšeimam / Crawlability Inc.

DepKaš | vBSEO 3.3.0 - vBulletin Search Engine Optimisation
Reply With Quote
  #6  
Old 14 Jun 2008, 09:18
snowlion snowlion is offline
 
Join Date: Mar 2005
great mod . installed
Reply With Quote
  #7  
Old 14 Jun 2008, 13:28
Quantnet Quantnet is offline
 
Join Date: Nov 2006
Originally Posted by Lizard King View Post
[high=language]code[/high] or [high]code[/high]
Many thanks.
is there any plan to modify the code tag button # to use this or create a new button for this bbcode?

Also, when i use this [high] to post something, when I go back to edit the post, the tag is not visible. I can't also edit posts in the past to use this tag, only new posts can use this.

P.S: what are the list of language option?

thanks
Reply With Quote
  #8  
Old 18 Jun 2008, 12:36
Lizard King's Avatar
Lizard King Lizard King is offline
 
Join Date: Jan 2005
Real name: Mert
Also, when i use this [high] to post something, when I go back to edit the post, the tag is not visible. I can't also edit posts in the past to use this tag, only new posts can use this.
This is now fixed. The fix is inside the first post.
__________________
Mert G÷kšeimam / Crawlability Inc.

DepKaš | vBSEO 3.3.0 - vBulletin Search Engine Optimisation
Reply With Quote
  #9  
Old 18 Jun 2008, 20:46
rizelim's Avatar
rizelim rizelim is offline
 
Join Date: Nov 2006
thanks
__________________
Temizel Lift Community
Reply With Quote
  #10  
Old 19 Jun 2008, 04:31
Quantnet Quantnet is offline
 
Join Date: Nov 2006
Originally Posted by Lizard King View Post
This is now fixed. The fix is inside the first post.
Thanks you.

Not sure if this is a bug.
When I go back and edit old posts and replace code tags by the the new high tags, it only works after I click on Go Advance and Preview.
If i only edit and Save, it will not work. It seems like the Preview will invoke the script before it can be saved.
Reply With Quote
  #11  
Old 17 Nov 2008, 18:16
TradeOfAllJacks TradeOfAllJacks is offline
 
Join Date: Nov 2008
Any chance for actionscript 2/3 support for this? I've been trying to find a good 3.7 syntax highlighter but to no avail.
Reply With Quote
  #12  
Old 24 Apr 2009, 09:04
veenuisthebest's Avatar
veenuisthebest veenuisthebest is offline
 
Join Date: Mar 2008
Real name: Vinayak
This mod works good in 3.8.x, I have two questions please:-

1. Is there any chance of getting this done without file edits?

2. Any way of showing the old default vb's style of code, when javascript is disabled on the user's browser?

Thanks
Reply With Quote
  #13  
Old 02 Jun 2009, 19:41
beduino's Avatar
beduino beduino is offline
 
Join Date: Dec 2005
Real name: Joao
thank you lizard king!
all the best
beduino
Reply With Quote
  #14  
Old 02 Jun 2009, 20:31
sheppardzwc sheppardzwc is offline
 
Join Date: Dec 2008
Location: South Carolina
Real name: Zach
Great! Just what we needed.
Reply With Quote
  #15  
Old 18 Jun 2009, 18:56
wo0kie wo0kie is offline
 
Join Date: Jun 2009
EDIT: Fixed, had to enable legacy support:

http://alexgorbatchev.com/wiki/Synta...hter:Upgrading

Demo: http://www.joinuv.com/forums/showthread.php?t=17316

Last edited by wo0kie; 18 Jun 2009 at 20:00.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 06:16.

Layout Options | Width: Wide Color: