Jump to content

Emmet (software)

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Artdevjs (talk | contribs) at 18:45, 17 November 2016 (Added Atom editor). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Emmet (formerly Zen Coding[1]) is a set of plug-ins for text editors that allow for high-speed coding and editing in HTML, XML, XSL, and other structured code formats via content assist. The project was started by Vadim Makeev in 2008[2] and continues to be actively developed by Sergey Chikuyonok and Emmet users based upon the Zen Coding 2.0 concept.[3] The tools have been incorporated into a number of high-profile text editors, as well as some plug-ins developed by the Emmet team and others implemented independently. However, Emmet is primarily independent from any text editor, as the engine works directly with text rather than with any particular software.[4]

Emmet is open sourced under the MIT License.

Functions

Expand abbreviations

Emmet uses a specific syntax in order to expand small snippets of code, similar to CSS selectors, into full-fledged HTML code.[5] For example, the sequence

div#page>div.logo+ul#navigation>li*5>a

expands into

<div id="page">
	<div class="logo"></div>
	<ul id="navigation">
		<li><a href=""></a></li>
		<li><a href=""></a></li>
		<li><a href=""></a></li>
		<li><a href=""></a></li>
		<li><a href=""></a></li>
	</ul>
</div>

The expand abbreviations function includes several other complex functions, such as wrapping a section of code with expanded code.[6]

Tag balancing

The HTML Pair Matcher allows users to locate the matching open/close tag for the tag at the current cursor position. Unlike other HTML pair matchers, Emmet searches from the cursor's current position rather than scanning the document from the beginning.[7]

Text editors

The plug-ins for following text editors were developed by the Emmet team

The following text-editor plug-ins were developed by third-party groups with the official Emmet engine

The following text editor plug-ins were developed independently and with a different Emmet engine

References

  1. ^ Rocha, Zeno (March 26, 2013). "Goodbye, Zen Coding. Hello, Emmet!". Smashing Magazine. Smashing Magazine GmbH. Retrieved March 15, 2015.
  2. ^ First announcement of Zen HTML and Zen CSS bundles for TextMate
  3. ^ Zen Coding 2.0 concept
  4. ^ Smashing Magazine: Zen Coding: A Speedy Way To Write HTML/CSS Code
  5. ^ Monday By Noon: The Art of zen-coding: Bringing Snippets to a New Level
  6. ^ Download Squad Review
  7. ^ Smashing Magazine: Zen Coding: A Speedy Way to Write HTML/CSS Code