Question:
How to post Code Snippets in blogger the better way?
?
2013-05-19 23:12:17 UTC
There are two ways I have used in my blog.

One way by using Alex Gorbatchev's Syntax Highlighter
eg: http://www.rookieslab.com/2012/12/python-objects-lists-mutation-of-list.html

Other way is by using external code paste service and embedding in blog post. I have used gists provided by github.
eg: http://www.rookieslab.com/2013/05/fast-power-algorithm-cc-and-python-code.html

In the first way, I actually write up all the code in my blog post and highlight them. While in second way, I use external .js files generated for embedding whereever you want, more like how we embed YouTube videos.

My question is which one of them is search engine friendly?
Three answers:
Nick
2013-05-23 18:54:44 UTC
Search engines can't see inside images. Search engines can only see whatever you see when you do a "View Source."



Personally, I'd just use [pre] [/pre] html tags, and style them however you want.
2016-12-24 08:07:18 UTC
1
barnell
2016-08-07 16:30:16 UTC
I consider the major reply is to search out some thing that individuals will wish to read about! The important focal point you should have is getting visitors to your web page (otherwise, who would want to advertise on it?) upon getting your topic, ensure you replace your web publication by and large, and make every post unique and exciting. There are additionally lots of things you are able to do to get people to your web page (wording the titles of your posts in a specific way and many others). Comply with similar bloggers, and ask them to comply with you. Get yourself on Twitter as well, and do some looking round on the internet, there are tons of blogs helping humans to jot down blogs!!


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...