I'm a software developer and I've started my first blog on Information Technology. Since I'm using wordpress (hosted free plan) as blogging platform, I'm wondering if there's a fast and useful way for styling code snippet in my posts.
Wrap the code in the <code> or <pre> tags, depending on whether it's an inline snippet or a block of code.
Also, search the web for "wordpress syntax highlighter," which will tell you about several wordpress plugins that can color and style code elements for various programming languages.
Finally, the Wordpress StackExchange site will probably have some great answers for you: https://wordpress.stackexchange.com/
I use Wordpress, and I use SyntaxHighlighter Evolved for formatting code on my blog. It's very simple to use, and has support for a wide variety of styling languages. It also has support for different colour schemes I believe (although I have not used it myself).
If you use free wordpress without ability to install plugin, you can use online free service to convert your code into styled HTML called Quick Highlighter