<?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>dennis henry &#187; GeSHI</title>
	<atom:link href="http://dennishenry.net/category/php/geshi/feed/" rel="self" type="application/rss+xml" />
	<link>http://dennishenry.net</link>
	<description>ramblings of an IT professional</description>
	<lastBuildDate>Mon, 26 Sep 2011 16:50:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Issue with GeSHI and CakePHP</title>
		<link>http://dennishenry.net/2010/11/30/geshi-cakephp/</link>
		<comments>http://dennishenry.net/2010/11/30/geshi-cakephp/#comments</comments>
		<pubDate>Tue, 30 Nov 2010 17:12:20 +0000</pubDate>
		<dc:creator>dennis</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[GeSHI]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[highlighting]]></category>
		<category><![CDATA[pcre]]></category>
		<category><![CDATA[preg_replace]]></category>
		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://dennishenry.net/?p=119</guid>
		<description><![CDATA[So today I was having an issue where, for some reason, an incredibly long script in our script repository built using CakePHP would not display the GeSHI syntax-highlighted code. I tore apart the code looking for an answer and the only unique attribute to this script was its very long length  [...]]]></description>
			<content:encoded><![CDATA[<p>So today I was having an issue where, for some reason, an incredibly long script in our script repository built using CakePHP would not display the GeSHI syntax-highlighted code. I tore apart the code looking for an answer and the only unique attribute to this script was its very long length (around 1k lines, over 50k characters). I eventually narrowed it down to the preg_replace that was being used in the <a href="http://mark-story.com/posts/view/geshi-helper-for-cakephp">CakePHP wrapper for GeSHI I was using</a> and discovered that the pcre.backtrack_limit was too low at the default of 10000 (10 thousand). I upped the limit to 10000000 (10 million) and it&#8217;s now able to display the syntax highlighted code without issue.</p>
<p>Just thought I&#8217;d make a quick post because I could not find another blog with this solution. Hope this helps someone else in a similar predicament!</p>
]]></content:encoded>
			<wfw:commentRss>http://dennishenry.net/2010/11/30/geshi-cakephp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

