<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3454756423530575151</id><updated>2011-07-07T21:44:38.415-07:00</updated><title type='text'>World of Possibilities</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://ishtiaque23.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3454756423530575151/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://ishtiaque23.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Ishtiaque Ahmed</name><uri>http://www.blogger.com/profile/11391135571433385847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://1.bp.blogspot.com/_A6Ut4dSRH6w/SQYAUJwUQHI/AAAAAAAABao/b6KXqlj8fsw/s1600-R/me_z.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3454756423530575151.post-4951053591045464816</id><published>2009-09-29T02:51:00.000-07:00</published><updated>2009-09-29T08:23:40.958-07:00</updated><title type='text'>syntax highlighting in blogspot blog</title><content type='html'>Ever wanted to highlight the code syntax of your code snippet on blogspot? I guess you always do. What to use? Of course its going to be  Alex Gorbatchev's Syntax Highlighter. But its a bit tricky to use it on blogger. To make it work properly, you will have to add the css links and js codes to the lauout file of your blogspot blog.&lt;br /&gt;&lt;br /&gt;I always use the hosted code at alxgorbatchev.com.&lt;br /&gt;&lt;br /&gt;Step 1. Log in to your blog dashboard&lt;br /&gt;&lt;br /&gt;Step 2. then go to LAYOUT &gt;&gt; EDIT HTML&lt;br /&gt;&lt;br /&gt;Step 3. Right before the closing head tag, add this css files&lt;br /&gt;&lt;br /&gt;http://alexgorbatchev.com/pub/sh/current/styles/shCore.css&lt;br /&gt;&lt;br /&gt;http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css&lt;br /&gt;&lt;br /&gt;Step 4. Then add these js files at the bottom of the page, right before the closing body tag.&lt;br /&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js&lt;br /&gt;&lt;br /&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushJScript.js&lt;br /&gt;&lt;br /&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushBash.js&lt;br /&gt;&lt;br /&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushSql.js&lt;br /&gt;&lt;br /&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js&lt;br /&gt;&lt;br /&gt;http://alexgorbatchev.com/pub/sh/current/scripts/shBrushPhp.js&lt;br /&gt;&lt;br /&gt;then add this few lines of javascript&lt;br /&gt;&lt;pre class="brush: js"&gt;&lt;br /&gt;&lt;script type='text/javascript'&gt;&lt;br /&gt;  SyntaxHighlighter.config.bloggerMode = true;&lt;br /&gt;  SyntaxHighlighter.all();&lt;br /&gt;&lt;/script&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Step 5. All you have to do now is to write the real sourcecode to be shown with the highlighter. For example,&lt;br /&gt;&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;&lt;pre class="brush: php"&gt;&lt;br /&gt;&lt;br /&gt;function test()&lt;br /&gt;{&lt;br /&gt;    return 10;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;That will do it. You will have a prefectly running syntax highlighter now. Enjoy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3454756423530575151-4951053591045464816?l=ishtiaque23.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://ishtiaque23.blogspot.com/feeds/4951053591045464816/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3454756423530575151&amp;postID=4951053591045464816' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3454756423530575151/posts/default/4951053591045464816'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3454756423530575151/posts/default/4951053591045464816'/><link rel='alternate' type='text/html' href='http://ishtiaque23.blogspot.com/2009/09/syntax-highlight-test.html' title='syntax highlighting in blogspot blog'/><author><name>Ishtiaque Ahmed</name><uri>http://www.blogger.com/profile/11391135571433385847</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='30' height='32' src='http://1.bp.blogspot.com/_A6Ut4dSRH6w/SQYAUJwUQHI/AAAAAAAABao/b6KXqlj8fsw/s1600-R/me_z.jpg'/></author><thr:total>0</thr:total></entry></feed>
