Formatting Code Snippets on Google Blogger
Lots of people use Blogger to host their blogs, but little know that you can actually edit the CSS that Blogger displays. It’s one of the most powerful Blogger features, and lets you truly customize your blog. You can get rid of elements you don’t like, change the look of content in your posts, and so much more.
I often have snippets of code on my large blog, The Nerdy Student, however Blogger never actually formatted those pieces of code. I had to go into the HTML editor, and add <code>
to every piece of code, however that only changed the font.
I decided that the CSS editor may allow me to change this - and to my suprise, it did! I knew you could edit the look of the site with it, but I didn’t know you could edit the look of the post content.
You then scroll down to the advanced section, and click ‘Edit CSS’.
I decided to use the Bootstrap style code for my blog - I had used it on many websites before, and I loved the way it looked. I entered this in the box below pre-existing CSS:
And done! I hit save, and now my code snippets on my blog look nice.
Thanks for reading!