![]() |
Change the rules for syntax highlighting?
How can I change the rules vBulletin uses for syntax highlighting when using html and php tags?
I have been trying to create a code tag that actually does NO processing of code inside of it. If I could take my HTML tag, and turn off all the color changes inside, that would somewhat do the trick. But I cannot find where vBulletin has its rules for syntax highlighting of html code. |
/functions/class_bbcode.php around lines 1515 onwards, there are functions:
|
The [ code] tag does not do any syntax highlighting.
|
|
Quote:
I am trying to make one of my tags behave like a code tag, and not process ANY code inside of it (not bbcode, not html, etc). Just so you know why, here's an example. When I post an in game help file of a new game feature, I want to be able to show it to my players in properly formatted form. Our help files make use of brackets very often, and right now, with HTML turned on, anything <inside of brackets> gets snipped in code tags. Here's an example: Code:
USAGE: group - Check your group status. --------------- Added [DATE]1207222272[/DATE] at [TIME]1207222272[/TIME] --------------- Quote:
Quote:
Code:
$code = $this->strip_front_back_whitespace($code, 1); Code:
$code = htmlspecialchars_uni($code); Can you forsee any problem with this code hack for me? |
All times are GMT. The time now is 11:49 AM. |
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:
|