![]() |
Advanced Syntax Highlighting - BBCode [highlight]
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! |
Quote:
Edit: I re-uploaded geshi.php and it worked - Odd :speechless: Satan |
great idea. thanks kirby :)
but html highlightning does not show up colored. what am i doing wrong? greets |
You must use the Names of the Files in Directory geshi, eg. for HTML you must use html4strict:
[hightlight=html4strict] <!-- some HTML here --> [/highlight] |
ah thank you. that's pretty easy. didn't really look into the geshi dir.
|
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?
|
It looks like xml hightlighting gets broken.
|
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 |
Sure thing. ;)
Here you go. Quote:
|
This is the Output I get on my Board ...
|
All times are GMT. The time now is 09:05 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:
|