-
Notifications
You must be signed in to change notification settings - Fork 0
Abbreviations
Abbreviations are at the core of the EmmetVS toolkit, providing a powerful way to expand short expressions into structured code blocks, whether it's HTML, XML, or CSS. The syntax of Emmet abbreviations resembles CSS selectors with some extensions specifically designed for code generation. This makes it easy for web developers to get started with EmmetVS.
To illustrate how abbreviations work, consider the following example:
#page>div.logo+ul#navigation>li*5>a{Item $}
With a single keystroke, this abbreviation can be transformed into the following HTML code:
<div id="page">
<div class="logo"></div>
<ul id="navigation">
<li><a href="">Item 1</a></li>
<li><a href="">Item 2</a></li>
<li><a href="">Item 3</a></li>
<li><a href="">Item 4</a></li>
<li><a href="">Item 5</a></li>
</ul>
</div>
Abbreviations are optimized for, but not limited to, HTML and XML generation. They greatly simplify the process of writing tedious markup code, boosting your coding efficiency.
To fully harness the power of Emmet abbreviations, it's recommended to learn the syntax and explore the extensive capabilities they offer.
This documentation is based on the concepts and ideas of Emmet.
For the source code of EmmetVS, please visit the GitHub repository.