The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
/functions/class_bbcode.php around lines 1515 onwards, there are functions:
|
#3
|
|||
|
|||
The [ code] tag does not do any syntax highlighting.
|
#4
|
|||
|
|||
|
#5
|
|||
|
|||
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. group <message> - Speak to the members of your group. group leave - Leave your group. group follow <on/off> - Turn group following on or off. group settings - Change your group settings. (L) group form <name> - Form a group with an optional <name> (L) group name <name> - Change the group name. Use remove to remove. (L) group invite <player> - Invite someone to join your group. (L) group boot <player> - Boot someone from your group. (L) group leader <member> - Change the group leader. (L) group disband - Disband your group. This is the command interface for group management. The commands marked (L) are leader only commands. --------------- 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? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|