4.17 Comment out text
It is useful to comment out text in the source document, which will not be displayed in the final output document. For this purpose, we can use the HTML syntax <!-- your comment -->
. The comments will not be displayed in any output format.
Comments can span either a single line or multiple lines. This may be useful for you to write draft content.
If you use RStudio, you can use the keyboard shortcut Ctrl + Shift + C
(Command + Shift + C
on macOS) to comment out a line of text.
当前内容版权归 Chapman & Hall/CRC 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 Chapman & Hall/CRC .