我有这种情况试图禁用序列到.php文件(黑色注释行，返回顶部文本按钮); 我已经阅读了关于notepad ++中的块注释并设置了文件的语言，但它看起来的注释没有正确实现。
- 355-359行和Block Comment(ctrl + shift + Q)之间的选择。那个，我添加了文本，但它看起来不像其他现有的评论。
<!-- comment which does not include two adjacent hyphens -->。
I have this situation trying to disable a sequence into a .php file (the black commented lines, back-to-top text button); I've read about block commenting in notepad ++ and setting the language of the file but the comment it looks like is not implemented properly.
What I've done :
-File / Open the .php file,
(already it looks like it is viewed in php language judging by the colors)
-Selection between 355-359 lines and Block Comment (ctrl+shift+Q).After that, I've added the text but it doesn't look like the other existing comments.
Any thoughts? Thanks,
PHP comments only work when you are inside PHP mode (between
When you are outputting HTML, you need HTML comments which take the form
<!-- comment which does not include two adjacent hyphens -->.
The PHP within an HTML comment will still execute and the results will be output to the browser. It looks like your PHP only outputs data and doesn't do any significant processing, so that will probably be sufficient. You might, especially in other cases, be better off simply deleting the code and then restoring it from your version control system's history later.