<?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-285383785338007298</id><updated>2011-10-17T08:19:54.559+02:00</updated><category term='C# Source Code Formatting'/><title type='text'>Format My C# Code</title><subtitle type='html'>Format C# Source Code to HTML using JavaScript</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://formatmycsharpcode.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/285383785338007298/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://formatmycsharpcode.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ycouriel</name><uri>http://www.blogger.com/profile/03611193432268156631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_H8XMmHb6B9o/S4Ko6tNU63I/AAAAAAAACbo/dIrYLteSIJM/S220/AUTHOR_PHOTO2009926136451214.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-285383785338007298.post-2709304601749977721</id><published>2010-02-22T20:22:00.003+02:00</published><updated>2010-07-08T03:55:42.635+03:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='C# Source Code Formatting'/><title type='text'></title><content type='html'>&lt;form id="formatcscode"&gt;&lt;textarea cols="48" id="usercode" rows="8"&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;input onclick="formatUserCode();" type="button" value="Format C# Code" /&gt;&lt;input type="checkbox" id="embedcss" checked=1&gt;Embed Stylesheet&lt;/input&gt;&lt;/form&gt;&lt;a href="http://www.blogger.com/post-edit.g?blogID=285383785338007298&amp;amp;postID=4842187728579896790" name="result"&gt;&lt;/a&gt; &lt;br /&gt;&lt;textarea cols="48" id="resultcode" rows="8"&gt;&lt;/textarea&gt;&lt;br /&gt;&lt;div id="resultview"&gt;&lt;/div&gt;&lt;script src="http://jscsharpformatter.googlecode.com/svn/trunk/publish/csharp_formatter_normal.js" type="text/javascript"&gt;&lt;/script&gt;&lt;br /&gt;&lt;script type="text/javascript"&gt;document.getElementById("usercode").value = "// Put your code here and then press the button\n//";function formatUserCode(){    var code = CSHARPFORMATTER.formatCSharpCode(document.getElementById("usercode").value, "");    putCode(code);    var pre2fix = document.getElementById("resultview").getElementsByTagName("pre")[0];       if (pre2fix &amp;&amp; pre2fix.scrollWidth &gt; pre2fix.offsetWidth) {        code += "&lt;!--[if IE]&gt;\n\n&lt;![endif]--&gt;";        putCode(code);    }    location.href= '#result';}function putCode(code){    var result = CSHARPFORMATTER.template.replace("#CODE#", code);    if (document.getElementById("embedcss").checked) {        result = CSHARPFORMATTER.style + result;        document.getElementById("needcss").style.display = 'none';    } else {        document.getElementById("needcss").style.display = '';    }    document.getElementById("resultcode").value = result;    document.getElementById("resultview").innerHTML = result;}&lt;/script&gt;&lt;br /&gt;&lt;div id="needcss" style="display: none;"&gt;You need to add this &lt;a href="http://jscsharpformatter.googlecode.com/svn/trunk/publish/csharp.css"&gt;CSS stylesheet&lt;/a&gt; to your blog.&lt;br /&gt;To avoid this, check "Embed Stylesheet" or use the &lt;a href="http://ycouriel.blogspot.com/2010/02/add-c-code-formatter-widget-to-your.html"&gt;Widget&lt;/a&gt;.&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Any feedback is welcome!&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/285383785338007298-2709304601749977721?l=formatmycsharpcode.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://formatmycsharpcode.blogspot.com/feeds/2709304601749977721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://formatmycsharpcode.blogspot.com/2010/02/format-my-csharp-code.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/285383785338007298/posts/default/2709304601749977721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/285383785338007298/posts/default/2709304601749977721'/><link rel='alternate' type='text/html' href='http://formatmycsharpcode.blogspot.com/2010/02/format-my-csharp-code.html' title=''/><author><name>ycouriel</name><uri>http://www.blogger.com/profile/03611193432268156631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://3.bp.blogspot.com/_H8XMmHb6B9o/S4Ko6tNU63I/AAAAAAAACbo/dIrYLteSIJM/S220/AUTHOR_PHOTO2009926136451214.jpg'/></author><thr:total>3</thr:total></entry></feed>
