<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WhyPad &#187; Programming</title>
	<atom:link href="http://www.whypad.com/tag/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.whypad.com</link>
	<description>Tips, tricks, and hacks for life and tech...</description>
	<lastBuildDate>Tue, 06 Jul 2010 15:21:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>WordPress: Code Formatting Plugin for your Blog</title>
		<link>http://www.whypad.com/posts/wordpress-code-formatting-plugin-for-your-blog/490/</link>
		<comments>http://www.whypad.com/posts/wordpress-code-formatting-plugin-for-your-blog/490/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 08:16:49 +0000</pubDate>
		<dc:creator>Byron Bennett</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.whypad.com/?p=490</guid>
		<description><![CDATA[Sometimes my Googling skills are not what they ought to be.  I searched high and low for a code formatter for this blog, but for some reason I couldn&#8217;t come up with the search terms.  Seriously, in the real world, only a demented nerd would drool over the code presentation on other people&#8217;s blogs&#8230;but there [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes my Googling skills are not what they ought to be.  I searched high and low for a code formatter for this blog, but for some reason I couldn&#8217;t come up with the search terms.  Seriously, in the real world, only a demented nerd would drool over the code presentation on other people&#8217;s blogs&#8230;but there I was, and my code looked like utter malarkey by comparison.<span id="more-490"></span></p>
<h3>Code Syntax Highlighter</h3>
<p>Finally, I got the bright idea to ask one of those drool worthy bloggers, <a href="http://andrewferguson.net/colophon/">Andrew Ferguson</a>, what the secret sauce was.  The answer:  <a href="http://wordpress.org/extend/plugins/syntaxhighlighter/">SyntaxHighlighter</a> plugin available at WordPress.  This plugin is based on the javascript project of the same name <a href="http://code.google.com/p/syntaxhighlighter/">here</a>, by Alex Gorbatchev.</p>
<p>Here&#8217;s a little sample:</p>
<pre class="brush: php;">//Add JS libraris
function enqueueBWBPS(){
wp_enqueue_script('jquery');
wp_enqueue_script('thickbox');

//enqueue BWB-PS Javascript
wp_register_script('tracs_js', get_bloginfo('wpurl') . '/wp-content/plugins/tracs/js/tracs.js', array('jquery'), '1.0');
wp_enqueue_script('tracs_js');
}</pre>
<h3>A Code Formatting Alternative for .Net</h3>
<p>If you&#8217;re just wanting to format some C#, VB.Net, or XML/HTML/ASP.net, here&#8217;s an online formatter from DotNetSlackers that will give you some pretty markup that you can paste into your Post:  <a href="http://dotnetslackers.com/articles/csharpformat.aspx">Format Code</a>.</p>
<p>Well, hopefully this post will make it a little easier for somebody having a bad Google day out there.  I&#8217;m just glad my code can at least look pretty visually now&#8230;we won&#8217;t talk about its technical elegance or lack thereof.</p>
<p>Cheers!</p>
<p>Byron</p>
<img src="http://www.whypad.com/?ak_action=api_record_view&id=490&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.whypad.com/posts/wordpress-code-formatting-plugin-for-your-blog/490/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
