php-twig icon indicating copy to clipboard operation
php-twig copied to clipboard

Emmet doesn't work when using Twig syntax highlighting

Open adiachenko opened this issue 11 years ago • 15 comments

I've tried Atom v0.159.0 today and it seems that Emmet doesn't work as expected when choosing HTML(Twig) syntax. I hit Tab on something like ul>li*5 and nothing happens except of invoking Atom's default expand on Tab functionality. Please note, that I don't use Atom on a regular basis (although some experience with PHP-Twig bundle in Sublime Text 3 is present) and I installed it on 32-bit Ubuntu 14.04.1 using ppa:webupd8team/atom repository so it might be some user specific issue but it'll still be nice if you check things out.

adiachenko avatar Dec 16 '14 22:12 adiachenko

I'm having the same issue as @adiachenko. Emmet doesn't work with the HTML Twig syntax.

markgoodyear avatar Mar 09 '15 19:03 markgoodyear

Same issue here. Having to switch between HTML and HTML(Twig) is an efficiency crusher.

mortscode avatar Mar 11 '15 21:03 mortscode

Same issue here and it's so annoying constantly tabbing to no avail - would be cool if this was fixed.

ConnorVG avatar Mar 12 '15 11:03 ConnorVG

+1

DaanDD avatar Apr 01 '15 12:04 DaanDD

+1

ronildo avatar May 01 '15 14:05 ronildo

I've solve this problem with adding my keybinding for tab key in twig grammar

  • Packages / Settings View / Open
  • click Open Config Folder
  • Click keymap.cson and ad this line to the end of file
'atom-text-editor[data-grammar="text html twig"]:not([mini])':
    'tab': 'emmet:expand-abbreviation-with-tab'

orhanveli avatar Jul 01 '15 09:07 orhanveli

@orhanveli Thanks!

andregoldstein avatar Mar 02 '16 16:03 andregoldstein

@orhanveli thanks! that helped

sstraatemans avatar May 10 '16 06:05 sstraatemans

@orhanveli Thanks a lot! it worked!

francescostella avatar Aug 26 '16 19:08 francescostella

works like a charm... ive been jumping back and forth for months... 👍

paulbwd avatar Jan 11 '17 14:01 paulbwd

Unreal, thanks...

james20381 avatar Jul 26 '17 08:07 james20381

@orhanveli thanksssss!

accezar avatar Aug 31 '17 15:08 accezar

@orhanveli Thanks a bunch!

oscarehrling avatar Sep 10 '17 08:09 oscarehrling

Where is packages???

ChristopherParke avatar Oct 17 '20 22:10 ChristopherParke

with the vs code, this worked for me.

"files.associations": {"*.twig": "html"},

paste above line in settings.js

abhishekdhapare9392 avatar Nov 06 '20 10:11 abhishekdhapare9392