<?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>Polymorphism &#187; WordPress</title>
	<atom:link href="http://www.clearcrystalmedia.com/pm/category/content-management/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.clearcrystalmedia.com/pm</link>
	<description>using the right technology at the right time</description>
	<lastBuildDate>Tue, 29 Nov 2011 13:53:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Code highlighting with the WP-Syntax plugin for WordPress</title>
		<link>http://www.clearcrystalmedia.com/pm/wp-syntax-plugin-wordpress/</link>
		<comments>http://www.clearcrystalmedia.com/pm/wp-syntax-plugin-wordpress/#comments</comments>
		<pubDate>Sat, 25 Jul 2009 14:21:45 +0000</pubDate>
		<dc:creator>Chris Peters</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[ccm]]></category>
		<category><![CDATA[cfwheels]]></category>
		<category><![CDATA[chris peters]]></category>
		<category><![CDATA[clear crystal media]]></category>
		<category><![CDATA[coldfusion on wheels]]></category>
		<category><![CDATA[ColdFusion on Wheels]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[polymorphism]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.clearcrystalmedia.com/pm/?p=193</guid>
		<description><![CDATA[<p>I'd like to write more about <a href="http://www.cfwheels.org/">ColdFusion on Wheels</a> on this blog, so I'm playing around with a syntax highlighter for WordPress called <a href="http://wordpress.org/extend/plugins/wp-syntax/">WP-Syntax</a>.</p>
<p>Read on to see how simple this WordPress plugin is, how to use it, and some examples.</p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;d like to write more about <a href="http://www.cfwheels.org/">ColdFusion on Wheels</a> on this blog, so I&#8217;m playing around with a syntax highlighter for WordPress called <a href="http://wordpress.org/extend/plugins/wp-syntax/">WP-Syntax</a>.</p>
<p>It supports syntax highlighting for a boat-load of languages, <abbr title="ColdFusion Markup Language">CFML</abbr>, <abbr title="Hypertext Markup Language">HTML</abbr>, JavaScript, and <abbr title="Cascading Style Sheets">CSS</abbr> included.</p>
<p>It looks like all I&#8217;ll need to do is wrap some code in <code>&lt;pre&gt;</code> tags with a <code>lang</code> attribute like so:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">pre</span> <span style="color: #000066;">lang</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cfm&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;cfcomponent output<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;false&quot;</span>&gt;</span>
&nbsp;
    <span style="color: #009900;">&lt;cffunction <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hello&quot;</span>&gt;</span>
        <span style="color: #009900;">&lt;cfset theTime <span style="color: #66cc66;">=</span> Now<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>cffunction&gt;</span>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span>cfcomponent&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">pre</span>&gt;</span></pre></div></div>

<p>It will produce this output:</p>

<div class="wp_syntax"><div class="code"><pre class="cfm" style="font-family:monospace;"><span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfcomponent</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span><span style="color: #0000FF;">&gt;</span></span>
&nbsp;
    <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;hello&quot;</span><span style="color: #0000FF;">&gt;</span></span>
        <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> theTime <span style="color: #0000FF;">=</span> <span style="color: #0000FF;">Now</span><span style="color: #0000FF;">&#40;</span><span style="color: #0000FF;">&#41;</span><span style="color: #0000FF;">&gt;</span></span>
    <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span>
&nbsp;
<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfcomponent</span><span style="color: #0000FF;">&gt;</span></span></pre></div></div>

<p>To add line numbers to the formatting, just add the line number you want it to start at with the <code>line</code> attribute.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="cfm" style="font-family:monospace;"><span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfcomponent</span> output<span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;false&quot;</span><span style="color: #0000FF;">&gt;</span></span>
&nbsp;
    <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cffunction</span> <span style="color: #0000FF;">name</span><span style="color: #0000FF;">=</span><span style="color: #009900;">&quot;hello&quot;</span><span style="color: #0000FF;">&gt;</span></span>
        <span style="color: #333333;"><span style="color: #0000FF;">&lt;</span><span style="color: #990000; font-weight: bold;">cfset</span> theTime <span style="color: #0000FF;">=</span> <span style="color: #0000FF;">Now</span><span style="color: #0000FF;">&#40;</span><span style="color: #0000FF;">&#41;</span><span style="color: #0000FF;">&gt;</span></span>
    <span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cffunction</span><span style="color: #0000FF;">&gt;</span></span>
&nbsp;
<span style="color: #333333;"><span style="color: #0000FF;">&lt;/</span><span style="color: #990000; font-weight: bold;">cfcomponent</span><span style="color: #0000FF;">&gt;</span></span></pre></td></tr></table></div>

<p>You can view source on this entry to see what happens behind the scenes. Pretty sweet!</p>
<p>The <a href="http://wordpress.org/extend/plugins/wp-syntax/other_notes/">Other Notes</a> page in the documentation is the best way to get a sense of how to use the plugin, plus it lists the values you can put into the <code>lang</code> attribute.</p>

<!-- start wp-tags-to-technorati 1.01 -->

<p class='technorati-tags'>Technorati Tags: <a class='technorati-link' href='http://technorati.com/tag/blogging' rel='tag' target='_self'>blogging</a>, <a class='technorati-link' href='http://technorati.com/tag/ccm' rel='tag' target='_self'>ccm</a>, <a class='technorati-link' href='http://technorati.com/tag/cfwheels' rel='tag' target='_self'>cfwheels</a>, <a class='technorati-link' href='http://technorati.com/tag/chris+peters' rel='tag' target='_self'>chris peters</a>, <a class='technorati-link' href='http://technorati.com/tag/clear+crystal+media' rel='tag' target='_self'>clear crystal media</a>, <a class='technorati-link' href='http://technorati.com/tag/ColdFusion' rel='tag' target='_self'>ColdFusion</a>, <a class='technorati-link' href='http://technorati.com/tag/coldfusion+on+wheels' rel='tag' target='_self'>coldfusion on wheels</a>, <a class='technorati-link' href='http://technorati.com/tag/ColdFusion+on+Wheels' rel='tag' target='_self'>ColdFusion on Wheels</a>, <a class='technorati-link' href='http://technorati.com/tag/development' rel='tag' target='_self'>development</a>, <a class='technorati-link' href='http://technorati.com/tag/plugin' rel='tag' target='_self'>plugin</a>, <a class='technorati-link' href='http://technorati.com/tag/plugins' rel='tag' target='_self'>plugins</a>, <a class='technorati-link' href='http://technorati.com/tag/polymorphism' rel='tag' target='_self'>polymorphism</a>, <a class='technorati-link' href='http://technorati.com/tag/Programming' rel='tag' target='_self'>Programming</a>, <a class='technorati-link' href='http://technorati.com/tag/web' rel='tag' target='_self'>web</a>, <a class='technorati-link' href='http://technorati.com/tag/web+development' rel='tag' target='_self'>web development</a>, <a class='technorati-link' href='http://technorati.com/tag/WordPress' rel='tag' target='_self'>WordPress</a></p>

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.clearcrystalmedia.com/pm/wp-syntax-plugin-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 2.5 comments not showing up in Dashboard</title>
		<link>http://www.clearcrystalmedia.com/pm/wordpress-25-comments-not-showing-dashboard/</link>
		<comments>http://www.clearcrystalmedia.com/pm/wordpress-25-comments-not-showing-dashboard/#comments</comments>
		<pubDate>Sat, 19 Apr 2008 16:52:05 +0000</pubDate>
		<dc:creator>Chris Peters</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.chrispetersweb.com/?p=137</guid>
		<description><![CDATA[I upgraded a large number of WordPress blogs to version 2.5 a few weeks ago and couldn&#8217;t get comments to show up in the Dashboard. After some prodding in the WordPress forum, oreixa finally offered up a solution. Access to your Mysql database and execute: create index comment_date_gmt on wp_comments(comment_date_gmt); it will create the index [...]]]></description>
			<content:encoded><![CDATA[<p>I upgraded a large number of WordPress blogs to version 2.5 a few weeks ago and couldn&#8217;t get comments to show up in the Dashboard.</p>
<p>After some prodding in the WordPress forum, <a title="WP 2.5 Upgrade. Comments are not Visible." href="http://wordpress.org/support/topic/164838#post-722799">oreixa finally offered up a solution</a>.<span id="more-137"></span></p>
<blockquote cite="http://wordpress.org/support/topic/164838#post-722799"><p>Access to your Mysql database and execute:</p>
<p>create index comment_date_gmt on wp_comments(comment_date_gmt);</p>
<p>it will create the index and the comments will appear.</p>
<p>remember to backup the database first.</p></blockquote>
<p>Maybe some of you will find me in a Google search. If so, be sure to say hi!</p>

<!-- start wp-tags-to-technorati 1.01 -->

<!-- end wp-tags-to-technorati -->
]]></content:encoded>
			<wfw:commentRss>http://www.clearcrystalmedia.com/pm/wordpress-25-comments-not-showing-dashboard/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

