I have written a new guide for Sublime Text 2. Get it here.
Sublime Text is a pretty decent looking text editor. Of course it’s not just a text editor, but a very powerful tool for writing code.
I have recently been using it for html, css and php. One of the many benefits of sublime text is the extensions. Depending on what you are using this diverse tool for, you can customise it to fit your needs. As I said, I’ve been using it for html, css and html, so I’m going to share two plugins I use to make it so much easier to use.
The first plugin I use is WebDevelopment. This is basically auto complete for html. You type ul then press tab and it makes <ul></ul>. You get the idea. Unlike other Sublime Text plugins, where you download a file, run it, and voila, in order to install WebDevelopment you have to subscribe to their version control system. This is a lot easier than it sounds.
First up you need to get TortoiseHg. Download it, install it. Done? Ok, now fire up your command prompt, either by doing start > run > cmd > enter, in XP, or start > cmd > enter in Vista and 7. Now you want to move to the directory where Sublime Text is installed. This is done by typing the following (assuming you installed Sublime into the default directory):
cd %APPDATA%\Sublime Text\Packages
now you want TortoiseHg to copy everything from their host to your computer. This is achieved with:
hg clone http://bitbucket.org/sublimator/webdevelopment/ WebDevelopment
Notice the space between the last slash and WebDevelopment. You should end up with this:
It is now installed. Restart Sublime Text and go have a play around.
The second plugin I’m recommending it Zen Coding. This plugin is available for many, many other editors, from Notepad++ to Dreamweaver. What it allows you to do is use css like prompts to automatically generate code. The best way to demonstrate this is with the gifs they have on their wiki.
Pretty awesome huh?
Installing this plugin is much easier than the last. Go to their downloads page and download the Sublime Zen Coding Package. Inside the zip will be a readme and a Sublime Text Package file. Just double click the package file and it will automatically install. Again, restart Sublime Text and experiment