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

As designed  BB Codes do not work inside of [CODE] blocks

#3
I'm fairly sure this is by design but no doubt Mike will be along shortly to confirm.
That seems like a mistake...

Think about development forums, forums where people are working templates or other forms of code and want to bold or hue a line to make it stand out...?
 

Shadab

Well-known member
#4
You can use [code=rich] ... [/code] to enable formatting inside code tags.

Code:
public function isWorking()
{
	return true;
}
 

Brogan

XenForo moderator
Staff member
#5
Nice one Shadab.
In all the years I've been using code, code=php, etc. I never knew you could do that.
 

Mike

XenForo developer
Staff member
#7
Nice one Shadab.
In all the years I've been using code, code=php, etc. I never knew you could do that.
That's probably because it's unique to us, I think. Never really looked elsewhere though.

But yes, this is most definitely intentional.
 

Mike

XenForo developer
Staff member
#9
It prevents code that contains elements that resemble BB codes from accidentally executing, thereby breaking the code.
 
#11
It prevents code that contains elements that resemble BB codes from accidentally executing, thereby breaking the code.
...can we PLEASE make this an option instead of a mandatory stance? A simple "disable smilies" checkbox would fix the majority of those breakages.