3
\$\begingroup\$

When you see a question in Code Review with some CSS and hex color codes in it, it appears like a comment.

I think the syntax highlighter thinks that CSS uses python style comments i.e. print "2" #here is a comment.

It should be a different color.

Thanks.

\$\endgroup\$
4
\$\begingroup\$

The default syntax highlighter uses a "one size tries to fit all" approach, which will not always be successful. I have changed the setting for the tag such that not the default highlighter, but the CSS-specific highlighter is used for questions with this tag (example).

In general, you can also manually specify which highlighter is to be used, by inserting

<!-- language: lang-css -->

right before the corresponding codeblock. See the syntax highlighting section in the editing help for details, and this answer on meta.so for a list of supported highlighters.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .