I switched my hosting provider recently, and lost the ability to easily post code into my blog posts. I came across this page https://en.support.wordpress.com/code/posting-source-code/ and added this plugin to my new site and love it. It’s added a lot of flexibility and formatting tools to help me post my thoughts!