Good to hear you got it working.
I paste the code then highlight it and click the </>.
Sometimes it works, sometimes it doesn’t.
Sometimes the characters I use in my code don’t preformat properly.
Sometimes the code needs blank lines above and below. But that has not worked every time.
It is a pain but it is what they want on this forum, if you want to paste code.
Lines that use // as a comment, the preformatting option does not handle very well.