The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Advanced Syntax Highlighting - BBCode [highlight] Details »» | |||||||||||||||||||||||||||
Advanced Syntax Highlighting - BBCode [highlight]
Developer Last Online: Jan 2023
Advanced Syntax Highlighting
This Hack provides a [highlight] BBCode to highlight a wide range of Languages such as XML, HTML, Java, Javascript, SQL and so on. It uses GeSHi, which is included in this ZIP. Details 1 Product XML with 2 Plugins and 2 Templates Please only click Install if you actually have installed/are using this Hack, and click Uninstall whan you don't use it any longer! Show Your Support
|
Comments |
#62
|
||||
|
||||
This is a problem I am having with ALL code on my forums including the code that your modification uses. In the first attachment you will see that there is a large space at the bottom of all the code.
That was the first issue. You will also see that all the code used with YOUR modification does not get highlighted at ALL AND is on one line. You can see that on the second attachment. I also wanted to change the highlight colors of ALL code including PHP. I also wanted to change the default font for highlighted code from courier new to something else. I use 10px font size and courier new is just too small for 10px. I would like to change the font face NOT the size. |
#63
|
|||
|
|||
everytime you update Geshi it stops working ?????
PHP Code:
|
#64
|
|||
|
|||
Any way to get this to plug into the code button? The by doign [code] example code [/ code] it would automatically replace it with [highlight=Java] example code [/ highlight].
This would be much easier for less technical forum users to work and means the admin could limit the syntax highlighting to one specific language like Java if you run a Java programming forum. Previously I got Geshi to work on the code button but I had to hack the php code for BBcode. Nice to see a more friendly way to get Geshi in there now anyway. ffevo: You can change fonts and colours by editing the php.php file or what ever language you are using in /incudes/geshi Also would like to suggest the following changes Code:
if (!is_array($codefind)) { $codefind1 = array( '<br>', // <br> to nothing '<br />' // <br /> to nothing ); $codereplace1 = array( '', '' ); $codefind2 = array( '>', // > to > '<', // < to < '"', // " to ", '&', // & to & '& #91;', // without the space after the & '& #93;', // ] without the space after the & ); $codereplace2 = array( '>', '<', '"', '&', '[', ']', ); } EDIT: you can edit includes/class_bbcode.php to get the plugin to use [code] with a bit of hacking. Can't be doign with that at the moment so I'm back at my own method. The author of this mod may want to explore this though. |
#65
|
|||
|
|||
So, basically, does the highlighter work in vBulletin 3.5.4? I recall not being able to get it to work in an earlier vB 3.5.x version, so I have delayed updating my boards because of it.
|
#66
|
|||
|
|||
Quote:
|
#67
|
|||
|
|||
Is there any way to change the location of Geshi? For use with other parts of our site we had a directory /lib where geshi can be found and for update work and similarity on out other parts we want to place geshi in the folder /lib/geshi. I changed the path and the require_once in the xml-file of this plugin to lib/geshi (for $path) and require_once('lib/gehsi/geshi.php'). Installation was no problem and it seems that this gets parsed correctly but there is no highlightning only a gray Background with line numbers. I hope it is possible to understand what i want.
Excuse my bad english. |
#68
|
|||
|
|||
Quote:
There is a problem with this product. If you do a manual cache update of all Postings all geshi Code Blocks are deleted. |
#69
|
|||
|
|||
digitalpoint, care to share your modification with us?
|
#70
|
|||
|
|||
When I place
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html dir="ltr" lang="en"> <head> <base href="http://www.example.com/" /> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[ur l="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd[/ur l]"> <html dir="ltr" lang="en"> <head> <base href="[ur l="http://www.example.com/"]http://www.example.com/[/ur l]" /> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> vB.org parses URLs inside posts, but not inside code blocks. This is how I want my site to work also. Test: http://www.example.com/ |
#71
|
|||
|
|||
I discovered that the automatic URL linking is due to the WYSIWYG interface in IE: http://www.vbulletin.com/forum/bugs3...2018&status=60 .
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|