Problem posting code to projects

I’m trying to post the code of a project I’m working on but I get some errors. For one, using just the “code” tag causes some weird formatting issues i.e. some text is light grey while other text is highlighted in dark grey (not the hole code- just a few lines). I went to other posts that were successful, viewed page source, and I noticed the tag “pre” before “code”. Seemed to work fine except my code cuts off about 3/4 of the way through… any ideas?

Using the hotel markup view I use the tags like this:

...... 
...... 
.... My real code
.... 
.... 

Sorry! disregard my previous posts. For some reason I cannot delete or edit them correctly.

Thanks, twack. I think I’m doing the same. Problem must be elsewhere.