<?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>All I don&#039;t know &#187; PHP</title>
	<atom:link href="http://blog.derraab.com/category/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.derraab.com</link>
	<description>About Flash™, Flex™, software development and my computer. And JavaScript.</description>
	<lastBuildDate>Sat, 26 Nov 2011 18:31:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Set WP-Syntax tab width</title>
		<link>http://blog.derraab.com/2011/02/01/set-wp-syntax-tab-width/</link>
		<comments>http://blog.derraab.com/2011/02/01/set-wp-syntax-tab-width/#comments</comments>
		<pubDate>Tue, 01 Feb 2011 14:42:50 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[How To...]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=480</guid>
		<description><![CDATA[Since I&#8217;m using the WP-Syntax plug-in on my blog I tried to optimize font size and the tab width. Like a lot of developers I heavily use tabs in my source code. These tabs are really wide within the browser &#8230; <a href="http://blog.derraab.com/2011/02/01/set-wp-syntax-tab-width/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Since I&#8217;m using the WP-Syntax plug-in on my blog I tried to optimize font size and the tab width. Like a lot of developers I heavily use tabs in my source code. These tabs are really wide within the browser so I was looking for a way to minimize the used space.</p>
<p>I&#8217;m not a CSS guy but it seems like there is no way to set a specific tab width. So why not replace the tab with white space?</p>
<p>My change to wp-syntax/wp-syntax.php:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> wp_syntax_highlight<span style="color: #009900;">&#40;</span><span style="color: #000088;">$match</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$wp_syntax_matches</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #990000;">intval</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$match</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$match</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wp_syntax_matches</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$language</span> <span style="color: #339933;">=</span> <span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$match</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$line</span> <span style="color: #339933;">=</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$match</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$escaped</span> <span style="color: #339933;">=</span> <span style="color: #990000;">trim</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$match</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$code</span> <span style="color: #339933;">=</span> wp_syntax_code_trim<span style="color: #009900;">&#40;</span><span style="color: #000088;">$match</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #666666; font-style: italic;">// INSERT JUST THIS LINE OF CODE</span>
    <span style="color: #000088;">$code</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span> <span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'    '</span> <span style="color: #339933;">,</span> <span style="color: #0000ff;">'   '</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$code</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #339933;">.</span>
    <span style="color: #339933;">.</span>
    <span style="color: #339933;">.</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2011/02/01/set-wp-syntax-tab-width/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Zend Framework CLI Tool Usage</title>
		<link>http://blog.derraab.com/2009/10/29/zend-framework-cli-tool-usage/</link>
		<comments>http://blog.derraab.com/2009/10/29/zend-framework-cli-tool-usage/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 09:01:13 +0000</pubDate>
		<dc:creator>derRaab</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://blog.derraab.com/?p=91</guid>
		<description><![CDATA[God damn it. I spent hours trying to generate the basic filestructure using the Zend_Tool (zf.php) shipping within the Zend Framework download. It didn&#8217;t work and I got really frustrated. Well, guess what. Now I downloaded the next version (1.9.5) &#8230; <a href="http://blog.derraab.com/2009/10/29/zend-framework-cli-tool-usage/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>God damn it. I spent hours trying to generate the basic filestructure using the Zend_Tool (zf.php) shipping within the Zend Framework download. It didn&#8217;t work and I got really frustrated.</p>
<p>Well, guess what. Now I downloaded the next version (1.9.5) and it works!</p>
<p>Just open the terminal, navigate to the bin directory within the framework download and type (Mac OS X):<br />
<code><br />
./zf.sh create project ./</code></p>
<p>This is what get&#8217;s generated: <a href='http://blog.derraab.com/wp-content/uploads/2009/10/zend_1_9_5_structure.zip'>Zend_1_9_5_Structure</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.derraab.com/2009/10/29/zend-framework-cli-tool-usage/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

