Features/Designer

Emmet syntax

Type Emmet abbreviations like section>div.card*3>h3+p in the Explorer to create nested elements in one go.

The Explorer recognizes Emmet style abbreviations. Type an abbreviation, see a preview of the structure, and Divhunt creates the elements with classes, ids and text inside the selected element. It is the fastest way to scaffold repeated structures like card grids or lists.

How it works

  • Open the Explorer with CMD/CTRL + E (or K) and type the abbreviation.
  • Detected when input contains >, +, *, tag.class, tag#id, .class or #id.
  • .class or #id without a tag creates a div.
  • A preview of the tree is shown before creating.
  • Elements are added at the end of the selected element's children; labels come from the tag registry.

When to use it

  • Create a list with ul>li*5{Item}
  • Scaffold a three card row with div.row>div.card*3>h3{Title}+p

Limitations

  • Attributes in brackets ([attr=value]) and numbering ($) are not listed as supported
  • Needs a selected element as the parent

Availability

  • Works in Designer.
  • Included in every plan.

How to use it.

  1. Select the parent element
  2. Press CMD/CTRL + E
  3. Type an abbreviation and check the preview
  4. Press Enter

Questions.

Where do I type Emmet?

Does it create classes?

Related features.

No card needed

Build it today.Pay when it goes live.

Every feature is unmetered while you build. Checkout opens the first time you publish.