<?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>acloudtree &#187; Syntax</title>
	<atom:link href="http://www.acloudtree.com/tag/syntax/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.acloudtree.com</link>
	<description>Programming, Computers, Writing, Economics, and Life</description>
	<lastBuildDate>Tue, 07 Feb 2012 00:03:38 +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>(Nerd) Ubuntu + Vim + ZendFramework-1.9.2 + .pthml syntax highlighting</title>
		<link>http://www.acloudtree.com/nerd-ubuntu-vim-zendframework-192-pthml-syntax-highlighting/</link>
		<comments>http://www.acloudtree.com/nerd-ubuntu-vim-zendframework-192-pthml-syntax-highlighting/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 18:51:25 +0000</pubDate>
		<dc:creator>jared.folkins</dc:creator>
				<category><![CDATA[Nerd]]></category>
		<category><![CDATA[OOP]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[VIM]]></category>
		<category><![CDATA[Zend]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[Framework]]></category>
		<category><![CDATA[Highlighting]]></category>
		<category><![CDATA[Syntax]]></category>

		<guid isPermaLink="false">http://www.acloudtree.com/nerd-ubuntu-vim-zendframework-192-pthml-syntax-highlighting/</guid>
		<description><![CDATA[1) From the command line &#8216;cd&#8217; to your &#8216;home&#8217; directory test-box@jbuntu:~$ cd 2a) Check to see if the .vimrc file exists test-box@jbuntu:~$ ls .vimrc If the terminal outputs nothing, then that means the file does not exist. 2b) If you get the following test-box@jbuntu:~$ ls .vimrc .vimrc It means that the file does exist and [...]]]></description>
			<content:encoded><![CDATA[<p>1) From the command line &#8216;cd&#8217; to your &#8216;home&#8217; directory</p>
<p><code><br />
test-box@jbuntu:~$ cd<br />
</code></p>
<p>2a) Check to see if the .vimrc file exists</p>
<p><code><br />
test-box@jbuntu:~$ ls .vimrc<br />
</code></p>
<p>If the terminal outputs nothing, then that means the file does not exist.</p>
<p>2b) If you get the following</p>
<p><code><br />
test-box@jbuntu:~$ ls .vimrc<br />
.vimrc<br />
</code></p>
<p>It means that the file does exist and we just need to edit it.</p>
<p>3) If the file does not exist just &#8216;touch&#8217; the file. If it DOES exist, just skip this step.</p>
<p><code><br />
test-box@jbuntu:~$ touch .vimrc<br />
</code></p>
<p>4) From this point, &#8216;vi&#8217; the &#8216;.vimrc&#8217; file. You primarily need the following lines and you are more than welcome to copy/paste. Write/Quite when finished.</p>
<p><code><br />
if has("autocmd")<br />
autocmd BufEnter *.phtml set syn=php<br />
endif<br />
syn on</code></p>
<p>Now the next time you open VI it should have the desired highlighting for .phtml files found in the Zend Framework.</p>
<p>Below is my &#8216;.vimrc&#8217; file in it&#8217;s entirety. Just for the record. It also allows for syntax highlighting to occur in CakePHP .ctp files along with some other settings that I prefer.</p>
<p><code><br />
set tabstop=2<br />
set shiftwidth=2<br />
set expandtab<br />
if has("autocmd")<br />
autocmd BufEnter *.ctp set syn=php<br />
autocmd BufEnter *.phtml set syn=php<br />
endif<br />
syn on<br />
set ai</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.acloudtree.com/nerd-ubuntu-vim-zendframework-192-pthml-syntax-highlighting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

