<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: WordPress Shortcodes in CFML</title>
	<atom:link href="http://www.barneyb.com/barneyblog/2010/03/13/wordpress-shortcodes-in-cfml/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.barneyb.com/barneyblog/2010/03/13/wordpress-shortcodes-in-cfml/</link>
	<description>Thoughts, rants, and even some code from the mind of Barney Boisvert.</description>
	<lastBuildDate>Thu, 11 Sep 2014 09:58:12 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: barneyb</title>
		<link>https://www.barneyb.com/barneyblog/2010/03/13/wordpress-shortcodes-in-cfml/comment-page-1/#comment-213576</link>
		<dc:creator>barneyb</dc:creator>
		<pubDate>Fri, 11 Jun 2010 18:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1375#comment-213576</guid>
		<description>Thomas,

Implementing your own shortcode is trivially easy, so if you have a syntax highlighting package (there are several available), it&#039;d be short work to wrap it up in a CFC that the shortcode engine can use.  Basically you just need something like this:

&lt;pre&gt;function highlight(attrs, content) {
    return myHighlightingCfc.highlight(content);
}
sc = createObject(&quot;component&quot;, &quot;shortcodes&quot;);
sc.add(&quot;time&quot;, highlight);

sc.process(myContent);
&lt;/pre&gt;

Obviously the actual implementation of the method will depend on the highlighting package you selected.</description>
		<content:encoded><![CDATA[<p>Thomas,</p>
<p>Implementing your own shortcode is trivially easy, so if you have a syntax highlighting package (there are several available), it'd be short work to wrap it up in a CFC that the shortcode engine can use.  Basically you just need something like this:</p>
<pre>function highlight(attrs, content) {
    return myHighlightingCfc.highlight(content);
}
sc = createObject("component", "shortcodes");
sc.add("time", highlight);

sc.process(myContent);
</pre>
<p>Obviously the actual implementation of the method will depend on the highlighting package you selected.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Burleson</title>
		<link>https://www.barneyb.com/barneyblog/2010/03/13/wordpress-shortcodes-in-cfml/comment-page-1/#comment-213471</link>
		<dc:creator>Thomas Burleson</dc:creator>
		<pubDate>Wed, 09 Jun 2010 14:03:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1375#comment-213471</guid>
		<description>Wordpress is an fantastic CMS with incredible versatility. And ShortCodes are amazing.
Really like your demo of Latex ShortCodes. 
If you did a ShortCode for Syntax Highlighting for CFM pages that would be very cool.

ThomasB</description>
		<content:encoded><![CDATA[<p>Wordpress is an fantastic CMS with incredible versatility. And ShortCodes are amazing.<br />
Really like your demo of Latex ShortCodes.<br />
If you did a ShortCode for Syntax Highlighting for CFM pages that would be very cool.</p>
<p>ThomasB</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron Terry</title>
		<link>https://www.barneyb.com/barneyblog/2010/03/13/wordpress-shortcodes-in-cfml/comment-page-1/#comment-209372</link>
		<dc:creator>Aaron Terry</dc:creator>
		<pubDate>Mon, 29 Mar 2010 21:39:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.barneyb.com/barneyblog/?p=1375#comment-209372</guid>
		<description>Looks pretty sweet. I&#039;ve been digging the Wordpress shortcode functionality and I might need  this in a future CF project.</description>
		<content:encoded><![CDATA[<p>Looks pretty sweet. I've been digging the Wordpress shortcode functionality and I might need  this in a future CF project.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
