1. 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

Discussion in 'Resolved Bug Reports' started by Adam Howard, Nov 24, 2012.

  1. Adam Howard

    Adam Howard Well-Known Member

    Style Properties: BB Code Elements

    Can not change the font coloring for php code display

    (see attached screen shot)

    Attached Files:

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Those colors use inline styling that is generated by PHP's highlight_string() function:


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


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

    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.
  3. Mike

    Mike XenForo Developer Staff Member

    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.
    Slavik likes this.
  4. Chris D

    Chris D XenForo Developer Staff Member

    For which, digitalpoint has a very good GeSHi add-on in the RM so hopefully that will be a solution, Adam?

Share This Page