Is there a way make nested codes work? For example, using the code provided above, if someone types in this:
[colorx=red]red text[colorx=blue]blue text[/colorx]back to red[/colorx]
We "want" this result: <font color="red">red text<font color="blue">blue text</font>back to red</font> However, this is the result that the code produces: <font color="red">red text[colorx=blue]blue text</font>back to red[/colorx]
(note: I used 'colorx' instead of 'color' so the forum would not parse the code) For the record, different nested codes work, such as italics within bold, but like codes dont work, such as a bold inside of a bold, quote inside of a quote, color inside of a color, etc.
Notice from cmatcmextra:
Please use CODE tags when writing codes. Doing this also prevents the forums from parsing bbcoding.