正则表达式:在 html 编辑器中插入换行符
如果我的编辑器中有一些像这样的 html:
<p>Some code here.</p></This needs to be on a new line!>
如何在实际编辑器(而不是输出)中获取新行上的最后一个标签?
If I have some html in my editor like this:
<p>Some code here.</p></This needs to be on a new line!>
How do I get the last tag on a new line in the actual editor (not the output)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果要将最后一个结束标记放在新行上:
模式:
替换模式:
更新:
完全匹配:
If you want to put the last closing tag on a new line:
Pattern:
Replace Pattern:
Update:
Exact match:
尝试这样的事情:
Try something like that: