Could someone replace all the code tags on the forum?

All the old posts contain [code] and [/code] tags - it should be easy to replace them all with three back ticks as otherwise they show just as text, not as code.

see for example Set PopupMenu ListIndex

Sub SetText(extends pm as PopupMenu, assigns s as String) for i as integer = 0 to pm.ListCount-1 if pm.list(i) = s then pm.ListIndex = i return // exit end next // what if text is not in the popup menu? MsgBox "I tried to set <" + pm.Name + "> to <" + s + "> but it is not one of the available choices. Please inform the developer of this." End Sub

Hmm, slight correction: the code formatting is shown when both tags are on their own line or are both inline, but only as a single line.

1 Like

I mentioned it two weeks ago here A few forum issues

1 Like

I’m a bit slow … :wink:

1 Like

/me Y2K bugs!!! argh! :wink:

“Flagged by the community”? Funnily enough nobody ever objected when I call for Kem to help someone … fickle thing, this community … :roll_eyes:

1 Like

there is no plugin for handle this [ code ] [ /code ] ?

End of lines are lost, anyway. How could an automated process ever put them back without knowing Xojo’s syntax?
(end of lines aren’t in the mangled codes)