Adam Howard Well-known member Nov 24, 2012 #1 Style Properties: BB Code Elements Can not change the font coloring for php code display (see attached screen shot) Attachments Capture.webp 27.4 KB · Views: 27
Style Properties: BB Code Elements Can not change the font coloring for php code display (see attached screen shot)
Jake Bunce Well-known member Jan 1, 2013 #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: I will mark this confirmed and let the devs decide if they want to change the highlighting function for the purpose of CSS styling.
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: 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 Mar 11, 2013 #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.
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 Mar 11, 2013 #4 Mike said: 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. Click to expand... For which, digitalpoint has a very good GeSHi add-on in the RM so hopefully that will be a solution, Adam?
Mike said: 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. Click to expand... For which, digitalpoint has a very good GeSHi add-on in the RM so hopefully that will be a solution, Adam?