Posts

Showing posts from 2020

Adding Code Snippet in Blogger Post

Image
Adding Code Snippets in Blogger Post ? My blogs mostly consist of code in it so how to add those lines of code in my blogs is important. When I started writing blogs on node.js, mysql I share those pieces of code in my blogs. I tried some of the techniques which can help you as well. When you write blogs on any programming language you always want it to look the same as that in your editor with proper format and color. Code sharing should be easy for others to copy, because when users search google for a solution they want a quick and easy way to copy and try your solution. When your users look at your article code it should appear in the correct format. Listed some of the ways to add code snippet or examples in your blogs, Block Codes planetB Syntax highlight code Code Blocks Add-ons for Google Doc markup.su Highlighter halite.me Github gist Example : suppose you want to display below code in your blog, which is not easily readable . const express = require(...