<?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>jensbits.com &#187; wordpress</title>
	<atom:link href="http://www.jensbits.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jensbits.com</link>
	<description></description>
	<lastBuildDate>Wed, 21 Jul 2010 03:44:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>ColdFusion Brush for SyntaxHighlighter Plus and Evolved</title>
		<link>http://www.jensbits.com/2009/05/14/coldfusion-brush-for-syntaxhighlighter-plus/</link>
		<comments>http://www.jensbits.com/2009/05/14/coldfusion-brush-for-syntaxhighlighter-plus/#comments</comments>
		<pubDate>Thu, 14 May 2009 22:54:14 +0000</pubDate>
		<dc:creator>jen</dc:creator>
				<category><![CDATA[ColdFusion]]></category>
		<category><![CDATA[Web development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.jensbits.com/?p=166</guid>
		<description><![CDATA[SyntaxHighlighter Plus has been replaced by SyntaxHighligher Evolved. Instructions for adding a ColdFusion brush to both are below. SyntaxHighlighter Plus is a great WordPress plugin for highlighting code in your blog posts. Out of the box it doesn&#8217;t come with a brush for ColdFusion syntax highlighting. A brush is a javascript file that is used [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>SyntaxHighlighter Plus has been replaced by <a href="http://wordpress.org/extend/plugins/syntaxhighlighter/">SyntaxHighligher Evolved</a>. Instructions for adding a ColdFusion brush to both are below.</p>
<p><a href="http://wordpress.org/extend/plugins/syntaxhighlighter-plus/">SyntaxHighlighter Plus is a great WordPress plugin</a> for highlighting code in your blog posts. Out of the box it doesn&#8217;t come with a brush for ColdFusion syntax highlighting. A brush is a javascript file that is used by SyntaxHighlighter Plus to determine how to style the code inside the syntax highlighter itself. You could use the HTML brush for ColdFusion code, but a little funkiness happens at times so I added my own brush for ColdFusion.</p>
<h3>How to Add the Brush</h3>
<p>For <strong>Plus and Evolved</strong>, add the shBrushColdFusion.js to the scripts folder. If you installed it as a WordPress plugin, the folder structure will be syntaxhighlighter-plus (Plus) or syntaxhighlighter (Evolved), syntaxhighlighter, scripts.<br />
<strong>SyntaxHighligher Plus:</strong> Modify the syntaxhighlighter.php found in the syntaxhighlighter-plus folder by adding &#8216;ColdFusion&#8217; => array(&#8216;coldfusion&#8217;, &#8216;cf&#8217;), to the aliases array.</p>
<pre class="brush: php;">$this-&gt;aliases = apply_filters( 'agsyntaxhighlighter_aliases', array(
            'Bash'      =&gt; array('bash', 'sh', 'shell'),
            'ColdFusion' =&gt; array('coldfusion', 'cf'),
            'Cpp'       =&gt; array('cpp', 'c', 'c++'),
            'CSharp'  =&gt; array('c#', 'c-sharp', 'csharp'),
            'Css'     =&gt; array('css'),
            'Delphi'  =&gt; array('delphi', 'pascal'),
            'Diff'    =&gt; array('diff', 'patch'),
            'Groovy'  =&gt; array('groovy'),
            'Java'    =&gt; array('java'),
            'JScript' =&gt; array('js', 'jscript', 'javascript'),
            'Perl'    =&gt; array('perl', 'pl'),
            'Php'     =&gt; array('php'),
            'Plain'   =&gt; array('', 'plain', 'text'),
            'Python'  =&gt; array('py', 'python'),
            'Ruby'    =&gt; array('rb', 'ruby', 'rails', 'ror'),
            'Scala'   =&gt; array('scala'),
            'Sql'     =&gt; array('sql'),
            'Vb'      =&gt; array('vb', 'vbnet', 'vb.net'),
            'Xml'     =&gt; array('xml', 'html', 'xhtml', 'xslt'),
        ) );
</pre>
<p><strong>SyntaxHighligher Evolved:</strong> Modify the syntaxhighlighter.php found in the syntaxhighlighter folder by adding a registration for the brush in function _construct().</p>
<pre class="brush: php;">wp_register_script( 'syntaxhighlighter-brush-coldfusion',       plugins_url('syntaxhighlighter/syntaxhighlighter/scripts/shBrushColdFusion.js'),       array('syntaxhighlighter-core'), $this-&gt;agshver );</pre>
<p>Add ColdFusion to the list of aliases.</p>
<pre class="brush: php;">'coldfusion'    =&gt; 'coldfusion',
'cf'            =&gt; 'coldfusion',</pre>
<h3>How to Use the ColdFusion Brush</h3>
<p>Wrap the code you want to display in your post using one of the following methods:</p>
<p>&#91;sourcecode language=&#8217;coldfusion&#8217;&#93;code here&#91;/sourcecode&#93;<br />
&#91;sourcecode language=&#8217;cf&#8217;&#93;code here&#91;/sourcecode&#93;<br />
&#91;coldfusion&#93;code here&#91;/coldfusion&#93;<br />
&#91;cf&#93;code here&#91;/cf&#93;</p>
<p>Personally I like the last method the best.</p>
<p id="download"><a href="/media/shBrushColdFusion.txt"><br />
<span>ColdFusion brush javascript code (change extension to .js before uploading)</span></a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jensbits.com/2009/05/14/coldfusion-brush-for-syntaxhighlighter-plus/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
