When I write a post in my blog, code snippets is very important. I has just found a easy way to write in blog.
Following is a example:
// this is a example
function test(){
console.log("hello word");
}
test();
Formatting code snippets is very simple. Appen code following in the html post code and add code that you want to preview in the code tag.
<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>
EmoticonEmoticon