html自动播放auto,autoclose-html

Auto Close HTML package for Atom Text Editor

Will automatically add closing tags when you complete the opening tag.

Installation

Install using

apm install autoclose-html

Usage

Under normal circumstances ending tags will be inserted on the same line for inline elements and with \n\t\n in between for block elements. This is determined by attaching an element of the given type to the window and checking it's calculated display value.

You can use Force Inline and Force Block preferences to override this.

Bug Reports and Contributing

If you find a bug, please feel free to file an issue. Please understand however that I have very little time to work on this anymore, so most feature requests will not be implemented.

Better than an issue, however, would be to try and fix it yourself and submit a PR.

If you are interested in helping maintain this library, please contact me. As I mentioned, I have very little time to devote to this anymore, so if someone has interest in helping to keep it maintained, I'm open to considering it.

Options

Force Inline

Elements in this comma delimited list will render their closing tags on the same line, even if they are block by default. You can set this to "*" to force all closing tags to render inline.

Force Block

Elements in this comma delimited list will render their closing tags after a tabbed line, even if they are inline by default. A value of "*" for Force Inline overrides all values in Force Block.

Never Close

Elements in this comma delimited list should not render a closing tag

Make Never Close Elements Self Closing

Will convert elements in Never Close list from
to

Legacy/International Mode

Enables the old style of completion detection using buffer events rather than keybindings.

Atom doesn't work well currently with non-US/non-QUERTY keyboards and will not correctly

fire events when '>' is pressed and/or fire events for entirely different keys. Please note that

this mode is buggy (ie can complete after undo) and may not be compatible with new

features and bug fixes in future releases, post-0.22.0 If/when the core issues behind

keybindings not reporting correctly on international keyboards is solved this option will

be removed.

Changelog

0.20.0

HTML (Jinja Templates), Ember HTMLBars, JavaScript with JSX added to default grammars, per user requests

Dispose events on deactivate (should prevent double closing after an upgrade in the future, although I don't think it will help for this release)

Added ability to use "*" for Force Inline Options

Some Readme cleanup

0.21.0

Fixed double closing after changing grammar

0.22.0

Better way of handling events, solves rebinding problems and having to define grammars to apply to

0.23.0

Added legacy mode for users having problems with event handling introduced in 0.22.0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值