<?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>@neilmiddleton &#187; GeSHI</title>
	<atom:link href="http://neilmiddleton.com/tag/geshi/feed/" rel="self" type="application/rss+xml" />
	<link>http://neilmiddleton.com</link>
	<description>in more than 140 characters</description>
	<lastBuildDate>Tue, 09 Mar 2010 10:59:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ColdFusion Code highlighting with GeSHI</title>
		<link>http://neilmiddleton.com/2008/01/21/coldfusion-code-highlighting-with-geshi/</link>
		<comments>http://neilmiddleton.com/2008/01/21/coldfusion-code-highlighting-with-geshi/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 22:24:06 +0000</pubDate>
		<dc:creator>Neil</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[GeSHI]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://neilmiddleton.com/2008/01/21/coldfusion-code-highlighting-with-geshi/</guid>
		<description><![CDATA[If like me, you are a ColdFusion developer using Wordpress as their blogging engine, you might have a need to occaisionally put code samples into your blog posts.  With tools like Ray Camden&#8217;s BlogCFC and ASFusion&#8217;s Mango, this is very easy as they have been designed to do this from the start.  However, [...]]]></description>
			<content:encoded><![CDATA[<p>If like me, you are a <a href="http://www.adobe.com/products/coldfusion/" target="_blank" title="Web Application Platform">ColdFusion</a> developer using <a href="http://wordpress.org/" target="_blank" title="Wordpress">Wordpress</a> as their blogging engine, you might have a need to occaisionally put code samples into your blog posts.  With tools like Ray Camden&#8217;s <a href="http://www.blogcfc.com/" target="_blank" title="BlogCFC">BlogCFC</a> and ASFusion&#8217;s <a href="http://www.mangoblog.org/" target="_blank" title="Mango Blog">Mango</a>, this is very easy as they have been designed to do this from the start.  However, in Wordpress you need to do some fiddling first.</p>
<p>Ultimately there are a few code highlighters out there that you can use, and I have chosen to use <a href="http://www.familjencarlstrom.se/WordPress/2006/08/17/code-viewer/" target="_blank" title="CodeViewer">CodeViewer</a>, which lets me upload files of code that then get converted into a nice highlighted form.  From here I have a variety of options of things like allowing you guys to download that code in it&#8217;s raw form.  The highlighting is done via another plugin called <a href="http://qbnz.com/highlighter/" target="_blank" title="GeSHI">GeSHI</a>, the Generic Syntax Highlighter.  This is a long term open source project designed to create a PHP based syntax highlighter that can be used from a number of other applications (such as Wordpress) and supports a vast range of languages such as AS3, T-SQL, ColdFusion and others.</p>
<p>However, after saying all this, the currently bundled CFML parser does not contain any of the new CF8 syntax, and has only a limited number of attributes listed.    Therefore, I have sat down and updated the language file to include all CF8 tags, functions and attributes, which means that should you be using GeSHI, you should have no real problems with any of the new CF8 syntax.</p>
<p>To download the file, click <a href="http://neilmiddleton.com/wp-content/uploads/2008/01/cfm.php" title="GeSHI">here</a>. I have also sent off the file to the GeSHI admins in the hope that they can include it in a future release. If you can see any problems, and need some help, please don&#8217;t hesitate to <a href="http://neilmiddleton.com/contact/" target="_blank" title="Contact">contact me</a>.</p>
<p><a href="http://neilmiddleton.com/wp-content/uploads/2008/01/cfm.zip" title="GeSHI cfm.php Zip">Download CF8 GeSHI Language File</a></p>
<!-- Social Bookmarks BEGIN -->
<div class="social_bookmark">
<a><strong><em>Bookmark It</em></strong></a>
<br />
<div class="d">
<br />
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://del.icio.us/post?url=http://neilmiddleton.com/2008/01/21/coldfusion-code-highlighting-with-geshi/&amp;title=ColdFusion+Code+highlighting+with+GeSHI" rel="nofollow" title="Add to&nbsp;Del.icio.us"><img class="social_img" src="http://neilmiddleton.com/wp-content/plugins/social-bookmarks/images/delicious.png" title="Add to&nbsp;Del.icio.us" alt="Add to&nbsp;Del.icio.us" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://digg.com/submit?phase=2&amp;url=http://neilmiddleton.com/2008/01/21/coldfusion-code-highlighting-with-geshi/&amp;title=ColdFusion+Code+highlighting+with+GeSHI" rel="nofollow" title="Add to&nbsp;digg"><img class="social_img" src="http://neilmiddleton.com/wp-content/plugins/social-bookmarks/images/digg.png" title="Add to&nbsp;digg" alt="Add to&nbsp;digg" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.dzone.com/links/add.html?description=ColdFusion+Code+highlighting+with+GeSHI&amp;url=http://neilmiddleton.com/2008/01/21/coldfusion-code-highlighting-with-geshi/&amp;title=ColdFusion+Code+highlighting+with+GeSHI" rel="nofollow" title="Add to&nbsp;DZone"><img class="social_img" src="http://neilmiddleton.com/wp-content/plugins/social-bookmarks/images/dzone.png" title="Add to&nbsp;DZone" alt="Add to&nbsp;DZone" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.facebook.com/sharer.php?u=http://neilmiddleton.com/2008/01/21/coldfusion-code-highlighting-with-geshi/" rel="nofollow" title="Add to&nbsp;Facebook"><img class="social_img" src="http://neilmiddleton.com/wp-content/plugins/social-bookmarks/images/facebook.png" title="Add to&nbsp;Facebook" alt="Add to&nbsp;Facebook" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http://neilmiddleton.com/2008/01/21/coldfusion-code-highlighting-with-geshi/&amp;title=ColdFusion+Code+highlighting+with+GeSHI" rel="nofollow" title="Add to&nbsp;Google Bookmarks"><img class="social_img" src="http://neilmiddleton.com/wp-content/plugins/social-bookmarks/images/google.png" title="Add to&nbsp;Google Bookmarks" alt="Add to&nbsp;Google Bookmarks" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.netscape.com/submit/?U=http://neilmiddleton.com/2008/01/21/coldfusion-code-highlighting-with-geshi/&amp;T=ColdFusion+Code+highlighting+with+GeSHI" rel="nofollow" title="Add to&nbsp;Netscape"><img class="social_img" src="http://neilmiddleton.com/wp-content/plugins/social-bookmarks/images/netscape.png" title="Add to&nbsp;Netscape" alt="Add to&nbsp;Netscape" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://reddit.com/submit?url=http://neilmiddleton.com/2008/01/21/coldfusion-code-highlighting-with-geshi/&amp;title=ColdFusion+Code+highlighting+with+GeSHI" rel="nofollow" title="Add to&nbsp;reddit"><img class="social_img" src="http://neilmiddleton.com/wp-content/plugins/social-bookmarks/images/reddit.png" title="Add to&nbsp;reddit" alt="Add to&nbsp;reddit" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.stumbleupon.com/submit?url=http://neilmiddleton.com/2008/01/21/coldfusion-code-highlighting-with-geshi/&amp;title=ColdFusion+Code+highlighting+with+GeSHI" rel="nofollow" title="Add to&nbsp;Stumble Upon"><img class="social_img" src="http://neilmiddleton.com/wp-content/plugins/social-bookmarks/images/stumbleupon.png" title="Add to&nbsp;Stumble Upon" alt="Add to&nbsp;Stumble Upon" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://www.technorati.com/faves?add=http://neilmiddleton.com/2008/01/21/coldfusion-code-highlighting-with-geshi/" rel="nofollow" title="Add to&nbsp;Technorati"><img class="social_img" src="http://neilmiddleton.com/wp-content/plugins/social-bookmarks/images/technorati.png" title="Add to&nbsp;Technorati" alt="Add to&nbsp;Technorati" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://tipd.com/submit.php?url=http://neilmiddleton.com/2008/01/21/coldfusion-code-highlighting-with-geshi/" rel="nofollow" title="Add to&nbsp;Tip'd"><img class="social_img" src="http://neilmiddleton.com/wp-content/plugins/social-bookmarks/images/tipd.png" title="Add to&nbsp;Tip'd" alt="Add to&nbsp;Tip'd" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://twitter.com/home/?status=Check+out+ColdFusion+Code+highlighting+with+GeSHI+@+http://neilmiddleton.com/2008/01/21/coldfusion-code-highlighting-with-geshi/" rel="nofollow" title="Add to&nbsp;Twitter"><img class="social_img" src="http://neilmiddleton.com/wp-content/plugins/social-bookmarks/images/twitter.png" title="Add to&nbsp;Twitter" alt="Add to&nbsp;Twitter" /></a>
<a onclick="window.open(this.href, '_blank', 'scrollbars=yes,menubar=no,height=600,width=750,resizable=yes,toolbar=no,location=no,status=no'); return false;" href="http://myweb2.search.yahoo.com/myresults/bookmarklet?u=http://neilmiddleton.com/2008/01/21/coldfusion-code-highlighting-with-geshi/&amp;t=ColdFusion+Code+highlighting+with+GeSHI" rel="nofollow" title="Add to&nbsp;Yahoo My Web"><img class="social_img" src="http://neilmiddleton.com/wp-content/plugins/social-bookmarks/images/yahoo.png" title="Add to&nbsp;Yahoo My Web" alt="Add to&nbsp;Yahoo My Web" /></a>
<br />
</div>
</div>
<!-- Social Bookmarks END -->
]]></content:encoded>
			<wfw:commentRss>http://neilmiddleton.com/2008/01/21/coldfusion-code-highlighting-with-geshi/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
