• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Won't fix Style Properties: BB Code Elements

Jake Bunce

XenForo moderator
Staff member
#2
Those colors use inline styling that is generated by PHP's highlight_string() function:

http://us2.php.net/manual/en/function.highlight-string.php

You have to change the highlight directives in PHP to affect those colors:

http://us2.php.net/manual/en/misc.configuration.php

For example, add this to your library/config.php file:

Code:
ini_set('highlight.keyword', 'red');
Here is the before and after for this change:

Screen shot 2012-12-31 at 5.44.49 PM.png

Screen shot 2012-12-31 at 5.44.02 PM.png

I will mark this confirmed and let the devs decide if they want to change the highlighting function for the purpose of CSS styling.
 

Mike

XenForo developer
Staff member
#3
For now, I don't think this is something we want to get into. This is where a system like GeSHi comes in handy though.
 

Chris D

XenForo developer
Staff member
#4
For now, I don't think this is something we want to get into. This is where a system like GeSHi comes in handy though.
For which, digitalpoint has a very good GeSHi add-on in the RM so hopefully that will be a solution, Adam?