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

How do I add colour to content in code tags?

Discussion in 'XenForo Questions and Support' started by bousaid, Sep 25, 2011.

  1. bousaid

    bousaid Well-Known Member

    ok .. how to coloring this code
    look: coloring does not work !
    public [COLOR=#ff0000]static function[/COLOR] hook
  2. Brogan

    Brogan XenForo Moderator Staff Member

    Use code=rich.

    public static function hook
    Andy.N and bousaid like this.
  3. Andy.N

    Andy.N Well-Known Member

    Man, I forgot (or didn't know about this).
    Can we turn color=rich on by default?
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Shelley and bousaid like this.
  5. lasertits

    lasertits Active Member

    Anyone know why code=rich may not work? I'm trying the same example text as brogan.
  6. Brogan

    Brogan XenForo Moderator Staff Member

    [CODE=rich]public [COLOR=#ff0000]static function[/COLOR] hook[/CODE]
  7. lasertits

    lasertits Active Member

    Oh I see what Rich does now. Thanks.
  8. Lone Wolf

    Lone Wolf Well-Known Member

Share This Page