emmet-atom icon indicating copy to clipboard operation
emmet-atom copied to clipboard

Does not work with twig synthax

Open LoicGoyet opened this issue 9 years ago • 7 comments

Using This twig synthax highlighter, emmet does not work :(

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/23779508-does-not-work-with-twig-synthax?utm_campaign=plugin&utm_content=tracker%2F535900&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F535900&utm_medium=issues&utm_source=github).

LoicGoyet avatar Jul 06 '15 09:07 LoicGoyet

any updates ?

LoicGoyet avatar Jul 17 '15 07:07 LoicGoyet

Telling “something doesn’t work” isn’t helpful. Plese describe what you are doing and what you expect to see

sergeche avatar Jul 17 '15 08:07 sergeche

Well I do not know how describe with details, while atom use html-twig synthax, any emmet feature works like writing .pod and press tap does not work.

When I change the synthax highlight to html, everything works fine, but I expect that emmet could work with html-twig synthax highlights as it does on sublime text.

Hope it's more clear

LoicGoyet avatar Jul 17 '15 11:07 LoicGoyet

writing .pod and press tap does not work.

https://github.com/emmetio/emmet-atom#tab-key

sergeche avatar Jul 17 '15 11:07 sergeche

@sergeche thanks, it worked well ! (sorry for the miss in the doc)

LoicGoyet avatar Jul 17 '15 12:07 LoicGoyet

If Emmet doesn't work with your twig file, Atom might be parsing it incorrectly. Install the Atom package: 'reesef/php-twig' or similar, and Atom will give you Emmet functionality in e.g. 'randomfilename.html.twig'

ghost avatar Aug 20 '17 13:08 ghost

Hi , i've tried all solutions explained here and emmet don't expand abbreviations in txt.html.twig files, even using 'reesef/php-twig' or overiding key-bidings for twig grammar. If i change grammar for source.nunjuck emmet works ...so i'm not sure if it's really a problem with emmet.

i've tried others twig language packages and it's the same, abbreviation expand is not triggered…

mistergraphx avatar May 17 '19 06:05 mistergraphx