How to add Code Snippet in your blog.
Whenever I was putting some code in my blog it was formatted badly & not readable. I searched internet & found of ways to put code snippet in your blog but simplest way add code in you blog is using http://hilite.me/.
As we all know blogs are html & if we need to highight code in html we need to properly format it.
Beauty of http://hilite.me/ is that it format the code & also create an html so you can just paste that html in your post & Ta Da. You can see formatted block of your code in you post
Step 1 :
Add code in Source Code Block , Select language in which you want to format your code.
You can see generated HTML & Preview of Code.
Step 2:
Copy generated HTML , Create a post , paste this HTML in post.
As we all know blogs are html & if we need to highight code in html we need to properly format it.
Beauty of http://hilite.me/ is that it format the code & also create an html so you can just paste that html in your post & Ta Da. You can see formatted block of your code in you post
Step 1 :
Add code in Source Code Block , Select language in which you want to format your code.
You can see generated HTML & Preview of Code.
Step 2:
Copy generated HTML , Create a post , paste this HTML in post.
Step 3 :
Publish this post. Ta da....Wallah. Pretty Formatted code is embedded in you post.


