【发布时间】:2016-11-09 22:08:55
【问题描述】:
我正在尝试使用 Sublime Text 3 for HTML 中的自动缩进功能。我在 html 中有一些块 cmets,然后选择 Edit>Line>Reindent 工作,直到它遇到块注释。
尝试在此处重新缩进示例:
<html>
<head>
<title>Testing Indent</title>
</head>
<body>
<table>
<tr>
<td>
Cell 1
</td>
</tr>
<tr>
Cell 2
<!--Block Comment Here
And a Little More Here
-->
</tr>
</table>
</body>
</html>
结果是这样的:
<html>
<head>
<title>Testing Indent</title>
</head>
<body>
<table>
<tr>
<td>
Cell 1
</td>
</tr>
<tr>
<td>
Cell 2
<!--Block Comment Here
And a Little More Here
-->
</td>
</tr>
</table>
</body>
</html>
有什么想法吗?
【问题讨论】:
-
不加评论能用吗?
-
是的,它在没有注释块的情况下重新缩进时缩进很好。
-
可以确认,ST3 3103 发生在我身上的确切问题
标签: html sublimetext3 indentation auto-indent text-indent