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

Brogan

XenForo moderator
Staff member
I'm fairly sure this is by design but no doubt Mike will be along shortly to confirm.
 

Ryan McAdams

Active member
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
You can use [code=rich] ... [/code] to enable formatting inside code tags.

Rich (BB code):
public function isWorking()
{
	return true;
}
 

Brogan

XenForo moderator
Staff member
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
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
It prevents code that contains elements that resemble BB codes from accidentally executing, thereby breaking the code.
 

Ryan McAdams

Active member
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.
 
Top