There are different ways to post code inside blogger, But the most efficient way I feel is
Go to this link and put code and parse it and then paste the parse code as it is. Then blogger will render your code perfectly.
Go to this link and put code and parse it and then paste the parse code as it is. Then blogger will render your code perfectly.