Won't fix Style Properties: BB Code Elements

Adam Howard

Well-known member
Style Properties: BB Code Elements

Can not change the font coloring for php code display

(see attached screen shot)
 

Attachments

  • Capture.webp
    Capture.webp
    27.4 KB · Views: 27
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.webp

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

I will mark this confirmed and let the devs decide if they want to change the highlighting function for the purpose of CSS styling.
 
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.
For which, digitalpoint has a very good GeSHi add-on in the RM so hopefully that will be a solution, Adam?
 
Top Bottom