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

Highlighting lines of code?

Discussion in 'XenForo Questions and Support' started by CyclingTribe, Nov 15, 2011.

  1. CyclingTribe

    CyclingTribe Well-Known Member

    How do I add a colour or emphasis to specific lines of code inside [ code ] tags?

    Whenever I try the formatting is rendered as HTML within the code.

    I'm sure I've seen this done but can't figure it out?

    Shaun :D
  2. Brogan

    Brogan XenForo Moderator Staff Member

    GeeksChat likes this.
  3. CyclingTribe

    CyclingTribe Well-Known Member

    Is that wrapped in square brackets, e.g; [ code=rich ] ?
  4. M@rc

    M@rc Well-Known Member

    Err.. Yes...
    GeeksChat likes this.
  5. CyclingTribe

    CyclingTribe Well-Known Member

  6. Main Company

    Main Company Active Member

    Didn't their used to be a highlight button on the WYSIWYG editor? Did that go away, or is there an addon I can install to provide text highlighting functionality?
  7. Brogan

    Brogan XenForo Moderator Staff Member

    You can create a custom bb code to add a background colour.
    I have one on my site.
  8. Main Company

    Main Company Active Member

    Can someone provide a pointer for more instructions. This is my first time thru this and I wasn't able to locate an answer via search. Thanks.

Share This Page