The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Syntax Highlighter Details »» | |||||||||||||||||||||||||
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
Fix for WYSIWYG missing tags search for inside class_bbcode_alt.php PHP Code:
PHP Code:
PHP Code:
PHP Code:
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 Show Your Support
|
Благодарность от: | ||
m7sen |
Comments |
#12
|
|||
|
|||
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.
|
#13
|
||||
|
||||
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 |
#14
|
||||
|
||||
thank you lizard king!
all the best beduino |
#15
|
|||
|
|||
Great! Just what we needed.
|
#16
|
|||
|
|||
EDIT: Fixed, had to enable legacy support:
http://alexgorbatchev.com/wiki/Synta...hter:Upgrading Demo: http://www.joinuv.com/forums/showthread.php?t=17316 |
#17
|
|||
|
|||
Thanks. It would be great if you could package this is a mod, and make it so it overwrites the standard [code] tag.
SitePoint has a nice implementation with a code list dropdown, it would be great to have something like that. |
#18
|
|||
|
|||
Can anyone please confirm if this works with vBulletin 3.8.4?
Thanks. |
#19
|
|||
|
|||
Works perfectly with vB 4.0.x with a minor modification in the first code block,
Code:
/** * Handles a [ high ] tag. Displays a preformatted string. * * @param string The code to display * * @return string HTML representation of the tag. */ function handle_bbcode_high($code , $option) { global $vbulletin, $vbphrase, $stylevar, $show; // remove unnecessary line breaks and escaped quotes $code = str_replace(array('<br>', '<br />'), array('', ''), $code); $code = $this->strip_front_back_whitespace($code, 1); if ($this->printable) { $code = $this->emulate_pre_tag($code); $template = 'bbcode_high_printable'; } else { $blockheight = $this->fetch_block_height($code); $template = 'bbcode_high'; } // eval('$html = "' . fetch_template($template) . '";'); // return $html; $templater = vB_Template::create($template); $templater->register('blockheight', $blockheight); $templater->register('code', $code); $templater->register('option', $option); return $templater->render(); } /** * Handles a [ high ] tag. Displays a preformatted string. * * @param string The code to display * * @return string HTML representation of the tag. */ function handle_bbcode_high1($code) { global $vbulletin, $vbphrase, $stylevar, $show; // remove unnecessary line breaks and escaped quotes $code = str_replace(array('<br>', '<br />'), array('', ''), $code); $code = $this->strip_front_back_whitespace($code, 1); if ($this->printable) { $code = $this->emulate_pre_tag($code); $template = 'bbcode_high1_printable'; } else { $blockheight = $this->fetch_block_height($code); $template = 'bbcode_high1'; } // eval('$html = "' . fetch_template($template) . '";'); // return $html; $templater = vB_Template::create($template); $templater->register('blockheight', $blockheight); $templater->register('code', $code); return $templater->render(); } |
#20
|
|||
|
|||
Quote:
[high]test[/high] [high1=php]//php code[/high1] |
#21
|
|||
|
|||
anybody alive around here ? this thing does NOT work
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|