I’m late to the party, but I’m trying out a new editor: GitHub’s Atom. My mission when I try out a new editor is to see if I can get the following 3 items set up properly (because if I can’t the editor is unfortunately not going to work for me).
- Language Support for ColdFusion
- An Emmet package
- Support for Emmet functionality within a .cfm, .cfc file
Setting up Language support for ColdFusion is easy. Simply install the language-cfml package. To install a package in Atom:
- From the Atom editor menu, navigate to
Atom -> Preferences - Click the
Installbutton - Type
language-cfmlin theSearch Packagesfield and click thePackagesbutton - Click the
Installbutton for thelanguage-cfmlpackage
Setting up Emmet is easy. Simply install the emmet package (see package install instructions above).
Setting up Emmet support for ColdFusion .cfm and .cfc files requires editing your Keymap. This step was derived from the emmet-atom Tab key documentation
- Open the Keymap file (keymap.cson):
Atom > Keymap... - Add the following to the keymap.cson file (proper indention counts):
'atom-text-editor[data-grammar="text html cfml"]:not([mini])':
'tab': 'emmet:expand-abbreviation-with-tab'