Not Solved Nested [code] tags
#1
Not Solved
This issue I'm having is still occurring in MyBB 1.8.3; http://community.mybb.com/thread-140355.html



Basically, what I'm trying to do, is be able to have [code] sections contain non-parsed [code] blocks within it.

But the way the [code] regex works in /inc/class_parser.php, is it searches for the first opening tag, then the first closing tag, and parses that.

So something like this is not possible:

This is a [code]code box
inside of a code block![/code]



A band-aid fix I did for my board was add a 'code2' tag and informed my users to use that to have [code] blocks within them.

... Is there a way I can make it so [code] blocks are 'smart' and can detect how they're set up?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)