Home Download Buy Blog Forum Support

Emmet (ex-Zen Coding) for Sublime Text 2

Re: Emmet (ex-Zen Coding) for Sublime Text 2

Postby iamntz on Mon Sep 17, 2012 5:32 pm

@weslly: i had the same issue. You can either disable completion or add this into emmet.sublime-settings from user directory (if it's not there, copy it from emmet install folder):

Code: Select all
   "snippets": {
      // custom snippets definitions, as per https://github.com/sergeche/zen-coding/blob/v0.7.1/snippets.json
      "html": {
         "abbreviations": {
            "php": "<?php"
         }
      }
   },


This will do.

If still doesn't play nicely, you can try to disable tab abbreviation completely:
Code: Select all
   "disable_tab_abbreviations": true

(in preferences file) Or bind it to a different shortcut.
iamntz
 
Posts: 819
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: Emmet (ex-Zen Coding) for Sublime Text 2

Postby handycam on Mon Sep 17, 2012 7:42 pm

I see now. I was unaware of the command Package Control > Add Repository.
Mac OS 10.8.5
ST 3 (3053)
handycam
 
Posts: 269
Joined: Tue Jan 03, 2012 2:42 pm

Re: Emmet (ex-Zen Coding) for Sublime Text 2

Postby sublimator on Tue Sep 18, 2012 9:28 am

weslly wrote:If I try to expand "php" in a html scope, i'll get <php></php> instead of <?php ?>.


I patched ZenCoding lib for the old plugin to only work with a known set of tags for this reason. I found it too `greedy` otherwise.

Remember to keep serge in the loop:
https://github.com/sergeche/emmet-subli ... state=open

I don't know that he comes here that often.
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 648
Joined: Thu Mar 20, 2008 5:41 am

Re: Emmet (ex-Zen Coding) for Sublime Text 2

Postby Sinled on Fri Oct 26, 2012 8:03 pm

Just in case, site with emmet documentation: http://docs.emmet.io/
Sinled
 
Posts: 30
Joined: Thu Jan 12, 2012 6:14 pm
Location: Ukraine

Re: Emmet (ex-Zen Coding) for Sublime Text 2

Postby Thomas Jensen on Sat Nov 17, 2012 1:25 pm

I've just switched from ZenCoding to Emmet, but now I can't do CTRL + arrow key up/down for moving the viewport up and down. Does anyone know how to regain that functionality, without disabling emmet?
Thomas Jensen
 
Posts: 1
Joined: Wed Oct 17, 2012 4:33 pm

Re: Emmet (ex-Zen Coding) for Sublime Text 2

Postby sublimator on Sun Nov 18, 2012 7:30 am

Increment/Decrement Number actions:

Increment by 1: Ctrl+↑
Decrement by 1: Ctrl+↓
Increment by 0.1: Alt+↑
Decrement by 0.1: Alt+↓
Increment by 10: ⌥⌘↑ / Shift+Alt+↑
Decrement by 10: ⌥⌘↓ / Shift+Alt+↓


Hrmm, yeah, it looks like it binds over it.
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 648
Joined: Thu Mar 20, 2008 5:41 am

Re: Emmet (ex-Zen Coding) for Sublime Text 2

Postby serge.che on Sun Nov 18, 2012 9:29 am

Emmet has lots of actions so it’s nearly impossible to create a keymap which can be convenient and not override any of your keyboard shortcut you’re using every day.
For this case, I’ve added ability to disable default Emmet shortcuts in user preferences: https://github.com/sergeche/emmet-subli ... -shortcuts
serge.che
 
Posts: 6
Joined: Fri Nov 09, 2012 9:57 am

Re: Emmet (ex-Zen Coding) for Sublime Text 2

Postby kiash001 on Mon Feb 18, 2013 2:03 pm

I'm trying and trying but it zen is not working for me.................
:cry:
kiash001
 
Posts: 5
Joined: Mon Feb 18, 2013 1:56 pm
Location: Dhaka, Bangladesh

Re: Emmet (ex-Zen Coding) for Sublime Text 2

Postby kiash001 on Wed Feb 27, 2013 12:55 pm

Yap! Nice plugin for CSS. It is quite similar as chrome's inspect element
kiash001
 
Posts: 5
Joined: Mon Feb 18, 2013 1:56 pm
Location: Dhaka, Bangladesh

Previous

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 4 guests

cron