Html 在Emmet中使用不同的同级标记包装多行文本

Html 在Emmet中使用不同的同级标记包装多行文本,html,emmet,Html,Emmet,有没有一种方法可以使用Emmet高亮显示和环绕以下行: This is a title This is a subtitle This is the sentence below the subtitle. 以便输出: <h2>This is a title</h2> <h3>This is a subtitle</h3> <p>This is the sentence below the subtitle.</p> 但

有没有一种方法可以使用Emmet高亮显示和环绕以下行:

This is a title
This is a subtitle
This is the sentence below the subtitle.
以便输出:

<h2>This is a title</h2>
<h3>This is a subtitle</h3>
<p>This is the sentence below the subtitle.</p>
但这将产生:

<h2></h2>
<h3></h3>
<p>This is a titleThis is a subtitleThis is the sentence below the subtitle.</p>

这是一个标题这是一个副标题这是副标题下面的句子

试试这个:

h2{This is a title}+h3{This is a subtitle}+p{This is the sentence below the subtitle.}
JS Fiddle:(只需按行末尾的tab键:)


不,这是不可能的。在这种情况下,单独包装每一行要快得多,而不是为单个缩写使用新语法。

我希望能够突出显示文本行并应用样式。这是什么意思?用光标选择多行,并用所需的标记包装它们。这是关于我的意思的Emmet文档:您在哪里使用Emmet?编辑?JSFiddle/JSbin?IDE?其中一些功能可能在一个地方有效,但在另一个地方无效。主要是PHPStorm,但也适用于Sublime Text 2
h2{This is a title}+h3{This is a subtitle}+p{This is the sentence below the subtitle.}