我知道美化无法正确缩进PHP。我只想要它跳过它,因为在页面内的PHP代码之后我得到了奇怪的空格。
这里是屏幕截图:
我一直在尝试很多插件,环顾了一个小时,我很生气!
有人可以帮忙吗?谢谢:)
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
<title>MicroCMS - Home</title>
</head>
<body>
<header>
<h1>MicroCMS</h1>
</header>
<?php foreach ($articles as $article) : ?>
<article>
<h2><?php echo $article['art_title']; ?></h2>
<p>
<?php echo $article['art_content']; ?>
</p>
</article>
<?php endforeach; ?>
<footer>
<a href="http://www.test.fr/">MircroCMS</a> is a student work
</footer>
</body>
</html>
Ctrl + Alt + I