![]() |
Ok, finally.. for anyone wanting tags like [sql]code[/sql] and [lua]code[/lua].. here's an example for Lua..
Code:
if (!function_exists('handle_bbcode_lua')) |
Have you any hint, where i can switch the width for bbcode code to 100%?
Thank you thomas |
boofo - I was able to retain spacing by changing the code in class_bbcode.php in the includes folder:
// [HIGHLIGHT] $tag_list['no_option']['highlight'] = array( 'html' => '<span class="highlight">%1$s</span>', 'strip_empty' => false ); |
Hi everyone,
Where would I add this code to enable only [as] functionality: Code:
EDIT: Nevermind - I fixed it. I had to add it to the XML file itself. Everything works now :) :surprised: |
I swear, this will be my final question!
When pasting code that has been highlighted, the vertical line spacing is no longer retained in IE. All pasted code appears in one line, and for functions containing comments, it makes the code unusable unless line breaks are manually added. Is there a fix for that? There are examples of that problem here: http://www.kirupa.com/forum/showthread.php?p=1737670 It works well in FF though. EDIT: I was able to modify the bbcode_highlight template to the following to fix it - though spacing seems a bit off: [code]<div style="margin:20px; margin-top:5px"> <div class="smallfont" style="margin-bottom:2px">$type $vbphrase Code:
:</div> |
Hi,
seems are a little bit buggy on this: 1. Can you please change that the line number dont copied, when i copy the code. Is very strange, when you post code and the other must delete line numbers... 2. this["foo"] -> was converted to this["foo"] I like this and have installed, but i hope the buggy items are fixed soon. Thomas |
In my previous post, I fixed the IE copy/paste issue by replacing the pre tag with a div. The problem is that the code now wraps. Does anybody have a way of fixing the IE copy/paste issue while retaining no-wrapping of code?
Thanks! Kirupa :squareeyed: |
Thanks!
Is working now. |
Works really great. Only thing is that I didn't manage to get a button to the editor. With usual vb-code this is no problem as the vb-code option allows to define a grafik. But how to do this for this hack? I searched in several forums and got no really heloing answer.
maybe here? ;) thanks, marc |
I cant figure out a little thing: A squared bracket open doesn't show up in the code. For example:
Code:
_root["ball"+i].x=100 _root& #91;"ball"+i].x=100 (without the space between & and #) Any help where to find the line I have to change? Checkes "actionscript.php" in the geshi folder, but with no success. Thanks! |
No help? No idea? :(
Any hint? ;) |
Quote:
|
Would be really great to get any hint where to find the code which replaces the "["...
Thanks very much.... |
Quote:
Code:
'COMMENT_SINGLE' => array(1 => '//', 2 => '#'), Code:
'COMMENT_SINGLE' => array(1 => '//'), |
When a post containing some highlighted code is edited, I am not seeing the code back in its normal form with the [highlight=foo] brackets. Instead, I am seeing the actual box with the code inside it similar to a WYSIWYG mode.
Is there a problem with using the highlighter with the full WYSIWYG mode in VB3? Thanks, Kirupa |
lutek: Great! Thanks alot!!
|
Quote:
|
this no longer works on 3.5.4 anybody with the same problem ? i upgraded geshi then it started to stop working then downgraded it again but nope ... this just stopped working without a "reason" why
edit i've fixed it the urls are hyperlinked again in PHP source code i liked that feature so i've played with it and got it back.It wasn't this hack it was geshi itself that changed some stuff anyway if anybody wants it give me a yell |
Hello, it works great also with the new geshi version,
I have only a littel problem when I use the it so charackters of me script part will displayed wrong. As example the right text is [Setup] with the Highlighter it will dispayed as [Setup]with geshi and phpbb this works so I think it comes for the xml, but I understand not we becaues I konw nothig about php. Pleas can anyone say me what I must do ? |
I couldn't be bothered to track it down any further than something in the geshi line numbering (too much regex crap) but this will fix the immediate problem.
Open geshi.php and find this line var $lexic_permissions = array( Then scroll down a bit and comment or remove this entry from the array (setting it to false may also work, but it felt better to hit the delete key). 'NUMBERS' => true, Tim Goss Northcode Inc. |
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. |
everytime you update Geshi it stops working ?????
PHP Code:
|
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)) 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. |
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.
|
Quote:
|
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. |
Quote:
There is a problem with this product. If you do a manual cache update of all Postings all geshi Code Blocks are deleted. |
Quote:
|
When I place
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 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]"> 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/ |
I discovered that the automatic URL linking is due to the WYSIWYG interface in IE: http://www.vbulletin.com/forum/bugs3...2018&status=60 .
|
Quote:
|
Anyone know if this still works with 3.6.4?
|
Yes
|
Thank you !
How can i add a button when i reply ? |
Works fine so far, thanks :)
|
Mhh .. look at my problem:
http://img248.imageshack.us/img248/940/syntaxev0.jpg On the next edit the spaces got lost and some chars are maleformed .. =( |
I can confirm that this works in 3.6.4; you can update the range of available languages by grabbing the latest version of "geshi.php" and the "geshi" directory from the developer's site -- http://qbnz.com/highlighter/
I fixed the square bracket issue (which also happens with percentage symbols) by adding the following line to the parse_code function in geshi.php (just before "// Initialise various stuff"): PHP Code:
|
Thank you .. with this line it works fine for me .. but the bug with the tabs and spacings does already exists =/ After preview or on edit all spaces and tabs bevore the commands are missing .. Any ideas?
|
Not yet, I'm still trying to hack a solution for that!
|
Okay there's a few different things contributing to the whitespace/line-break formatting problems. I had to hack quite a bit to fix all this, so I've just uploaded my edited gehsi.php -- http://www.brothercake.com/clients/geshi.zip
All the changes I made begin with a comment that says "20070518 -- brothercake". Apart from fixing these issues, I've also removed the list markup (because line-numbers were being copied into the clipboard in some browsers), while retaining fancy lines (alternate line highlighting). And I've also stripped out some of the markup it generates - everything apart from what's actually needed! To make these changes work I also had to comment out four lines from the product (the code inside the XML file): PHP Code:
|
All times are GMT. The time now is 01:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|