ember-twiddle icon indicating copy to clipboard operation
ember-twiddle copied to clipboard

Emmet support for templates and styles.

Open Sinled opened this issue 10 years ago • 4 comments
trafficstars

Hi, thanks for the great tool.

I would like to suggest feature which i currently really missing - it is Emmet support e.g. when you write

ul>li*3>{$$$} in html or c#000 in styles

in jsbin or codepen

such construction after hitting tab will expand to

<ul>
  <li>001</li>
  <li>002</li>
  <li>003</li>
  <li>004</li>
  <li>005</li>
</ul>

and

color: #000000;

respectively.

Sinled avatar Aug 02 '15 11:08 Sinled

this sounds doable using a code mirror plugin. Not a first-prio thing IMO but nice to have.

joostdevries avatar Aug 02 '15 12:08 joostdevries

This would be extremely nice to have :) (apologies for the +1)

machty avatar Jan 05 '16 03:01 machty

It looks like it would be quite simple actually https://github.com/emmetio/codemirror

alexspeller avatar Jan 05 '16 11:01 alexspeller

In one of my app I added emmet to codemirror with simply overwrite the ivy-codemirror component. I tried to extract this logic in an addon, but unfortunately this trick doesn't work with the addon. Maybe you have some idea. https://github.com/zoltan-nz/ember-emmet-codemirror/commit/168d1e3f26f8498ab489e30d6e3120d748dd191e

zoltan-nz avatar Jun 12 '16 06:06 zoltan-nz