BBCode help

  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Posts: 1417
  • Loc: 55° N, 3° W

Post 3+ Months Ago

Maybe wrong fourm, or maybe just a dumb question ....


When formatting text using BBCode, how can you make a piece of text
already formatted as "code" have a different colour?

I have wanted to do this several times to highlight a specific piece of
code within a big block of code-formatted text... but it never works for me.

It usually ends up like this:

Code: [ Select ]
<div id="test">just a test [color=orange]hfhfsb[/color]</div>


I know it is possible, because I have seen it here at Ozzu.

Any ideas where I am going wrong?

Thanks in advance.
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • UPSGuy
  • Lurker ಠ_ಠ
  • Web Master
  • User avatar
  • Posts: 2733
  • Loc: Nashville, TN

Post 3+ Months Ago

What you see is probably something besides the code tag, such as the [ php ] bbtag, which auto provides the coloring. I don't think you can change your own colors in a code chunk.
  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Posts: 1417
  • Loc: 55° N, 3° W

Post 3+ Months Ago

Nope, definately the [code] tag ..... 97.5% sure of that.

I will rummage around the archives at some point and look for an example.


You got me wondering now ....
  • Zwirko
  • Guru
  • Guru
  • User avatar
  • Posts: 1417
  • Loc: 55° N, 3° W

Post 3+ Months Ago

Can't find an example.


It was on quite a few old posts from way back.

Maybe some phpBB thingy has been disabled since then?
  • lucassix
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2350
  • Loc: Indiana

Post 3+ Months Ago

The whole idea of the [code] tag is to not parse anything within the tags. Therefore, I really doubt there is a way to add any formatting inside them.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

We disabled HTML here about a year ago for security reasons. Probably why you aren't seeing it anymore.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 7 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.