### Install Emmet Plugin Dependencies (Shell) Source: https://github.com/emmetio/sublime-text-plugin/blob/master/README.md This shell command installs the necessary dependencies for developing with the Emmet Sublime Text plugin. It uses pip to install packages listed in `requirements.txt` and places them in the current directory, which is essential for working with the plugin's source code. ```sh pip install -r requirements.txt -t . ``` -------------------------------- ### Emmet CSS Property Shortcut Example Source: https://github.com/emmetio/sublime-text-plugin/blob/master/README.md Shows an example of Emmet's CSS property shortcut syntax. This feature allows for rapid input of CSS properties and values using a condensed format. The example `bd1-s#f.5` expands into a `border` property with specific pixel width, solid style, and a semi-transparent white color. ```css border: 1px solid rgba(255, 255, 255, 0.5); ``` -------------------------------- ### CSS Abbreviation Syntax Examples (CSS) Source: https://context7.com/emmetio/sublime-text-plugin/llms.txt Illustrates Emmet's CSS abbreviation syntax for rapid CSS authoring. Includes shorthand property names, value shortcuts, vendor prefixes, color values, and more. ```css /* Property shortcuts */ m10 → margin: 10px; p20-30 → padding: 20px 30px; w100p → width: 100%; h50vh → height: 50vh; /* Multiple values: m10-20-30-40 */ margin: 10px 20px 30px 40px; /* Vendor prefixes (auto-generated) */ -transform → -webkit-transform: ; -ms-transform: ; transform: ; /* Color values */ c#f → color: #fff; bgc#3 → background-color: #333; c#f.5 → color: rgba(255, 255, 255, 0.5); /* Font shortcuts */ fz16 → font-size: 16px; fw700 → font-weight: 700; ff:a → font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; /* Display/positioning */ d:f → display: flex; d:g → display: grid; pos:a → position: absolute; t0 → top: 0; l50p → left: 50%; /* Flexbox shortcuts */ jc:c → justify-content: center; ai:c → align-items: center; fx1 → flex: 1; /* Border shortcuts */ bd1-s#f → border: 1px solid #fff; bdr5 → border-radius: 5px; /* Box shadow */ bxsh:n → box-shadow: none; bxsh0-0-5-#000 → box-shadow: 0 0 5px #000; /* Transitions and animations */ trs → transition: all 0.3s ease; anim:n → animation: name duration timing-function; ``` -------------------------------- ### HTML Abbreviation Syntax Examples (HTML) Source: https://context7.com/emmetio/sublime-text-plugin/llms.txt Demonstrates Emmet's CSS selector-like syntax for generating HTML structures. Supports nesting, multiplication, grouping, and dynamic content generation. ```html
Description 1
Description 2
Description 3
Content
// After:
// Also works in CSS:
// Before: background: url(image.png);
// After: background: url(image.png); width: 200px; height: 100px;
```
--------------------------------
### Go to Matching Tag Pair Command (JSON Key Binding)
Source: https://context7.com/emmetio/sublime-text-plugin/llms.txt
Provides a key binding for the `emmet_go_to_tag_pair` command in Sublime Text. This command allows users to quickly jump between the opening and closing tags of a matching HTML or XML pair. When the cursor is within a tag, it navigates to its corresponding counterpart.
```json
// Key binding for go to tag pair
{
"keys": ["ctrl+shift+t"],
"command": "emmet_go_to_tag_pair"
}
// Example:
// Content
//Hello
World
// 2. Run command // 3. Type: div.wrapper // 4. Result:Hello
World
He|llo
[Hello]
Hello
]Hello
// After:
```
--------------------------------
### Evaluate Math Expression Command (JSON)
Source: https://context7.com/emmetio/sublime-text-plugin/llms.txt
Evaluates mathematical expressions found on the current line and replaces them with the calculated result. Configured via a JSON key binding.
```json
// Key binding for evaluate math
{
"keys": ["shift+super+y"],
"command": "emmet_evaluate_math"
}
// Examples:
// Before: width: 100/2px;
// After: width: 50px;
// Before: margin: 10+5*2;
// After: margin: 20;
```
--------------------------------
### Rename Tag Command (JSON)
Source: https://context7.com/emmetio/sublime-text-plugin/llms.txt
Enables simultaneous editing of both opening and closing HTML tags by placing multiple cursors on the tag names. Configured via a JSON key binding.
```json
// Key binding for rename tag
{
"keys": ["super+shift+k"],
"command": "emmet_rename_tag"
}
// Example:
// Hello World
Hello World
``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.