I’m new to the forum I need to know how to post blocks of code
Read the FAQ
use the preformatted text button on the toolbar, the one with the </> picture.