<?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>The Web Development Blog &#187; coda</title>
	<atom:link href="http://www.thewebdevelopmentblog.com/tag/coda/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thewebdevelopmentblog.com</link>
	<description>News, tips, scripts and tutorials for web developers.</description>
	<lastBuildDate>Thu, 25 Aug 2011 11:15:07 +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>10 handy tips for getting the most out of Coda</title>
		<link>http://www.thewebdevelopmentblog.com/2009/09/10-handy-tips-for-getting-the-most-out-of-coda/</link>
		<comments>http://www.thewebdevelopmentblog.com/2009/09/10-handy-tips-for-getting-the-most-out-of-coda/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 14:03:54 +0000</pubDate>
		<dc:creator>Jason Stockton</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[coda]]></category>
		<category><![CDATA[Mac]]></category>

		<guid isPermaLink="false">http://thewebdevelopmentblog.com/?p=364</guid>
		<description><![CDATA[If you&#8217;re a web developer on Mac I encourage you to get your hands on Coda by Panic. It can handle just about all of your development needs and make coding much faster. If you&#8217;ve already got it then brilliant! I&#8217;m going to run through 10 tips to get the most out of Coda, some [...]]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re a web developer on Mac I encourage you to get your hands on <a href="https://www.panic.com/coda/" target="_blank">Coda</a> by <a href="https://www.panic.com/">Panic</a>. It can handle just about all of your development needs and make coding much faster. If you&#8217;ve already got it then brilliant! I&#8217;m going to run through 10 tips to get the most out of Coda, some you may know, some you may not. It&#8217;s all part of the fun! Let&#8217;s see why Coda leave it&#8217;s competitors in the dark.</p>
<p><span id="more-364"></span></p>
<h2><strong>1. Sites</strong></h2>
<p>Stay organised with sites. This is the first feature you see when you open Coda. Sites allows you to setup a working directory, FTP account and much more for each site you&#8217;re working on. So you can just double click and get connected. By far one of the most valuable features of Coda.</p>
<p><a href="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-11.23.30-PM.png"><img class="alignnone size-medium wp-image-373" title="Sites" src="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-11.23.30-PM-300x185.png" alt="Sites" width="300" height="185" /></a></p>
<h2><strong>2. Books </strong></h2>
<p>What was that code again? You know when you have that mental blank and can&#8217;t remember a code for the life of you. With the built in books in coda you have complete references for HTML, CSS, Javascript and PHP. Perfect! Just hit the books tab.</p>
<p><img class="alignnone size-medium wp-image-365" title="Books" src="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-11.25.06-PM-300x164.png" alt="Books" width="300" height="164" /></p>
<h2>3. Visual CSS Editor</h2>
<p>If you work with CSS the visual CSS editor will save you a lot of time. CSS newbies will love it as well as it will make learning CSS a breeze.</p>
<p>To use the CSS editor, select your CSS file (or page that contains the CSS you want to edit) and click the &#8220;CSS&#8221; tab. To add a new style click the &#8220;+ Style&#8221; button on the bottom. Easy. All your styles and classes are listed down the left hand side, to edit it&#8217;s properties just enter the values in the visual editor.</p>
<p><a href="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-10.02.04-PM.png"><img class="alignnone size-medium wp-image-372" title="Visual CSS Editor" src="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-10.02.04-PM-300x193.png" alt="Visual CSS Editor" width="300" height="193" /></a></p>
<h2>4. Line Numbering</h2>
<p>Error on line 3078..? Where on earth is that? Turn line numbers on in your preferences (Coda -&gt; Preferences) under the Editor tab. Line numbers will show up on the left hand side of your files, you can also use the line numbers to select a whole line or multiple lines among other things.</p>
<p><a href="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-11.25.43-PM.png"><img class="alignnone size-medium wp-image-366" title="Line Numbering" src="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-11.25.43-PM-300x190.png" alt="Line Numbering" width="300" height="190" /></a></p>
<h2>5. Clips</h2>
<p>You know how annoying it is to write the same script over and over? Of course you do, this is where clips comes in. Clips allows you to save a script in an easy to access window where you can double click to quickly insert the script. Brilliant! To show the clips window just click the &#8220;Clips&#8221; button at the bottom. To add a clip simply click the &#8220;+&#8221; symbol in the bottom left (not the far left, the one more to the center). Name the script, add the script and you can also add a selection placeholder (the selection cursor will automatically go to this point when the clip is added) when you&#8217;re done, click &#8220;Save&#8221;.</p>
<p><a href="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-11.26.41-PM.png"><img class="alignnone size-medium wp-image-367" title="Clips" src="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-11.26.41-PM-300x229.png" alt="Clips" width="300" height="229" /></a></p>
<h2>6. Tab triggering (shortcuts)</h2>
<p>What if you could just type &#8220;html&#8221; then hit the tab key and it automatically puts in basic HTML for you?  It&#8217;s there, try it. But more than that, you can add tab triggering to any clip you&#8217;ve added! This is one of the most time saving tools in Coda. You can assign a tab trigger to a clip by click the &#8220;i&#8221; next to a clip in the clip window. Down the bottom you will see &#8220;click to add tab trigger&#8221;, click it, then type your trigger text and hit tab. Once you&#8217;re done hit &#8220;Save&#8221;.</p>
<p><a href="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-11.27.28-PM.png"><img class="alignnone size-medium wp-image-368" title="Tab Triggering" src="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-11.27.28-PM-300x228.png" alt="Tab Triggering" width="300" height="228" /></a></p>
<h2>7. Smart Find/Replace</h2>
<p>Say you need to find all the pages that contain &#8220;&lt;htmll&gt;&#8221; because for some reason you mis-typed it then can&#8217;t remember which pages you put it in&#8230; Firstly, how silly of you. Second, don&#8217;t panic, hit Command + F. In the search field type &#8220;&lt;htmll&gt;&#8221;, in the replace field type &#8220;&lt;html&gt;&#8221;, then on the left it will have a checkbox &#8220;Find in &#8220;<em>directoryname</em>&#8220;&#8221;, tick the checkbox then click &#8220;Replace All&#8221;. It&#8217;ll then find any files with &#8220;&lt;htmll&gt;&#8221; and replace it with the correct &#8220;&lt;html&gt;&#8221;. Problem solved!</p>
<p><a href="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-11.28.06-PM.png"><img class="alignnone size-medium wp-image-369" title="Find &amp; Replace" src="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-11.28.06-PM-300x13.png" alt="Find &amp; Replace" width="300" height="13" /></a></p>
<h2>8. Dragging Images to create the img tag</h2>
<p>This is one of those handy little tips that will make life a little easier for you. In the file viewer browse to an image file, click and drag it into a HTML or PHP document and it&#8217;ll automatically create the XHTML tag for you!</p>
<p><a href="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-11.30.24-PM.png"><img class="alignnone size-medium wp-image-374" title="Images" src="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-11.30.24-PM-300x181.png" alt="Images" width="300" height="181" /></a></p>
<h2>9. Easy Indenting</h2>
<p>If you&#8217;re like me, you&#8217;re anal about making sure everything is indented perfectly. And for good reason, it makes reading the code easier and helps with fixing mis-closed tags. Coda makes indenting large blocks easy. Select the block of code you wish to indent (or un-indent) and hit &#8220;Command&#8221; + &#8220;]&#8221;  (or &#8220;Command&#8221; + &#8220;[&#8220;). This will shift the block forward or backward. Truly handy.</p>
<p><a href="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-11.29.10-PM.png"><img class="alignnone size-medium wp-image-370" title="Easy Indenting" src="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-11.29.10-PM-300x280.png" alt="Easy Indenting" width="300" height="280" /></a></p>
<h2>10. Plug-ins</h2>
<p>The possibilities are endless. Plug-ins allow you to extend Coda&#8217;s native power. <a href="http://www.panic.com/coda/developer/community/plugins.php" target="_blank">Visit here</a> and see what useful plug-ins you can find. I&#8217;m always using the compression plugins to strip whitespace and comments from my Javascript and PHP.</p>
<p><a href="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-11.30.53-PM.png"><img class="alignnone size-medium wp-image-371" title="Plug-ins" src="http://thewebdevelopmentblog.com/wp-content/uploads/2009/09/Screen-shot-2009-09-16-at-11.30.53-PM-300x119.png" alt="Plug-ins" width="300" height="119" /></a></p>
<p>There is more power under that hood, and this is just a small selection of the power within Coda, <a href="http://www.panic.com/coda/developer/" target="_blank">visit their developer site</a> to see more tips and tricks along with video tutorials and much more!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thewebdevelopmentblog.com/2009/09/10-handy-tips-for-getting-the-most-out-of-coda/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.htaccess: redirecting no www. to www.</title>
		<link>http://www.thewebdevelopmentblog.com/2009/02/htaccess-tip-1-redirecting-no-www-to-www/</link>
		<comments>http://www.thewebdevelopmentblog.com/2009/02/htaccess-tip-1-redirecting-no-www-to-www/#comments</comments>
		<pubDate>Thu, 05 Feb 2009 13:09:37 +0000</pubDate>
		<dc:creator>Jason Stockton</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Tips]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[coda]]></category>
		<category><![CDATA[redirection]]></category>

		<guid isPermaLink="false">http://thewebdevelopmentblog.com/?p=165</guid>
		<description><![CDATA[The .htaccess is a powerful tool when it comes to managing server-side actions. It is a common comment that sites that have both www.domain.com and domain.com can get penalised from search engines because they are seen as 2 different websites. Personally I think this theory is a bit silly and you&#8217;d think search engines such [...]]]></description>
			<content:encoded><![CDATA[<p>The .htaccess is a powerful tool when it comes to managing server-side actions. It is a common comment that sites that have both www.domain.com and domain.com can get penalised from search engines because they are seen as 2 different websites. Personally I think this theory is a bit silly and you&#8217;d think search engines such as google would be smarter than that. Never the less, site addresses should probably be consistent anyway. Using .htaccess you can redirect traffic that goes to domain.com to www.domain.com &#8211; thus fixing the search engine problem and making your domain consistant to all visitors.</p>
<p><span id="more-165"></span></p>
<p><strong>Add the code to the .htaccess file</strong></p>
<p>To redirect visitors from the www.-less domain we add the following code to our .htaccess file:</p>
<p><code>Options +FollowSymlinks<br />
</code><code>RewriteEngine on<br />
</code><code>RewriteCond %{http_host} ^<em>yourdomain</em>.com [nc]<br />
</code><code>RewriteRule ^(.*)$ http://www.<em>yourdomain</em>.com/$1 [r=301,nc]</code></p>
<p>Make sure you replace yourdomain.com with your domain. This is all you need to do! Easy!</p>
<p><strong>About .htaccess files</strong></p>
<p>.htaccess files have a number of uses, from changing apache set-ups to editing php settings. It&#8217;s quite useful however it can be a fiddly process. The reason the files start with a &#8220;.&#8221; instead of having the normal format is because they typically are hidden files. Linux and Mac OS X typically treat these files as hidden. If you edit locally this can cause problems if you haven&#8217;t set your computer to show hidden files. Programs such as <a title="Coda for Mac OS X from Panic" href="http://www.panic.com/coda/" target="_blank">Coda</a> allow you to show/edit these hidden files inside it&#8217;s file browser.</p>
<p>I recently had a series of my sites hacked with .htaccess files that added a series of porn links to my site in the source code (the sites remained as were). It&#8217;s a really tricky thing to discover as they were old sites that I don&#8217;t commonly edit so it wasn&#8217;t until it was pointed out to me that I found it out. So if you have a similar hack done to one of your sites delete the .htaccess file!</p>
<p><strong>Setting up a .htaccess file</strong></p>
<p>Easy, just create a file called .htaccess in your favourite text editor. Save it to the root directory of your domain (or the directory you wish the actions to occur). If it doesn&#8217;t work, make sure your server has .htaccess scripting allowed.</p>
<p>I&#8217;ve got a lot more .htaccess tips to share so keep a look out.</p>
<p><strong> </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.thewebdevelopmentblog.com/2009/02/htaccess-tip-1-redirecting-no-www-to-www/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

