# Emmet for Sublime Text
[![Get Support](http://codersclan.net/graphics/getSupport_github4.png)](http://codersclan.net/support/step1.php?repo_id=4)
Official [Emmet](http://emmet.io) plugin (previously called _Zen Coding_) for Sublime Text.
* [How to install](#how-to-install)
* [Available actions](#available-actions)
* [Extensions support](#extensions-support)
* [Overriding keyboard shortcuts](#overriding-keyboard-shortcuts)
* [Tab key handler](#tab-key-handler)
## How to install
*Warning:* this plugin may not work at all in some OSes since it written in JavaScript and uses [PyV8](http://code.google.com/p/pyv8/) and [Google V8](https://developers.google.com/v8/) binaries to run. If you experience problems or editor crashes please [fill an issue](https://github.com/sergeche/emmet-sublime/issues).
With [Package Control](http://wbond.net/sublime_packages/package_control):
1. Run “Package Control: Install Package” command, find and install `Emmet` plugin.
2. Restart ST editor (if required)
Manually:
1. Clone or [download](https://github.com/sergeche/emmet-sublime/archive/master.zip) git repo into your packages folder (in ST, find Browse Packages... menu item to open this folder)
2. Restart ST editor (if required)
--------------
**WARNING**: When plugin is installed, it will automatically download required PyV8 binary so you have to wait a bit (see _Loading PyV8 binary_ message on status bar). If you experience issues with automatic PyV8 loader, try to [install it manually](https://github.com/emmetio/pyv8-binaries).
## New features of Emmet (compared with old Zen Coding)
* [Dynamic CSS abbreviations](http://docs.emmet.io/css-abbreviations/), automatic [vendor prefixes](http://docs.emmet.io/css-abbreviations/vendor-prefixes/) and [gradient generator](http://docs.emmet.io/css-abbreviations/gradients/).
* [“Lorem Ipsum” generator](http://docs.emmet.io/abbreviations/lorem-ipsum/)
* [Implicit tag names](http://docs.emmet.io/abbreviations/implicit-names/)
* New [Yandex’s BEM filter](http://docs.emmet.io/filters/bem/)
* [Extensions support](http://docs.emmet.io/customization/)
* New [^ operator](http://docs.emmet.io/abbreviations/syntax/)
* Various fixes and improvements
## Available actions ##
* [Expand Abbreviation](http://docs.emmet.io/actions/expand-abbreviation/) – <kbd>Tab</kbd> or <kbd>Ctrl+E</kbd>
* Interactive “Expand Abbreviation” — <kbd>Ctrl+Alt+Enter</kbd>
* [Match Tag Pair Outward](http://docs.emmet.io/actions/match-pair/) – <kbd>⌃D</kbd> (Mac) / <kbd>Ctrl+,</kbd> (PC)
* [Match Tag Pair Inward](http://docs.emmet.io/actions/match-pair/) – <kbd>⌃J</kbd> / <kbd>Shift+Ctrl+0</kbd>
* [Go to Matching Pair](http://docs.emmet.io/actions/go-to-pair/) – <kbd>⇧⌃T</kbd> / <kbd>Ctrl+Alt+J</kbd>
* [Wrap With Abbreviation](http://docs.emmet.io/actions/wrap-with-abbreviation/) — <kbd>⌃W</kbd> / <kbd>Shift+Ctrl+G</kbd>
* [Go to Edit Point](http://docs.emmet.io/actions/go-to-edit-point/) — <kbd>Ctrl+Alt+→</kbd> or <kbd>Ctrl+Alt+←</kbd>
* [Select Item](http://docs.emmet.io/actions/select-item/) – <kbd>⇧⌘.</kbd> or <kbd>⇧⌘,</kbd> / <kbd>Shift+Ctrl+.</kbd> or <kbd>Shift+Ctrl+,</kbd>
* [Toggle Comment](http://docs.emmet.io/actions/toggle-comment/) — <kbd>⇧⌥/</kbd> / <kbd>Shift+Ctrl+/</kbd>
* [Split/Join Tag](http://docs.emmet.io/actions/split-join-tag/) — <kbd>⇧⌘'</kbd> / <kbd>Shift+Ctrl+`</kbd>
* [Remove Tag](http://docs.emmet.io/actions/remove-tag/) – <kbd>⌘'</kbd> / <kbd>Shift+Ctrl+;</kbd>
* [Update Image Size](http://docs.emmet.io/actions/update-image-size/) — <kbd>⇧⌃I</kbd> / <kbd>Ctrl+U</kbd>
* [Evaluate Math Expression](http://docs.emmet.io/actions/evaluate-math/) — <kbd>⇧⌘Y</kbd> / <kbd>Shift+Ctrl+Y</kbd>
* [Reflect CSS Value](http://docs.emmet.io/actions/reflect-css-value/) – <kbd>⇧⌘R</kbd> / <kbd>Shift+Ctrl+R</kbd>
* [Encode/Decode Image to data:URL](http://docs.emmet.io/actions/base64/) – <kbd>⇧⌃D</kbd> / <kbd>Ctrl+'</kbd>
* Rename Tag – <kbd>⇧⌘K</kbd> / <kbd>Shift+Ctrl+'</kbd>
[Increment/Decrement Number](http://docs.emmet.io/actions/inc-dec-number/) actions:
* Increment by 1: <kbd>Ctrl+↑</kbd>
* Decrement by 1: <kbd>Ctrl+↓</kbd>
* Increment by 0.1: <kbd>Alt+↑</kbd>
* Decrement by 0.1: <kbd>Alt+↓</kbd>
* Increment by 10: <kbd>⌥⌘↑</kbd> / <kbd>Shift+Alt+↑</kbd>
* Decrement by 10: <kbd>⌥⌘↓</kbd> / <kbd>Shift+Alt+↓</kbd>
## Extensions support ##
You can easily [extend](http://docs.emmet.io/customization/) Emmet with new actions and filters or customize existing ones. In `Emmet.sublime-settings`, define `extensions_path` setting and Emmet will load all `.js` and `.json` files in specified folder at startup.
The default value of `extensions_path` is `~/emmet`, which points to _emmet_ folder inside your OS user’s home folder.
Also, you can create sections named as extension files (e.g. `snippets`, `preferences` and `syntaxProfiles`) inside user’s `Emmet.sublime-settings` file and write your customizations there. See [original settings file](https://github.com/sergeche/emmet-sublime/blob/master/Emmet.sublime-settings#L61) for examples.
## Overriding keyboard shortcuts ##
Sublime Text is a great text editor with lots of features and actions. Most of these actions are bound to keyboard shortcuts so it’s nearly impossible to provide convenient plugin shortcuts for third-party plugins.
If you’re unhappy with default keymap, you can disable individual keyboard shortcuts with `disabled_keymap_actions` preference of `Emmet.sublime-settings` file.
Use a comma-separated list of action names which default keyboard shortcuts should be disabled. For example, if you want to release <kbd>Ctrl+E</kbd> (“Expand Abbreviation”) and <kbd>Ctrl+U</kbd> (“Update Image Size”) shortcuts, your must set the following value:
"disabled_keymap_actions": "expand_abbreviation, update_image_size"
You should refer `Default (Your-OS-Name).sublime-keymap` file to get action ids (look for `args/action` key).
To disable all default shortcuts, set value to `all`:
"disabled_keymap_actions": "all"
Not that if you disabled any action like so and you’re create your own keyboard shortcut, you **should not** use `emmet_action_enabled.ACTION_NAME` context since this is the key that disables action.
### Tab key handler ###
Emmet plugin allows you to expand abbreviations with <kbd>Tab</kbd> key, just like regular snippets. On the other hand, due to dynamic nature and extensive syntax, sometimes you may get unexpected results. This section describes how Tab handler works and how you can fine-tune it.
By default, Tab handler works in a limited _syntax scopes_: HTML, XML, HAML, CSS, SASS/SCSS, LESS and _strings in programming languages_ (like JavaScript, Python, Ruby etc.). It means:
* You have to switch your document to one of the syntaxes listed above to expand abbreviations by Tab key.
* With <kbd>Ctrl-E</kbd> shortcut, you can expand abbreviations everywhere, its scope is not limited.
* When you expand abbreviation inside strings of programming languages, the output is generated with special [output profile](http://docs.emmet.io/customization/syntax-profiles/) named `line` that generates output as a single line.
To fine-tune Tab key handler, you can use the following settings in user’s `Emmet.sublime-settings` file:
* `disable_tab_abbreviations_for_scopes` — a comma-separated list of syntax scopes where Tab key handler should be disabled. For example, if you want disable handler inside strings of programming languages and HAML syntax, your setting will look like this:
```json
"disable_tab_abbreviations_for_scopes": "text.haml, string"
```
* `disabled_single_snippet_for_scopes` — a comma-separated list of syntax scopes where Tab handler should be disabled when expanding a single abbreviation. Currently, ST doesn’t provide API for getting list of native snippets. So, for example, if you try to expand a `php` abbreviat
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
Sublime Text 是一个文本编辑器,同时也是一个先进的代码编辑器。Sublime Text是由程序员Jon Skinner于2008年1月份所开发出来,它最初被设计为一个具有丰富扩展功能的Vim。 Sublime Text具有漂亮的用户界面和强大的功能,例如代码缩略图,Python的插件,代码段等。还可自定义键绑定,菜单和工具栏。Sublime Text 的主要功能包括:拼写检查,书签,完整的 Python API , Goto 功能,即时项目切换,多选择,多窗口等等。Sublime Text 是一个跨平台的编辑器,同时支持Window
资源推荐
资源详情
资源评论
收起资源包目录
sublime-text (2000个子文件)
01524fae79697630d0454ba3fabd9414 3.15MB
36156f0ea6c6f00d199a0d476cf61c0a 7KB
6c6409a3db9e2581b46839908c55ea83 3KB
!添加∕删除右键菜单.bat 851B
imesupport_hook.c 4KB
Startup.cache 869KB
PHP Source.sublime-syntax.cache 31KB
Matlab.sublime-syntax.cache 26KB
Objective-C.sublime-syntax.cache 25KB
CSS.sublime-syntax.cache 17KB
C#.sublime-syntax.cache 16KB
Objective-C++.sublime-syntax.cache 15KB
Python.sublime-syntax.cache 15KB
JavaScript.sublime-syntax.cache 14KB
R.sublime-syntax.cache 14KB
C++.sublime-syntax.cache 14KB
Meta Info Summary.cache 13KB
C.sublime-syntax.cache 11KB
Scala.sublime-syntax.cache 11KB
Markdown.sublime-syntax.cache 11KB
Clojure.sublime-syntax.cache 11KB
LaTeX.sublime-syntax.cache 10KB
Bash.sublime-syntax.cache 10KB
Ruby.sublime-syntax.cache 10KB
D.sublime-syntax.cache 9KB
Java.sublime-syntax.cache 9KB
AppleScript.sublime-syntax.cache 9KB
Rust.sublime-syntax.cache 8KB
commands-builtin-shell-bash.sublime-syntax.cache 7KB
Perl.sublime-syntax.cache 7KB
ASP.sublime-syntax.cache 7KB
ActionScript.sublime-syntax.cache 7KB
Syntax Summary.cache 7KB
OCaml.sublime-syntax.cache 6KB
Erlang.sublime-syntax.cache 6KB
Groovy.sublime-syntax.cache 5KB
HTML.sublime-syntax.cache 5KB
Lisp.sublime-syntax.cache 5KB
Go.sublime-syntax.cache 5KB
Batch File.sublime-syntax.cache 5KB
Makefile.sublime-syntax.cache 5KB
Boxy Yesterday.tmTheme.cache 4KB
Boxy Monokai.tmTheme.cache 4KB
Boxy Nova.tmTheme.cache 4KB
Boxy Ocean.tmTheme.cache 4KB
Tcl.sublime-syntax.cache 4KB
YAML.sublime-syntax.cache 4KB
Git Commit.sublime-syntax.cache 3KB
RegExp.sublime-syntax.cache 3KB
Emmet.tmLanguage.cache 3KB
Haskell.sublime-syntax.cache 3KB
SQL.sublime-syntax.cache 3KB
XML.sublime-syntax.cache 2KB
Git Config.sublime-syntax.cache 2KB
TeX.sublime-syntax.cache 2KB
Textile.sublime-syntax.cache 2KB
OCamllex.sublime-syntax.cache 2KB
JavaDoc.sublime-syntax.cache 2KB
OCamlyacc.sublime-syntax.cache 2KB
reStructuredText.sublime-syntax.cache 2KB
Git Attributes.sublime-syntax.cache 2KB
Lua.sublime-syntax.cache 2KB
DOT.sublime-syntax.cache 1KB
Amy.tmTheme.cache 1KB
JSON.sublime-syntax.cache 1KB
Big Duo.tmTheme.cache 1KB
Ruby on Rails.sublime-syntax.cache 1KB
Git Rebase.sublime-syntax.cache 1KB
Git Common.sublime-syntax.cache 1KB
Mac Classic.tmTheme.cache 1KB
Regular Expressions (JavaScript).sublime-syntax.cache 1KB
Regular Expressions (PHP).sublime-syntax.cache 1KB
Rd (R Documentation).sublime-syntax.cache 1KB
Pascal.sublime-syntax.cache 1KB
Regular Expressions (Python).sublime-syntax.cache 1KB
Bibtex.sublime-syntax.cache 1KB
HTML (Tcl).sublime-syntax.cache 1010B
Ruby Haml.sublime-syntax.cache 985B
Java Server Pages (JSP).sublime-syntax.cache 909B
All Hallow's Eve.tmTheme.cache 848B
Diff.sublime-syntax.cache 788B
Git Link.sublime-syntax.cache 742B
LaTeX Log.sublime-syntax.cache 668B
HTML-ASP.sublime-syntax.cache 640B
Build.sublime-syntax.cache 604B
Literate Haskell.sublime-syntax.cache 588B
JavaProperties.sublime-syntax.cache 575B
Git Log.sublime-syntax.cache 473B
Widget - Boxy Nova.stTheme.cache 455B
Widget - Boxy Monokai.stTheme.cache 452B
Widget - Boxy Ocean.stTheme.cache 452B
PHP.sublime-syntax.cache 435B
camlp4.sublime-syntax.cache 430B
HTML (Rails).sublime-syntax.cache 427B
Widget - Soda Dark.stTheme.cache 417B
MultiMarkdown.sublime-syntax.cache 393B
JavaScript (Rails).sublime-syntax.cache 388B
Git Graph.tmLanguage.cache 386B
Git Ignore.sublime-syntax.cache 328B
SQL (Rails).sublime-syntax.cache 304B
共 2000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 20
资源评论
流徙Pron
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- LabVIEW实现LoRa通信【LabVIEW物联网实战】
- CS-TY4-4WCN-转-公版-XP1-8B4WF-wifi8188
- 计算机网络期末复习资料(课后题答案+往年考试题+复习提纲+知识点总结)
- 从零学习自动驾驶Lattice规划算法(下) 轨迹采样 轨迹评估 碰撞检测 包含matlab代码实现和cpp代码实现,方便对照学习 cpp代码用vs2019编译 依赖qt5.15做可视化 更新:
- 风光储、风光储并网直流微电网simulink仿真模型 系统由光伏发电系统、风力发电系统、混合储能系统(可单独储能系统)、逆变器VSR+大电网构成 光伏系统采用扰动观察法实现mppt控
- (180014016)pycairo-1.18.2-cp35-cp35m-win32.whl.rar
- (180014046)pycairo-1.21.0-cp311-cp311-win32.whl.rar
- DS-7808-HS-HF / DS-7808-HW-E1
- (180014004)pycairo-1.20.0-cp36-cp36m-win32.whl.rar
- (178330212)基于Springboot+VUE的校园图书管理系统
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功