How can I have HTML tab expansion in ST2 w/ Emmet inside Handlebars templates(emberjs)?
        Posted  
        
            by 
                Zuko
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Zuko
        
        
        
        Published on 2013-11-08T08:46:13Z
        Indexed on 
            2013/11/08
            9:54 UTC
        
        
        Read the original article
        Hit count: 596
        
Okay, so I'm using Sublime Text 2 with Emmet. But "Tab" expansion of HTML snippets doesn't work inside a script because of the scope.
Example: In HTML, I can type "h1" and then hit tab, and it will generate "
"When using Ember.js, and more specifically Handlebars, it doesn't work.
<script type="text/x-handlebars">
h1
</script>
Pressing tab after that "h1" doesn't expand it because it's inside a script; Emmet turns this off. I can press Ctrl+E, which is the "expand anywhere" hotkey, and that works just fine. However, that is uncomfortable and prone to missing and hitting things like Ctrl+S or Ctrl+D which have undesired effects.
So, how can I change this?
I tweeted at the developer, and got a reply, https://twitter.com/chikuyonok/status/398708331969540096
But couldn't understand what to do.
© Stack Overflow or respective owner