developer | thinker | tinkerer

Sublime Text 2 and ColdFusion

UpDate: 1/2012 - The ColdFusion package should now be available in the excellent Sublime Text Package Manager and is the easiest way to get started with ColdFusion in Sublime Text 2. It's also available on github:

Someone on Twitter recently mentioned the Sublime Text editor and I've been trying it out for the last week or so. Currently I've been switching between Gedit (Linux) and Notepad++ (Windows). Sublime Text runs on both so that is a huge benefit for me.

Next question - can you write CFML with it... Doing a quick Google search turns up two solutions:


I went with Justin's solution for no other reason than it was the first one I hit. It took me a few minutes to figure out how to 'install' this but it's a few simple steps (there might be an easier way to do this but it worked for me)

  1. Download .zip file from github
  2. Unzip
  3. You'll end up with a ColdFusion.sublime-package file
  4. Rename this to and unzip that
  5. Rename the parent directory to just 'ColdFusion'
  6. Then copy this to where your Sublime editor has it's other language files. On Windows for me this was: C:\Users\jim\AppData\Roaming\Sublime Text 2\Packages\ColdFusion

Crank open a .cfm page and you should see the language switch to ColdFusion and get some basic color coding.

You can explore some of the tags in the unzipped package. I'm still learning my way around Sublime but it appears it supports some 'auto complete' like features...

In a .cfm file type 'cfargument'. Don't include the opening '<'

Immediately after the last letter hit the TAB key. This will add the opening and closing '<>' and fill in the available options.

&lt;cfargument name="" type="" required="" default="" displayname="" hint="" /&gt;

Subsequent TAB presses will cycle through each attribute. You can easily delete them or fill in their values.

It appears you can also write your own snippets - check out Indy's download for examples of user defined snippets for ColdFusion.

If you try Sublime please post your comments below - I would love to learn more tips and tricks about this editor.

Update: I've setup a wiki page to track Sublime resources (esp those related to CFML).

'Mylyn Meets Project Tracker ' AnyEdit Tools - camelCase or under_score

More like this...