<?xml version="1.0" encoding="utf-8"?>
			
			<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:cc="http://web.resource.org/cc/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

			<channel>
			<title>cfsilence - cfCodePress</title>
			<link>http://cfsilence.com/blog/client/index.cfm</link>
			<description>The personal blog of Todd Sharp.</description>
			<language>en-us</language>
			<pubDate>Mon, 06 Sep 2010 21:33:56 -0400</pubDate>
			<lastBuildDate>Thu, 05 Jul 2007 11:50:00 -0400</lastBuildDate>
			<generator>BlogCFC</generator>
			<docs>http://blogs.law.harvard.edu/tech/rss</docs>
			<managingEditor>cfsilence@gmail.com</managingEditor>
			<webMaster>cfsilence@gmail.com</webMaster>
			<itunes:subtitle></itunes:subtitle>
			<itunes:summary></itunes:summary>
			<itunes:category text="Technology" />
			<itunes:category text="Technology">
				<itunes:category text="Podcasting" />
			</itunes:category>
			<itunes:category text="Technology">
				<itunes:category text="Tech News" />
			</itunes:category>
			<itunes:keywords></itunes:keywords>
			<itunes:author></itunes:author>
			<itunes:owner>
				<itunes:email>cfsilence@gmail.com</itunes:email>
				<itunes:name></itunes:name>
			</itunes:owner>
			<itunes:image href="" />
			<image>
				<url></url>
				<title>cfsilence</title>
				<link>http://cfsilence.com/blog/client/index.cfm</link>
			</image>
			<itunes:explicit>no</itunes:explicit>
			
			
			
			
			
			<item>
				<title>cfCodePress - Custom Tag For Real Time Code Coloring</title>
				<link>http://cfsilence.com/blog/client/index.cfm/2007/7/5/cfCodePress--Custom-Tag-For-Real-Time-Code-Coloring</link>
				<description>
				
				Over the past few days I&apos;ve thrown together a custom tag implementation of &lt;a href=&quot;http://codepress.org&quot;&gt;CodePress&lt;/a&gt;.  

Here&apos;s an abbreviated description of CodePress taken from their site:

&lt;blockquote&gt;
CodePress is web-based source code editor with syntax highlighting written in JavaScript that colors text in real time while it&apos;s being typed in the browser.

Features
&lt;ul&gt;
&lt;li&gt;Real-time syntax highlighting &#xbb; just write some code&lt;/li&gt;
&lt;li&gt;Code snippets &#xbb; on PHP example type &quot;if&quot; and press [tab]&lt;/li&gt;
&lt;li&gt;Auto completion &#xbb; simple type &quot; or ( or &apos; or [ or { on any example below (except Plain Text)&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

What makes this tag cool is that you can now drop a nicely formatted block of code or a real time syntax highlighting code editor into your application with a single line of code.

Check this out (go ahead, type some code):

&lt;strong&gt;Update:&lt;/strong&gt;  Arg...Demo appears to not work here after the first time I hit the page...

Check this &lt;a href=&quot;http://cfsilence.com/blog/myapps/codepress/cp_demo.cfm&quot;&gt;demo &lt;/a&gt; instead...

&lt;strong&gt;Update 2:&lt;/strong&gt; OK...it works intermittently here in the blog post...weird...

&lt;include template=&quot;/blog/myapps/codepress/cp_demo.cfm&quot;&gt;

There are a few bugs with it - which is why I&apos;m just previewing and not releasing the tag just yet.  First and most obviously you see that when I drop my demo page as an include in BlogCFC the editor does not seem to be obeying the line breaks in the code I load initially into the editor.  Check out the &lt;a href=&quot;http://cfsilence.com/blog/myapps/codepress/cp_demo.cfm&quot;&gt;demo &lt;/a&gt; outside of my stylesheet to see a properly formatted block (anyone see anything in my stylesheet that could be goofing it?).

Secondly - I&apos;ve integrated the CodePress SQL, HTML and CSS templates into the CF version - and it tends to get a little goofy.  For example type a comment with an SQL keyword in it and it will highlight the SQL keyword.  Anyone &lt;em&gt;really good&lt;/em&gt; with RegEx that wants to take a look at overcoming these issues?  

There is also an API to toggle line numbers, etc that I plan on exposing with the final release of the code.
				
				</description>
						
				
				<category>cfCodePress</category>				
				
				<category>ColdFusion</category>				
				
				<pubDate>Thu, 05 Jul 2007 11:50:00 -0400</pubDate>
				<guid>http://cfsilence.com/blog/client/index.cfm/2007/7/5/cfCodePress--Custom-Tag-For-Real-Time-Code-Coloring</guid>
				
				
			</item>
			
		 	
			</channel></rss>