首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何在HTML中注释掉HTML和PHP?

如何在HTML中注释掉HTML和PHP?
EN

Stack Overflow用户
提问于 2014-10-13 14:47:46
回答 5查看 316关注 0票数 1

下面是我想注释掉的一行代码,

代码语言:javascript
复制
<h1 class="post_title"><a href="<?php the_permalink();?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>

将其注释掉的一种流行方法是分别注释掉html和php。

代码语言:javascript
复制
<!--    <h1 class="post_title">
<a href="<?php // the_permalink();?>" title="<?php the_title_attribute(); ?>">
<?php // the_title(); ?></a>
</h1>
-->

有没有更好的方法来做这件事?

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26334348

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档