Open packages /ZenCoding/sublimezenplugin.py Immediately after the `########## CONSTANTS #########, should be:
HTML = 'text.html - source' XML = 'text.xml'
Add the following:
JS = 'source.js'
Then scroll down to the place where it says:
ZEN_SCOPE = ', '.join([HTML, XML, CSS])
And change this to:
ZEN_SCOPE = ', '.join([HTML, XML, CSS, JS])
This activates zencoding in JS files; however, be careful that Zencoding will ALWAYS be active in js files. If you want to limit the scope to, say, strings in JS, you can change the scope. JS string string.quoted.double.js for double quotes and string.quoted.single.js . You can add both of them to the string JS = ... Feel free to experiment with features that suit your taste. For more information on areas, see the documentation here: http://readthedocs.org/docs/sublime-text-unofficial-documentation/en/latest/extensibility/syntaxdefs.html
In addition, to see the current area immediately below the cursor, the key binding for Windows / Linux is ctrl+alt+shift+p , and for OSX - alt+command+p .
source share