<?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>TwentyEleven Web Design</title>
	<atom:link href="http://twentyeleven.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://twentyeleven.co.uk</link>
	<description>Web Design &#38; Web Optimisation Services</description>
	<lastBuildDate>Fri, 17 Feb 2012 23:37:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Sublime Text 2 Tips &amp; Tricks (updated)</title>
		<link>http://twentyeleven.co.uk/development-news/sublime-text-2-tips-tricks/</link>
		<comments>http://twentyeleven.co.uk/development-news/sublime-text-2-tips-tricks/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 14:16:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://twentyeleven.co.uk/?p=1242</guid>
		<description><![CDATA[<p>After moving over to sublime 2 to this week. I found that it was very different to what notepad++ which I had been using for the past few years , ...</p><p>This post was written by Nigel at <a href="http://twentyeleven.co.uk">TwentyEleven Web Design - Web Design &amp; Web Optimisation Services</a></p>]]></description>
			<content:encoded><![CDATA[<p>After moving over to sublime 2 to this week. I found that it was very different to what notepad++ which I had been using for the past few years , after looking for a good tutorial on how to use it I came across this from <a href="http://net.tutsplus.com/tutorials/tools-and-tips/sublime-text-2-tips-and-tricks/">NETTUTS</a></p>
<p><a href="http://www.sublimetext.com/dev">Sublime Text 2</a> is one of the fastest and most incredible code editors to be released in a long time! With a community and plugin ecosystem as passionate as this one, it just might be impossible for any other editor to catch up. I’ll show you my favorite tips and tricks today.</p>
<p>&nbsp;</p>
<blockquote><p><a href="http://www.sublimetext.com/">Sublime Text 2</a> is currently available for all major platforms: OS X, Linux and Windows.</p></blockquote>
<p><span id="more-1242"></span></p>
<hr />
<h2>1 – Bleeding Edge Versions</h2>
<p>Sublime is in active development. If, like me, you want to use the latest possible version of the app, you can <a href="http://www.sublimetext.com/dev">download the dev build</a>. You’ll find that new (auto) updates are available every other day or so.</p>
<blockquote><p>Download a dev build of Sublime 2 <a href="http://www.sublimetext.com/dev">here.</a></p></blockquote>
<hr />
<h2>2 – Get a Better Icon</h2>
<blockquote><p>Update: <a href="https://github.com/dmatarazzo/Sublime-Text-2-Icon">here is a better icon.</a></p></blockquote>
<p>In its defense, Sublime Text 2 is still in a beta state. The official icon will likely/hopefully change with the official release. Until then, <a href="http://natebeaty.com/">Nate Beaty</a> created an alternative <a href="http://www.sublimetext.com/forum/download/file.php?id=200">icon</a>, if you prefer it.</p>
<div>
<div><img src="http://d2o0t5hpnwv4c1.cloudfront.net/1038_sublime/sublime.png" alt="Sublime Icon" /></div>
<p>&nbsp;</p>
</div>
<p>To integrate it, you need to replace the existing “Sublime Text 2.icns” file with <a href="http://www.sublimetext.com/forum/download/file.php?id=200">this new one</a>. On a Mac, browse to Sublime 2 in your <code>Applications/</code> folder, then right-click and “View Package Contents.” Lastly, browse to <code>Contents/Resources/</code>, and drag the new icon in, overwriting the existing one.</p>
<blockquote><p>Please take note of the fact that, if you’re using the frequently updated <a href="http://net.tutsplus.com/tutorials/tools-and-tips/sublime-text-2-tips-and-tricks/sublimetext.com/dev">development version</a> of Sublime Text, with each update, the icon will be removed. With that in mind, don’t worry about the icon for the time being.</p></blockquote>
<hr />
<h2>3 – Access the Command Palette</h2>
<p>Similar to TextMate, we can use Sublime’s command palette by accessing the <em>Tools</em> menu, or by pressing <code>Shift + Command + P</code>, on the Mac. Whether you need to visit a Preferences page, or paste in a snippet, all of that can be accomplished here.</p>
<div><img src="http://d2o0t5hpnwv4c1.cloudfront.net/1038_sublime/command-palette.png" alt="Access the command palette" /></div>
<hr />
<h2>4 – Lightning-Fast File Switching</h2>
<div><img src="http://d2o0t5hpnwv4c1.cloudfront.net/1038_sublime/activate.slim.jpg" alt="File Switching" /></div>
<p>Press <code>Control</code> or <code>Command</code> + <code>P</code>, type in the name of the file you wish to access (<em>fuzzy finder</em>), and, without even pressing <em>Enter</em>, you’ll instantly be transported to that file. While Vim and apps like PeepOpen offer a similar functionality, they’re not nearly as fast as Sublime’s implementation.</p>
<hr />
<h2>5 – How Did We Survive Before Multi-Selection?</h2>
<p>Editors like TextMate have long offered vertical selection, which is quite neat. But, with multi-selection, you can have multiple cursors on the page. This can drastically reduce the need for using regular expressions, and advanced search and replace queries. Perhaps a quick visual demonstration is in order…</p>
<div><iframe src="http://www.screencast-o-matic.com/embed?sc=cXj0Fr3TV&amp;w=320&amp;v=3" frameborder="0" scrolling="no" width="322" height="391"></iframe></div>
<p>To enable multi-selection, you have several options:</p>
<ul>
<li>Press <code>Alt</code> or <code>Command</code> and then click in each region where you require a cursor.</li>
<li>Select a block of lines, and then press <code>Shift + Command + L</code>.</li>
<li>Place the cursor over a particular word, and press <code>Control/Command + D</code> repeatedly to select additional occurrences of that word.</li>
<li>Alternatively, add an additional cursor at <strong>all</strong> occurrences of a word by typing <code>Alt+F3</code> on Windows, or <code>Ctrl+Command+G</code> on the Mac. Amazing!!</li>
</ul>
<hr />
<h2>6 – Indent Guides</h2>
<p><strong>Update: this feature now comes preinstalled with Sublime Text 2. </strong></p>
<p>It’s such a small feature, but I’ve always loved how Notepad++ on Windows displays indent guides; it makes the page much easier to navigate and format. Sublime Text 2 offers this ability, via a plugin created by <a href="https://github.com/SublimeText/IndentGuides">Nikolaus Wittenstein</a>.</p>
<div><img src="http://d2o0t5hpnwv4c1.cloudfront.net/1038_sublime/indent-guides.jpg" alt="Indent Guides" /></div>
<p>To integrate this plugin:</p>
<ul>
<li><a href="https://github.com/SublimeText/IndentGuides">Download it </a></li>
<li>Rename the folder to “Indent Guides” and drag it into the <code>Packages</code> folder. On a Mac, this path would be <code>Application Support/Sublime Text 2/Packages</code></li>
</ul>
<hr />
<h2>7 – Package Control</h2>
<p>The steps outlined in the previous tip (#6) are a bit tedious, aren’t they? Instead, we can install the excellent <a href="http://wbond.net/sublime_packages/package_control">Sublime Package Control</a>, which streamlines the entire process.</p>
<p>To install “Package Control,” open Sublime and press <code>Control + `</code>. Next, paste the following snippet into the console.</p>
<div>
<div id="highlighter_753363">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
</td>
<td>
<div>
<div><code>import</code> <code>urllib2,os;pf=</code><code>'Package Control.sublime-package'</code><code>;ipp=sublime.installed_packages_path();os.makedirs(ipp) </code><code>if</code> <code>not os.path.exists(ipp) </code><code>else</code> <code>None;</code><code>open</code><code>(os.path.</code><code>join</code><code>(ipp,pf),</code><code>'wb'</code><code>).write(urllib2.urlopen(</code><code>'<a href="http://sublime.wbond.net/">http://sublime.wbond.net/</a>'</code><code>+pf.replace(</code><code>' '</code><code>,</code><code>'%20'</code><code>)).</code><code>read</code><code>())</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p>Don’t worry if you don’t understand the code above; just copy and paste!</p>
<div><img src="http://d2o0t5hpnwv4c1.cloudfront.net/1038_sublime/console.jpg" alt="Console" /></div>
<p>Lastly, restart Sublime Text, and browse to <code>Preferences -&gt; Package Settings</code>. If the installation was successful, you’ll now see a <code>Package Control</code> item in that list.</p>
<blockquote><p>With Package Control installed, the process of adding new plugins and functionality becomes incredibly simple!</p></blockquote>
<p>For a usage example, refer to the next item in this list.</p>
<hr />
<h2>8 – Alignment</h2>
<p>If you’re the type who prefers to line up your equal signs – for example, in your JavaScript…</p>
<div>
<div id="highlighter_623003">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
</td>
<td>
<div>
<div><code>// Before</code></div>
<div><code>var</code> <code>joe = </code><code>'joe'</code><code>;</code></div>
<div><code>var</code> <code>johnny = </code><code>'johnny'</code><code>;</code></div>
<div><code>var</code> <code>quaid = </code><code>'quaid'</code><code>;</code></div>
<div><code>// After</code></div>
<div><code>var</code> <code>joe    = </code><code>'joe'</code><code>;</code></div>
<div><code>var</code> <code>johnny = </code><code>'johnny'</code><code>;</code></div>
<div><code>var</code> <code>quaid  = </code><code>'quaid'</code><code>;</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p>…this process can be automated, via the <a href="http://wbond.net/sublime_packages/alignment">Sublime Alignment</a> plugin. Rather than downloading and installing it manually, let’s instead use Package Control (outlined in #7).</p>
<ul>
<li>Press <code>Shift + Command + P</code></li>
<li>Type “install,” to bring up the “Package Control: Install Package” option, and press Enter</li>
<li>Look for “Alignment,” and press Enter to install it.</li>
<li>You’re done; so easy! Type <code>Shift + Command + A</code> to auto-align.</li>
</ul>
<div><img src="http://d2o0t5hpnwv4c1.cloudfront.net/1038_sublime/autoalign.jpg" alt="Auto-align" /></div>
<p>This process can be repeated for all of the typical plugins we install, such as Zen Coding.</p>
<hr />
<h2>9 – Vim Fanatic</h2>
<p>I’m a huge <a href="http://net.tutsplus.com/sessions/vim-essential-plugins/">fan of Vim</a>. The amount of power it provides is insane. The fact that I’ve switched over to Sublime Text 2 should speak volumes then!</p>
<p>If you’re using a dev build of Sublime Text (see #2 in this list), you can enable Vintage mode, which provides support for the Vi commands that we know and love — okay…<strong>some of us</strong> love. The rest of you hate it! <img src='http://twentyeleven.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>To enable Vintage mode, browse to <code>Preferences/Global Settings - Default</code>. Once this file opens, browse to the very bottom, and change <code>"ignored_packages": ["Vintage"]</code> to <code>"ignored_packages": []</code>. Next, restart Sublime, press the <code>Escape</code> key, and, tada: command mode!</p>
<h3>Block Cursor</h3>
<p>One thing you may notice is that, in command mode, it can be difficult to find the cursor (especially when taking advantage of things like bookmarks). On more than one occasion, I’ve found myself trying to hunt down its location.</p>
<p>While it’s not a perfect solution, a plugin, called “<a href="https://github.com/netpro2k/SublimeBlockCursor">SublimeBlockCursor</a>,” attempts to remedy this issue.</p>
<div><img src="http://d2o0t5hpnwv4c1.cloudfront.net/1038_sublime/blockCursor.jpg" alt="" /></div>
<blockquote><p><strong>Note: </strong>While the readme states that SublimeBlockCursor can be installed, via Package Control, I wasn’t able to find it. Instead, I had to clone the project manually into the <code>Packages</code> folder.</p></blockquote>
<hr />
<h2>10 – Distraction Free Editing</h2>
<p>Sometimes, we need to filter out all of the additional fluff that gets in the way of our coding. Use “Distraction Free Mode” to take this idea as far as possible. This option is available, via the <em>View</em> menu. Select “Enter Distraction Free Mode,” or use the Mac keyboard shortcut, <code>Control + Shift + Command + F</code>.</p>
<div><img src="http://d2o0t5hpnwv4c1.cloudfront.net/1038_sublime/distractionFree.jpg" alt="Distraction Free Mode" /></div>
<hr />
<h2>11 – You Can Still Use TextMate Bundles</h2>
<p><img src="http://d2o0t5hpnwv4c1.cloudfront.net/1038_sublime/slim.jpg" alt="Slim" /></p>
<p>TextMate snippets and themes port over nicely to Sublime Text. You only need to drop them in the Packages folder — <code>.tmbundle</code> extension intact, and Sublime will recognize the files. This means that the <a href="http://textmatetheme.com/">entire catalog of TextMate themes</a> will work in Sublime!</p>
<div><ins><ins id="aswift_0_anchor"><iframe id="aswift_0" name="aswift_0" frameborder="0" marginwidth="0" marginheight="0" scrolling="no" width="300" height="250"></iframe></ins></ins></div>
<p>For example, I’ve been working with the (fantastic) <a href="http://slim-lang.com/">Slim</a> templating engine a good bit lately, and needed better syntax highlighting. <a href="http://fredwu.me/">Fred Wu</a> created a bundle for TextMate, but, tada, it works perfectly in Sublime Text as well! If you’re interested, you can <a href="https://github.com/fredwu/ruby-slim-tmbundle">download the Slim bundle here;</a> it includes both snippets and syntax highlighting.</p>
<hr />
<h2>12 – Custom Themes</h2>
<p>The default theme for Sublime Text is excellent, but I much prefer a custom light and dark theme, <a href="https://github.com/buymeasoda/soda-theme">Soda</a>, created by Ian Hill.</p>
<div><img src="http://d2o0t5hpnwv4c1.cloudfront.net/1038_sublime/theme.png" alt="Soda Theme" /></div>
<h3>Installation</h3>
<p><em>As taken from the Github page…</em></p>
<p>“If you are a git user, the best way to install the theme and keep up to date is to clone the repo directly into your Packages directory in the Sublime Text 2 application settings area.”</p>
<h3>Using Git</h3>
<p>Go to your Sublime Text 2 Packages directory and clone the theme repository using the command below:</p>
<div>
<div id="highlighter_764585">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
</td>
<td>
<div>
<div><code>git clone https:</code><code>//github</code><code>.com</code><code>/buymeasoda/soda-theme/</code> <code>"Theme - Soda"</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<h3>Download Manually</h3>
<ul>
<li>Download the files using the GitHub .zip download option.</li>
<li>Unzip the files and rename the folder to Theme – Soda</li>
<li>Copy the folder to your Sublime Text 2 Packages directory</li>
</ul>
<h3>Activating the Theme</h3>
<p>To configure Sublime Text 2 to use the theme:</p>
<ul>
<li>Open your Sublime Text 2 User Global Preferences file: <code>Sublime Text 2 -&gt; Preferences -&gt; User Global Settings</code></li>
<li>Add (or update) your theme entry to be “theme”: “Soda Light.sublime-theme” or “theme”: “Soda Dark.sublime-theme”</li>
</ul>
<h3>Example User Global Settings</h3>
<div>
<div id="highlighter_11745">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
<div>2</div>
<div>3</div>
</td>
<td>
<div>
<div><code>{</code></div>
<div><code>    </code><code>"theme"</code><code>: </code><code>"Soda Light.sublime-theme"</code></div>
<div><code>}</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<hr />
<h2>13 – Page Crawling</h2>
<p>Sublime Text provides us with a few different ways to query a page (outside of the standard search functions).</p>
<h3>Functions</h3>
<p>Need a quick way to browse to a specific function or method?</p>
<div><img src="http://d2o0t5hpnwv4c1.cloudfront.net/1038_sublime/function_crawling.jpg" alt="Function Crawling" /></div>
<p>Type <code>Control/Command + r</code> to reveal a popup that allows for this very thing (<em>notice the <code>@</code> symbol</em>)! Even better, the search is fuzzy as well, which is particularly helpful for huge classes.</p>
<h3>HTML</h3>
<p>What if you want to immediately transition to a specific part of an HTML page – say, to the <code>div</code> with a class of <code>container</code>. Type <code>Control/Command + p</code>, then <code>#</code>, and you’ll instantly see a tree of your document.</p>
<div><img src="http://d2o0t5hpnwv4c1.cloudfront.net/1038_sublime/pound.jpg" alt="" /></div>
<h3>Go To Line Number</h3>
<p>To quickly move to a specific line number on the page, you can press <code>Control + g</code>. However, you’ll notice that, once again, it’s pulling up that palette (<code>Control/Command + p</code>), and appending the <code>:</code> symbol. This is adopted from Vim.</p>
<p>This means, in addition to <code>Control + g</code>, you can also type, <code>Control/Command + p</code>, and then <code>:LINE_NUMBER</code>.</p>
<hr />
<h2>14 – Fetch Remote Files with Ease</h2>
<p><img src="http://d2o0t5hpnwv4c1.cloudfront.net/1117_fetch/NettutsFetch-1.jpg" alt="Nettuts+ Fetch" /></p>
<p>Let’s say that you’re a fan of Normalize.css. Perhaps, you download it and save it to a snippet, or store the stylesheet, itself, in an assets folder. That way, for future projects, you only need to copy and paste.</p>
<p>The only problem with this method – as we’ve all discovered – is that, if a few months have passed, it’s more than possible that the asset (in this case, Normalize.css) will have been updated by the creator. So your options are to either use the, now, out-dated version of Normalize, or, once again, return to the GitHub page and pull in a fresh copy. This all seems tedious.</p>
<blockquote><p>Created by <a href="https://github.com/weslly">Weslly Honorato</a>, Nettuts+ Fetch is the solution to our dilemma. It can be installed, <a href="http://wbond.net/sublime_packages/package_control">via Package Control</a>.</p></blockquote>
<h3>Usage</h3>
<p>You’ll only use two commands, when working with Fetch. First, we need to save some file references. Again, bring up the command palette, and search for “Fetch.” For now, choose “Manage Remote Files.”</p>
<div><img src="http://d2o0t5hpnwv4c1.cloudfront.net/1117_fetch/manage.jpg" alt="Manage Remote Files" /></div>
<p>What’s great about Sublime Text 2 is that configuration is incredibly simple. To assign references to online asset files, we only need to create an object, like so (don’t worry; one will be pre-populated for you, after installation):</p>
<div><img src="http://d2o0t5hpnwv4c1.cloudfront.net/1117_fetch/remote.jpg" alt="" /></div>
<p>So, to pull in the latest copy of jQuery (if you don’t want to use a CDN):</p>
<div>
<div id="highlighter_751880">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
</td>
<td>
<div>
<div><code>{</code></div>
<div><code>   </code><code>"files"</code><code>:</code></div>
<div><code>   </code><code>{</code></div>
<div><code>      </code><code>"jquery"</code><code>: </code><code>"<a href="http://code.jquery.com/jquery.min.js">http://code.jquery.com/jquery.min.js</a>"</code></div>
<div><code>   </code><code>}</code></div>
<div><code>}</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<blockquote><p>Learn more about using <a href="http://net.tutsplus.com/articles/news/introducing-nettuts-fetch/">Nettuts+ Fetch.</a></p></blockquote>
<hr />
<h2>15 – Prefixr Plugin</h2>
<p>Built by by <a href="http://wbond.net/">Will Bond</a> (creator of Package Control), the<a href="http://wbond.net/sublime_packages/prefixr"> Nettuts+ Prefixr plugin</a> allows you to automatically update your entire stylesheet to include support for all of the various required CSS3 vendor prefixes. This way, you never have to visit the <a href="http://prefixr.com/">website</a> itself; you merely type a keyboard command, and:</p>
<div>
<div id="highlighter_41218">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
</td>
<td>
<div>
<div><code>.box {</code></div>
<div><code>   </code><code>border-radius: </code><code>10px</code><code>;</code></div>
<div><code>   </code><code>box-shadow: </code><code>0</code> <code>0</code> <code>5px</code> <code>rgba(</code><code>0</code><code>,</code><code>0</code><code>,</code><code>0</code><code>,.</code><code>4</code><code>);</code></div>
<div><code>}</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p>…will be converted to:</p>
<div>
<div id="highlighter_741966">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
</td>
<td>
<div>
<div><code>.box {</code></div>
<div><code>   </code><code>-webkit-border-radius: </code><code>10px</code><code>;</code></div>
<div><code>   </code><code>-moz-border-radius: </code><code>10px</code><code>;</code></div>
<div><code>   </code><code>border-radius: </code><code>10px</code><code>;</code></div>
<div><code>   </code><code>-webkit-box-shadow: </code><code>0</code> <code>0</code> <code>5px</code> <code>rgba(</code><code>0</code><code>,</code><code>0</code><code>,</code><code>0</code><code>,.</code><code>4</code><code>);</code></div>
<div><code>   </code><code>-moz-box-shadow: </code><code>0</code> <code>0</code> <code>5px</code> <code>rgba(</code><code>0</code><code>,</code><code>0</code><code>,</code><code>0</code><code>,.</code><code>4</code><code>);</code></div>
<div><code>   </code><code>box-shadow: </code><code>0</code> <code>0</code> <code>5px</code> <code>rgba(</code><code>0</code><code>,</code><code>0</code><code>,</code><code>0</code><code>,.</code><code>4</code><code>);</code></div>
<div><code>}</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<h3>Usage</h3>
<p>Once installed (via Package Control), select your stylesheet (or a single block), press <code>ctrl+alt+x</code> on Windows and Linux, or <code>cmd+ctrl+x</code> on OS X, and the code will instantly be run through the Prefixr web service.</p>
<hr />
<h2>16 – Launch Sublime From the Terminal</h2>
<blockquote><p>Sublime Text 2 includes a <a href="http://www.sublimetext.com/docs/2/osx_command_line.html">command line tool</a>, subl, to work with files on the command line.”</p></blockquote>
<p>To use it, create a symlink to the tool.</p>
<div>
<div id="highlighter_524948">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
</td>
<td>
<div>
<div><code>ln</code> <code>-s </code><code>"/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl"</code> <code>~</code><code>/bin/subl</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p>As long as <code>~/bin</code> is in your path, that should do the trick!</p>
<div>
<div id="highlighter_113402">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
<div>2</div>
</td>
<td>
<div>
<div><code>cd</code> <code>myProject</code></div>
<div><code>subl .</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p><a href="http://www.sublimetext.com/docs/2/osx_command_line.html">Refer here</a> for additional instructions.</p>
<hr />
<h2>17 – Autoformat HTML</h2>
<p>A bit oddly, the ability to auto-format HTML is not included as part of the default build of Sublime Text. The <a href="https://github.com/SublimeText/Tag">Tag</a> plugin, among other things, <em>hopes</em> to provide a solution, however, due to a few shortcomings – namely when dealing with HTML comments – it falls short.</p>
<blockquote><p>The <a href="https://github.com/SublimeText/Tag">Tag plugin</a> can be installed via Package Control.</p></blockquote>
<p>To test its auto-formatting skills, the following HTML:</p>
<div>
<div id="highlighter_997949">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
<div>10</div>
<div>11</div>
<div>12</div>
<div>13</div>
<div>14</div>
<div>15</div>
</td>
<td>
<div>
<div><code>&lt;</code><code>html</code><code>&gt;</code></div>
<div><code>&lt;</code><code>head</code><code>&gt;</code></div>
<div><code>   </code><code>&lt;</code><code>meta</code> <code>charset</code><code>=</code><code>utf8</code><code>&gt;</code></div>
<div><code>   </code><code>&lt;</code><code>title</code><code>&gt;&lt;/</code><code>title</code><code>&gt;</code></div>
<div><code>   </code><code>&lt;!-- begin--&gt;</code></div>
<div><code>   </code><code>&lt;!-- end comment --&gt;</code></div>
<div><code>&lt;/</code><code>head</code><code>&gt;</code></div>
<div><code>&lt;</code><code>body</code><code>&gt;</code></div>
<div><code>&lt;</code><code>h1</code><code>&gt;Hi there&lt;/</code><code>h1</code><code>&gt;</code></div>
<div><code>&lt;</code><code>h2</code><code>&gt;Bye&lt;/</code><code>h2</code><code>&gt;</code></div>
<div><code>&lt;/</code><code>body</code><code>&gt;</code></div>
<div><code>&lt;/</code><code>html</code><code>&gt;</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p>…will be changed to:</p>
<div>
<div id="highlighter_757750">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>
<div>1</div>
<div>2</div>
<div>3</div>
<div>4</div>
<div>5</div>
<div>6</div>
<div>7</div>
<div>8</div>
<div>9</div>
<div>10</div>
<div>11</div>
</td>
<td>
<div>
<div><code>&lt;</code><code>html</code><code>&gt;</code></div>
<div><code>   </code><code>&lt;</code><code>head</code><code>&gt;</code></div>
<div><code>      </code><code>&lt;</code><code>meta</code> <code>charset</code><code>=</code><code>utf8</code><code>&gt;</code></div>
<div><code>      </code><code>&lt;</code><code>title</code><code>&gt;&lt;/</code><code>title</code><code>&gt;</code><code>&lt;!-- begin--&gt;</code></div>
<div><code>&lt;!-- end comment --&gt;</code></div>
<div><code>   </code><code>&lt;/</code><code>head</code><code>&gt;</code></div>
<div><code>   </code><code>&lt;</code><code>body</code><code>&gt;&lt;</code><code>h1</code><code>&gt;Hi there&lt;/</code><code>h1</code><code>&gt;</code></div>
<div><code>      </code><code>&lt;</code><code>h2</code><code>&gt;Bye&lt;/</code><code>h2</code><code>&gt;</code></div>
<div><code>   </code><code>&lt;/</code><code>body</code><code>&gt;</code></div>
<div><code>&lt;/</code><code>html</code><code>&gt;</code></div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p>Yikes; it looks worse than it is. From my tests, it incorrectly does not place the <code>body</code> tag on its own line, and gets pissy when dealing with HTML comments. Until these issues are fixed (or a native solution is provided), it’s best to manually select a block of HTML to reformat, rather than the entire page.</p>
<blockquote><p>A $200 bonus will be paid to the first Sublime Text plugin developer who creates and submits the definitive “Nettuts+ HTML Formatter” plugin.</p></blockquote>
<hr />
<h2>18 – Create a Plugin</h2>
<p>If you’re feeling adventurous, dig into Sublime Text’s huge plugin development community, and start contributing. We have an excellent tutorial on the process of building a ST plugin here on Nettuts+. Be sure to <a href="http://net.tutsplus.com/tutorials/python-tutorials/how-to-create-a-sublime-text-2-plugin/">check it out if that interests you!</a></p>
<hr />
<h2>Conclusion</h2>
<p>The more I work with <a href="http://www.sublimetext.com/">Sublime Text 2</a>, the more I realize how incredible it is. But all of this would mean nothing if not for the fact that it’s an insanely fast editor, and, even better, it’s not finished!</p>
<p>This post was written by Nigel at <a href="http://twentyeleven.co.uk">TwentyEleven Web Design - Web Design &amp; Web Optimisation Services</a></p>]]></content:encoded>
			<wfw:commentRss>http://twentyeleven.co.uk/development-news/sublime-text-2-tips-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Design in Warwickshire</title>
		<link>http://twentyeleven.co.uk/news/web-design-in-warwickshire/</link>
		<comments>http://twentyeleven.co.uk/news/web-design-in-warwickshire/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 13:59:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://twentyeleven.co.uk/?p=1234</guid>
		<description><![CDATA[<p>If you are look at launching a new small business web design in warwickshire, TwentyEleven web design can help you get more business online.</p><p>This post was written by Nigel at <a href="http://twentyeleven.co.uk">TwentyEleven Web Design - Web Design &amp; Web Optimisation Services</a></p>]]></description>
			<content:encoded><![CDATA[<p>If you are look at launching a new small business web design in warwickshire, TwentyEleven web design can help you get more business online.</p>
<p>Based in Stratford upon Avon, TwentyEleven are a professional <strong>web design </strong>company that specialises in creating effective websites and web solutions for a wide range of online businesses and organisations. We design and develop bespoke web design for everyone from business start-ups to SME&#8217;s. Our main focus is you and your target customers.</p>
<p>As a full service Warwickshire web design agency, TwentyEleven Web Design not only has the expertise to design and develop web sites. But also specialise and focus much of our attention on the online exposure of your website through search engine optimisation. Developing your website is the foundation but achieving high search engine rankings is an ongoing process to ensure maximum return on investment. Our prices are highly competitive when compared with other Warwickshire web design and SEO agencies so view our <a title="Search Engine Optimisation - SEO" href="http://twentyeleven.co.uk/services/website-optimisation/">SEO page</a> for more info.</p>
<p>With every business competing for exposure on the internet, it can be challenging to know where to start.  This is where TwentyEleven web design can help:</p>
<p>Whatever your business requires, we can provide specific strategies tailored to your organisational needs to effectively respond to your target market, generate targeted online traffic, position your content, and create overall brand awareness to enhance your company&#8217;s online presence and influence your sales.</p>
<p>For all you web design in Warwickshire, search engine optimisation and Internet marketing activities please call us on 01789 204772</p>
<p>This post was written by Nigel at <a href="http://twentyeleven.co.uk">TwentyEleven Web Design - Web Design &amp; Web Optimisation Services</a></p>]]></content:encoded>
			<wfw:commentRss>http://twentyeleven.co.uk/news/web-design-in-warwickshire/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>YouTube &#8211; Fastest Growing Social Media Site In UK</title>
		<link>http://twentyeleven.co.uk/media-sharing-networks/youtube-fastest-growing-social-media-site-in-uk/</link>
		<comments>http://twentyeleven.co.uk/media-sharing-networks/youtube-fastest-growing-social-media-site-in-uk/#comments</comments>
		<pubDate>Mon, 16 May 2011 20:10:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Multi Media Sharing Networks]]></category>
		<category><![CDATA[Trends]]></category>
		<category><![CDATA[Video Sharing Sites]]></category>
		<category><![CDATA[social media marketing]]></category>
		<category><![CDATA[social networking sites]]></category>
		<category><![CDATA[Video Marketing]]></category>

		<guid isPermaLink="false">http://www.thesocialmediamarketing.co.uk/?p=551</guid>
		<description><![CDATA[<p>YouTube has become the fastest growing Social Media Site in UK for the month of April 2011. According to the latest research data published by Experian Hitwise, YouTube now accounts ...</p><p>This post was written by Nigel at <a href="http://twentyeleven.co.uk">TwentyEleven Web Design - Web Design &amp; Web Optimisation Services</a></p>]]></description>
			<content:encoded><![CDATA[<p><strong>YouTube</strong> has become the fastest growing <strong>Social Media</strong> Site in UK for the month of April 2011. According to the latest research data published by Experian Hitwise, <strong>YouTube</strong> now accounts for 1 in every 5 UK Internet users on a <strong>Social Networking Site</strong>.</p>
<p><strong>YouTube</strong> now accounts for 20% of the market share of the UK <strong>Social Media</strong> sites. Facebook still retained the number 1 spot accounting for 54.*% of the share.</p>
<p><strong>YouTube</strong> also became the 3rd biggest website in UK overtaking Hotmail in Dec 2010.</p>
<p>What does it mean for YOU as a business owner? If you are not already using <strong>Video Marketing</strong> then there is not better time to start using it now and what better place to start than YouTube and it is completely FREE!.</p>
<p>Create your profile account by visiting http://www.youtube.com and start broadcasting yourself.</p>
<p>Below chart gives you a brief synopsis of the UK <strong>Social Networking</strong> sites traffic share:</p>
<p>&nbsp;</p>
<p><a href="http://www.thesocialmediamarketing.co.uk/wp-content/uploads/2011/05/Social-Networks-top-10-April-2011.png"><img class="alignnone size-medium wp-image-552" title="Top UK Social Media Marketing Sites April 2011" src="http://www.thesocialmediamarketing.co.uk/wp-content/uploads/2011/05/Social-Networks-top-10-April-2011-300x110.png" alt="Top UK Social Media Marketing Sites April 2011" width="245" height="89" /></a></p>
<p>&nbsp;</p>
<p><strong>YouTube </strong>should be an integral part of your <strong>Social Media Marketing</strong> plan no matter what products or services you sell.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>This post was written by Nigel at <a href="http://twentyeleven.co.uk">TwentyEleven Web Design - Web Design &amp; Web Optimisation Services</a></p>]]></content:encoded>
			<wfw:commentRss>http://twentyeleven.co.uk/media-sharing-networks/youtube-fastest-growing-social-media-site-in-uk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Releases The &#8216;Send&#8217; Button</title>
		<link>http://twentyeleven.co.uk/news/facebook-releases-the-send-button/</link>
		<comments>http://twentyeleven.co.uk/news/facebook-releases-the-send-button/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 14:19:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.thesocialmediamarketing.co.uk/?p=547</guid>
		<description><![CDATA[<p>Facebook introduced the Like button just over one year ago that enabled people to share an interesting story or an articles with all of their friends and people in the ...</p><p>This post was written by Nigel at <a href="http://twentyeleven.co.uk">TwentyEleven Web Design - Web Design &amp; Web Optimisation Services</a></p>]]></description>
			<content:encoded><![CDATA[<p>Facebook introduced the Like button just over one year ago that enabled people to share an interesting story or an articles with all of their friends and people in the network. Facebook has now taken it a step further and released the Send button which Facebook claims is the easiest way to privately share things with groups and individuals.</p>
<p><strong>How Does The Send Button Works?</strong></p>
<p>According to Facebook, the Send button is a social plugin that websites can use to let people send a link to a friend through Facebook Messages, post it to a Group, or email it to an individual.</p>
<p>The Send button drives traffic by letting users send a link and a short message to the people that would be most interested. They don&#8217;t need to leave the web page they’re on or fill out a long, annoying form. Compared to the alternatives, the Send button has fewer required steps, and it removes the need to look up email addresses by auto-suggesting friends and Groups. (Source: Facebook.com blog)</p>
<p><strong>What Does this Mean for You?</strong></p>
<p>The Send button can be used alongside the Like button. By including both on your website, people will have ability to broadcast the things they like and also send it to specific people. This will enable your content or offer to be shared virally but only to a select user group.</p>
<p>Facebook will also be releasing an update to integrate the Insights Dashboard with real time metrics for the Send button.</p>
<p>This post was written by Nigel at <a href="http://twentyeleven.co.uk">TwentyEleven Web Design - Web Design &amp; Web Optimisation Services</a></p>]]></content:encoded>
			<wfw:commentRss>http://twentyeleven.co.uk/news/facebook-releases-the-send-button/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Comments &#8211; Good or Bad for Business</title>
		<link>http://twentyeleven.co.uk/news/facebook-comments-good-or-bad-for-business/</link>
		<comments>http://twentyeleven.co.uk/news/facebook-comments-good-or-bad-for-business/#comments</comments>
		<pubDate>Fri, 11 Mar 2011 21:38:58 +0000</pubDate>
		<dc:creator>nigel</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.thesocialmediamarketing.co.uk/?p=31</guid>
		<description><![CDATA[<p>Facebook is in the news yet again. The world’s leading social network last week updated its comment widget to allow personalized chats on third-party websites. Facebook says the free plugin ...</p><p>This post was written by Nigel at <a href="http://twentyeleven.co.uk">TwentyEleven Web Design - Web Design &amp; Web Optimisation Services</a></p>]]></description>
			<content:encoded><![CDATA[<p>Facebook is in the news yet again. The world’s leading social network  last week updated its comment widget to allow personalized chats on  third-party websites. Facebook says the free plugin will make life easy  for publishers to add Facebook-themed commenting functionality to their  websites.</p>
<p>As with any Facebook feature, there are mixed reactions on whether  the new comment widget is – good, bad or neutral, especially for  business users. Here’s my take on it.</p>
<h2>How does Facebook Comment Plugin work?</h2>
<p>Anonymous comments can often be rude, abusive and unpleasant.  Facebook says it updated the Comments Box Plug-in, which links comments  made on third party websites to a member’s Facebook account, to  encourage personal and relevant conversations. The move is expected to  minimize spam comments as it signals the end of anonymity.</p>
<p><strong><em>Implications</em></strong></p>
<p>Anonymity isn’t bad, but it’s heavily overused and abused in the  social media world. Of course, the most obvious implication of this  change is that users will be forced to think twice before they comment  on any site. Therefore, a huge drop in number of comments can’t be ruled  out.</p>
<p>TechCrunch adopted the Facebook comment plugin and observed the  overall number of comments have fallen dramatically. While TechCrunch  says it’s expected and “not a bad thing”, it may have serious  implications for a business which thrives on traffic redirection and  comments with inbound links.</p>
<p>The obvious benefit is that you get quality comments. There would be a decline in the number of useless comments.</p>
<p><strong><em>Pros &amp; Cons</em></strong></p>
<p>TechCrunch team has done a wonderful job of highlighting the pros and  cons of the new Facebook comments plugin. As expected, the benefits  include a reduction in number of trolls, tighter integration with  Facebook and the ability to socialize comments through Facebook “likes”  feature.</p>
<p>The biggest disadvantage being the comments plugin does not work with  Google and Twitter credentials. There are other issues as well – it  compromises privacy as people may find their replies in your Facebook  News stream reproduced on another site’s comments – not exactly a  pleasant surprise. Further, if Facebook is blocked due to access  restrictions, your site’s comments system falls flat.</p>
<p>It’s understandable that Facebook left out Twitter and Google on  purpose. While the former is its closest competitor in social media, the  latter is not in friends list. However, that accounts for a massive  proportion of the daily web traffic and there’s no doubt that it will  hurt the wide scale adoption of this plugin.</p>
<p><strong><em>Good, bad or neutral?</em></strong></p>
<p>Coming back to the original question – is the new Facebook comment  plugin good, bad or neutral for your business? Do the pros outweigh the  cons or vice-versa? IMO, there’s no one size fits all solution here. If  your website gets quality anonymous comments, I see no reason to block  them with this plugin. On the other hand, if your site is plagued with  spam due to anonymous comments, the Facebook comments plugin is a  blessing in disguise for your business.</p>
<p>Do you plan to use the Facebook comments plugin for moderating your  website users? Please share your opinion by leaving a comment below this  post.</p>
<p>This post was written by Nigel at <a href="http://twentyeleven.co.uk">TwentyEleven Web Design - Web Design &amp; Web Optimisation Services</a></p>]]></content:encoded>
			<wfw:commentRss>http://twentyeleven.co.uk/news/facebook-comments-good-or-bad-for-business/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

