在我的 HTML 中,我有一个包含文件的 php 脚本。此时,代码缩进 2 个制表符。我想做的是让 php 脚本在每一行添加两个选项卡。这是一个例子:
主页:
<body>
<div>
<?php include("test.inc"); ?>
</div>
</body>
和“test.inc”:
<p>This is a test</p>
<div>
<p>This is a nested test</p>
<div>
<p>This is an more nested test</p>
</div>
</div>
我得到什么:
<body>
<div>
<p>This is a test</p>
<div>
<p>This is a nested test</p>
<div>
<p>This is an more nested test</p>
</div>
</div>
</div>
</body>
我想要的是:
<body>
<div>
<p>This is a test</p>
<div>
<p>This is a nested test</p>
<div>
<p>This is an more nested test</p>
</div>
</div>
</div>
</body>
我意识到我可以将前导选项卡添加到包含文件中。但是,当我格式化文档时,VS 会不断删除它们。