Questions tagged with html (or that use the <!-- language: lang-html -->
tag before code blocks) treat #
as a single line comment for syntax highlighting like Python. To my knowledge, this is not how you denote a single line comment in HTML. It particularly becomes a problem in questions tagged with css in addition to html because it displays id
selectors (which use #
) as single line comments.
I understand that SO uses Google Code Prettify, but this seems like a bit of a large oversight if it is a problem with that service; does anyone use Prettify who can confirm that this is a service-wide issue?