Not Solved Nested [code] tags
Not Solved
This issue I'm having is still occurring in MyBB 1.8.3;

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?

Forum Jump:

Users browsing this thread: 1 Guest(s)