The Arcive of vBulletin Modifications Site. |
|
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 |
|
#2
|
||||
|
||||
|
Quote:
Edit: I re-uploaded geshi.php and it worked - Odd :speechless: Satan |
|
#3
|
|||
|
|||
|
great idea. thanks kirby
![]() but html highlightning does not show up colored. what am i doing wrong? greets |
|
#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] |
|
#5
|
|||
|
|||
|
ah thank you. that's pretty easy. didn't really look into the geshi dir.
|
|
#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?
|
|
#7
|
||||
|
||||
|
It looks like xml hightlighting gets broken.
|
|
#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 |
|
#9
|
||||
|
||||
|
Sure thing.
![]() Here you go. Quote:
|
|
#10
|
||||
|
||||
|
This is the Output I get on my Board ...
|
![]() |
|
|