<?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>Chad Von Lind &#187; Website Designer, WordPress Programmer &amp; Theme Developer &#8211; Chad Von Lind</title>
	<atom:link href="http://vonlind.com/tag/syntax/feed/" rel="self" type="application/rss+xml" />
	<link>http://vonlind.com</link>
	<description>Web Design Specialist, WordPress, CMS and eCommerce</description>
	<lastBuildDate>Mon, 17 Oct 2011 18:27:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Dreamweaver Syntax Highlight Tip</title>
		<link>http://vonlind.com/2008/06/dreamweaver-syntax-highlight-tip/</link>
		<comments>http://vonlind.com/2008/06/dreamweaver-syntax-highlight-tip/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 20:14:15 +0000</pubDate>
		<dc:creator>Chad Von Lind</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[dreamweaver]]></category>
		<category><![CDATA[syntax]]></category>

		<guid isPermaLink="false">http://vonlind.com?p=27</guid>
		<description><![CDATA[I use Dreamwweaver CS3 for all of my code editing, and I currently have the pleasure of working with the new Magento Shopcart Software. While adding Shadowbox to the cart, I ran into the small problem of Magento template files that use the rare .phtml file extension. As Dreamweaver by default does not color code [...]]]></description>
			<content:encoded><![CDATA[<p>I use Dreamwweaver CS3 for all of my code editing, and I currently have the pleasure of working with the new <a href="http://magentoecommerce.com">Magento Shopcart Software</a>. While <a href="http://vonlind.com/2008/06/adding-shadowbox-to-magento-ecommerce/">adding Shadowbox</a> to the cart, I ran into the small problem of Magento template files that use the rare .phtml file extension. As Dreamweaver by default does not color code the syntax, it makes it difficult to read the php code that makes up the template file.</p>
<p>Here is how I added syntax highlighting to a specific file type that is not listed by default in Dreamweaver. <span id="more-396"></span></p>
<p><span class="intro">First, I noted what language the template file is made up of.</span> Even though the file extension is .phtml, I know that the actual language is php.</p>
<p><span class="intro">Second, I opened the document type config file in the Dreamweaver installation folder.</span> This should be found in this general area.</p>
<p><small>C:\Program Files\Adobe\Dreamweaver CS3\Configuration\DocumentTypes\<strong>MMDocumentTypes.xml</strong></small></p>
<p>I opened the file with Notepad, and hit Control + F, and entered <em>winfileextension=&#8221;php</em> as my search query. This jumped me down to where the list of file types that use a specific syntax highlighting. My list appeared as <em>winfileextension=&#8221;php,php3,php4,php5&#8243;</em>.</p>
<p>All I did was add a comma and phtml to the end of that list:</p>
<p><em>winfileextension=&#8221;php,php3,php4,php5,phtml&#8221;</em></p>
<p>Then I saved the file and restarted Dreamweaver. Now any file with the .phtml file extension receives the same syntax highlighting as a php document.</p>
<p><strong>Before and After</strong></p>
<p><a href='http://vonlind.com/wp-content/uploads/2008/06/syntax-hilite-before.jpg'><img src="http://vonlind.com/wp-content/uploads/2008/06/syntax-hilite-before-322x190.jpg" alt="" title="syntax-hilite-before" width="322" height="190" class="alignnone size-medium wp-image-28" /></a></p>
<p><a href='http://vonlind.com/wp-content/uploads/2008/06/syntax-hilite-after.jpg'><img src="http://vonlind.com/wp-content/uploads/2008/06/syntax-hilite-after-322x190.jpg" alt="" title="syntax-hilite-after" width="322" height="190" class="alignnone size-medium wp-image-29" /></a><img src="http://vonlind.com/?ak_action=api_record_view&#038;id=396&#038;type=feed" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://vonlind.com/2008/06/dreamweaver-syntax-highlight-tip/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
	</channel>
</rss>

