Sublime Text 2

I’ve been a long term user of Coda 2 from Panic for a few years now. Along the way I have strayed a few times to other editors mainly using TextMate if I am working on anything other than WordPress (which just seems to be awesome inside Coda 2 for me), but I always find myself back with Coda 2. I recently watch a great video series from Jeffrey Way over at tuts+ premium on Sublime Text 2 and found myself falling in love!

Sublime Text is a strange mix of terminal style editor and GUI. Most of the commands you run you tend to do via keyboard shortcuts or using what Sublime Text 2 calls the Command Palette. It allows you to install additional package (using Package Control, a brilliant package manager for Sublime Text 2), change the syntax and perform all kinds of awesome stuff. It’s fast as well. Really fast to open files and no lag when typing. Syntax highlighting is great and Package Control helps take Sublime Text 2 to a whole new level.

There are plenty of reviews of Sublime Text 2 out there so I don’t want to go over the same things I though I would just share the packages I have installed.

  • Package Control – I have already mentioned it, but you need to have this installed! It really does make Sublime Text 2 so much easier to use. It is a easy to use package manager that allows you to easily install additional packages, syntaxes and snippets.
  • DetectSyntax - DetectSyntax is a plugin for Sublime Text 2 that allows you to detect the syntax of files that might not otherwise be detected properly.
  • DocBlockr - DocBlockr is a Sublime Text 2 package which makes writing documentation a breeze. DocBlockr supports Javascript, PHP,ActionScript, CoffeeScript, Java, Objective C, C and C++.
  • Emmet for Sublime Text 2 plugin – (This has rocked my world) Emmet (previously known as Zen Coding) is a web-developer’s toolkit that can greatly improve your HTML & CSS workflow. Emmet takes the snippets idea to a whole new level: you can type CSS-like expressions that can be dynamically parsed, and produce output depending on what you type in the abbreviation.
  • jQuery Package – A Sublime Text bundle to help with jQuery Functions.
  • LESS for Sublime – Provides syntax highlighting for .less files.
  • TidyPHP - This is a Sublime Text 2 plugin allowing you to format your PHP code. It uses wp-phptidy, which is a little tool for formatting PHP code to conform the WordPress Coding Standards.
  • Placeholders - This package contains basic HTML placeholder content for Sublime Text 2 e.g. lorem ipsum text, forms, images etc.
  • Search WordPress Codex – Allows you to easily select any function and right click to search for it in the WordPress Codex Function Reference.
  • Sublime Code Intel -Code intelligence plugin ported from Open Komodo Editor to Sublime Text 2. Supports all the languages Komodo Editor supports for Code Intelligence (CIX, CodeIntel2):
    PHP, Python, RHTML, JavaScript, Smarty, Mason, Node.js, XBL, Tcl, HTML, HTML5, TemplateToolkit, XUL, Django, Perl, Ruby, Python3.
  • Sublime Lint - A framework for inline lint highlighting in the Sublime Text 2 editor.
  • Soda Theme – This provides a UI theme for Sublime Text 2 in either dark or light variants.
  • Sublime Text 2 WordPress – A collection of WordPress snippets and auto-completions ported from the original TextMate bundle.

I also use a slightly modified theme. I found that the default Monokai Bright Theme didn’t handle syntax highlighting of WordPress functions very well. My slight modification just allows syntax highlighting for WordPress functions. You can grab it from gist here.

Well that’s all from me. If you’re using something I have missed then please do let me know in the comments!

 Tagged with: , , ,

8 thoughts on “Working with Sublime Text 2

  • Hey there, just wanted to drop by and let anyone who may be interested to know; I’ve made a plugin for Sublime Text 2 and 3 that allows you to edit posts, pages, custom post types, settings, and taxonomy terms for a WordPress site from within Sublime. You can also upload a media attachment and assign it as a featured image on a post or page.

    You can find out more here:

    I’m looking for feedback and comments on how it can be improved or how you can see yourself using it. Thanks! :D


  • How can I connect to a mySQL database table? I mean the modules _mysql, mySQLdb or mysql.connector were installed by me but as it seems it needs a special version for Python 2.6.5 which isn’t provided by this module?!? Can anybody please help me?
    Thank you very much.


    • I’m sorry but I’m not sure I can help you on this one. I’ve left the comment in though as maybe someone else will be able to help you.


  • sublime has sftp through package control that basically setups a local copy from the server and on save will upload


    • Yeah I have seen this although find it quite clunky and unintuitive. Would like to see a better implementation.


  • Hey, I appreciate all the recommendations of plugins. Very informative for me. I’ve just started messing around with the coding on my wp theme and feel that i’ve gotten to the point of needing to to start re-writing css code to work around the theme layout restrictions.

    I’m in the beginning stages of learning html & css and will most likely stay within the confines of wordpress and the various coding involved within.

    Since this is only for my own website editing and potentially full website reconstruction, would you recommend i start with Coda 2 or Sublime Text 2?

    I’ve been going back and forth and can’t figure out wich will help me more/ be easier for my specific needs & just getting started. Price not an issue, i might get both.

    Any feedback? It will be much appreciated.


    • Hi Spencer thanks for your comment. I would suggest you start with Coda and here’s why. If you are just getting started you will probably be working a lot with FTP which Coda handles well right inside the app, Sublime Text just doesn’t. Once you’ve got a handle on things and you progress as a developer you can progress onto Sublime Text at the same time hopefully you will have started working with things like Git and deployment methods other than FTP.

      Also Coda is probably a lot easier to get started with if you are new to development. Ultimately I would aim for Sublime Text as your final tool with Coda on the way!


      • Hey, thanks so much.

        I’ll buy Coda 2 and get started immediately!


Leave a Reply

Mojowill Avatar

Who the Hell am I?

I'm Will, a full time web developer, geek and musician. I develop using PHP and MySQL and spend most of my time working with WordPress. When I'm not buried in code I'm gaming, cooking or writing and recording music in my studio. I like sci-fi, pancakes and coffee and am totally prepared for the zombie apocalypse...

Stalk me on these other sites...

Why not be super creepy and check me out on all these other sites, I think they call it social media?