【发布时间】:2014-01-09 17:31:32
【问题描述】:
我经常从客户那里获取文本,并希望使用 html 标记快速格式化文本,并以指定数量的字符换行每个文本行。我刚刚安装了 Sublime Text 2,它非常好,但是我真正想做的事情之一我不太清楚。
我想取长段落,将每个段落包装在一个段落 p 标记中,然后换行,这样它们就不会跑出屏幕。所以这就是我正在做的事情:
将文本从我的客户端复制并粘贴到编辑器中(本示例为 2 段)。
选择文本。
使用 Emmet,输入“p*”,将 p 标签放在每个段落的开头,将 /p 放在每个段落的结尾。
选择文本。
单击 Alt Q 以换行。
文本换行但已损坏,因为 /p 标记中的左尖括号“
<p>Our swimming lessons run on a perpetual monthly enrollment system,
<making year-round lessons affordable and convenient. Our online
<registration system allows you to sign up at your convenience and
<monitor your account details easily./p>
<p>Our highly trained swim instructors teach our unique, proven
<curriculum in stages, encouraging swimmers to master the fundamentals
<of every important swimming skill. We continuously encourage
<progression and advancement as each swimmer becomes more confident in
<the water. Our program blends important water safety skills, buoyancy
<principles and correct stroke technique./p>
帮助!我做错了什么?
【问题讨论】:
标签: sublimetext2 emmet