![]() |
|
Mod Options |
![]() |
|||||||||||
Advanced Syntax Highlighting - BBCode [highlight]
![]() Developer Last Online: Jan 2023 ![]() ![]() ![]() This modification is in the archives.
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! Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Show Thread Enhancements Highlight BBCode | Patria | vBulletin 3.6 Add-ons | 19 | 21 Jan 2010 23:39 |
Comments |
#2
|
||||
|
||||
Edit: I re-uploaded geshi.php and it worked - Odd :speechless: Satan No members have liked this post.
|
#3
|
|||
|
|||
great idea. thanks kirby
![]() but html highlightning does not show up colored. what am i doing wrong? greets No members have liked this post.
|
#4
|
||||
|
||||
You must use the Names of the Files in Directory geshi, eg. for HTML you must use html4strict:
[hightlight=html4strict] <!-- some HTML here --> [/highlight] No members have liked this post.
|
#5
|
|||
|
|||
ah thank you. that's pretty easy. didn't really look into the geshi dir.
No members have liked this post.
|
#6
|
||||
|
||||
Is there a way we can make a bbcode replacement for like sql and xml tags? And is there any way to take the numbers out of the code on each line at the beginning?
No members have liked this post.
Last edited by Boofo; 29 Jul 2005 at 07:36. |
#7
|
||||
|
||||
It looks like xml hightlighting gets broken.
No members have liked this post.
|
#8
|
||||
|
||||
Line Numbers -> Edit the Plugin (Hook bbcode_create) and comment out $geshi->enable_line_numbers
Furure Versions might include a setting for this. As for the Screenshot: Can you post the Text which generated this output? If you want to have [sql] and [xml] Tags, I guess you would have to create similar handlers that would then call handle_bbcode_highlight No members have liked this post.
|
#9
|
||||
|
||||
Sure thing.
![]() Here you go.
No members have liked this post.
|
#10
|
||||
|
||||
This is the Output I get on my Board ...
No members have liked this post.
|
#11
|
||||
|
||||
Originally Posted by KirbyDE
Ok, I see what is going on. In the file I have you are changing the & to &, because that's how it shows on my site. It shows the & in your pic. Am I close?
Because that's where it seems to break in my pic. No members have liked this post.
|
#12
|
||||
|
||||
If I comment this line out in the plug-in, then it shows just like yours.
No members have liked this post.
|
#13
|
||||
|
||||
Hmm, I didn't change anything - I just copypasted your XML and seems to work fine for me.
So can you tell me exactly how to reproduce the Problem? No members have liked this post.
|
#14
|
||||
|
||||
Ok, I figured it out now. You're hack is smarter than I am (big surprise, I know).
I was using & instead of & in my original code. It messes up with just &. I guess it was trying to teach me the proper xml way to do it. Any way to catch that for noobies? No members have liked this post.
|
#15
|
||||
|
||||
Well, just & is invalid XML
![]() I guess GeSHIi doesn't like that too much. I don't think there is any way to detect such things ... No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 05:02.