This has been answered over and over, but I wanted to throw in the slightly different one when using Quarto-
<!--# This is a comment -->
The "#" lets it be highlighted in the visual editor.
Source/more information: https://quarto.org/docs/visual-editor/content.html#commenting