posted by Gardener:
Other markup tags also have the </font> tag so the undo_markup function won't be able to distinguish which one is used for the color tag.
undo_markup could easily tell which closing font tags are used for color tags because they are the ones that follow a font tag with a
color attribute. I haven't seen the latest markup code but this is the way to do it (with perl):
code:
$Body =~ s/\[$lang{'COLOR_RED'}\](.*?)\[\/$lang{'COLOR_RED'}\]/<font color=red>$1<\/font>/ig; # do
$Body =~ s/<font color=red>(.*?)<\/font>/\[$lang{'COLOR_RED'}\]$1\[\/$lang{'COLOR_RED'}\]/ig; # undo