how to insert code in blogger post : One of our readers has a blog located on Blogger, and he regularly uploads code snippets in C, C#, Java, XML and other languages but his code snippets often get "mangled".
Today we will teach you if there is any website using which we can parse the code And we will also discuss how to format code snippets on blogger?
1) Hilite.me Code Converter
hilite.me turns your code snippets into pretty-printed HTML that can be quickly insert-ed into blog posts, emails, and webpages.
2) Public Gists
A public gist is the easiest way to share code. Simply compose one and paste the embed code into your blog. It's simple. Click here to create a public gist.
3) CSS Script
This CSS script may be beneficial to everyone - it's not for syntax highlighting, but it does a good job of showing source code in its original format:
<pre style="font-family: Andale Mono, Lucida Console, Monaco, fixed, monospace; color: #000000; background-color: #eee; font-size: 12px; border: 1px dashed #999999; line-height: 14px; padding: 5px; overflow: auto; width: 100%"><code style="color:#000000;word-wrap:normal;"> YOUR CODE HERE </code></pre>
Usage : Copy this code and paste it into the HTML view of your blogger (or other) post editor.
ADVANTAGES : Simple and easy to use, requires little configuration, is simple to change, and requires no additional software.
4) Online Syntax Highlighting tool
I have a low-tech solution that I employ. I use this Online Syntax Highlighting tool to format the code before copying and pasting it into the blog.