How to escape < and > inside tags
<pre> PrimeCalc calc = new PrimeCalc(); Func<int, int> del = calc.GetNextPrime; </pre>
<pre> PrimeCalc calc = new PrimeCalc(); Func<int, int> del = calc.GetNextPrime; </pre>
When you make a new entry in Blogger, you get the option to use HTML in your entry and to edit your blog entries. So type http://blogger.com, log in, and navigate to Posting → Edit Posts → Edit. In there put this at the top: <script type=”text/javascript” language=”javascript” src=”https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/prettify.min.js”></script> <script type=”text/javascript” language=”javascript” src=”https://cdnjs.cloudflare.com/ajax/libs/prettify/r298/lang-css.min.js”></script> <script type=”text/javascript”> … Read more
1. First, take backup of your blogger template 2. After that open your blogger template (In Edit HTML mode) & copy the all css given in this link before </b:skin> tag 3. Paste the followig code before </head> tag <script src=”http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shCore.js” type=”text/javascript”></script> <script src=”http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCpp.js” type=”text/javascript”></script> <script src=”http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCSharp.js” type=”text/javascript”></script> <script src=”http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushCss.js” type=”text/javascript”></script> <script src=”http://syntaxhighlighter.googlecode.com/svn/trunk/Scripts/shBrushDelphi.js” type=”text/javascript”></script> <script … Read more
Unfortunately it doesn’t work with HTML tags. <code> means “This is code”, <pre> means “White space in this markup is significant”. Neither means “The content of this element should not be treated as HTML”, so both work perfectly, even if they don’t mean what you want them to mean. Is there any way to show … Read more
I’ve created a blog post entry which explains how to add code syntax highlighting to blogger using the syntaxhighlighter 2.0 Here’s my blog post: http://www.craftyfella.com/2010/01/syntax-highlighting-with-blogger-engine.html I hope it helps you guys.. I’m quite impressed with what it can do. Above Links stopped working. Try using http://hilite.me/