Most likely the forum is removing it as you are just pasting code in and not telling the forum it’s code, so it does some odd stuff when you paste code and don’t tell it it’s not code. Sometimes you do this correctly and sometimes you don’t
So, to see where we are now can you post your current code that you are using? And correctly format it
Paste it in, select it all and hit

Or start every code line with (at least) four spaces (and a new line above/below the code block