Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

This question already has an answer here:

SO's Google code prettify on python wrongly handles // (floor division) as a C-style comment, as noted here, even when the question is tagged .

Here is a more recent example from this SO question:

share|improve this question

marked as duplicate by ben is uǝq backwards, hims056, Martijn Pieters, Aziz Shaikh, animuson Oct 5 '13 at 16:17

This question was marked as an exact duplicate of an existing question.

How is March 6th 2011 "two years ago"? – balpha Jul 5 '11 at 8:13
Sorry, my tired brain misread 'edited Mar 6 at 20:08'. Doh. Edited that out. – smci Jul 5 '11 at 8:15

Because Python is a "webby" language, and code snippets in those posts tend to contain a mixture of

  • HTML
  • CSS
  • Python

The syntax highlighting mode for the all questions tagged is set to default, that is, infer.

If you wish to override it, you can add the following hint above a code block.

<!-- language: lang-py -->


share|improve this answer
I was documenting the known issue; at first glance I thought 'WTF?'. This issue was known two years ago, I assume someone at SO already filed that bug with Google Prettify, is that not so? – smci Jul 5 '11 at 8:01
I mean at first glance I couldn't understand what was happening and thought the highlighting was broken. Then I did some reading on meta and found this is a known issue. Thanks Jeff. – smci Jul 5 '11 at 8:07
@smci oh wait, I see. let me edit. – Jeff Atwood Jul 5 '11 at 8:08
Sorry, as balpha points out, the issue was noted 5 months ago, not 2 years. – smci Jul 5 '11 at 8:17
Is it not better to associate html with lang-html, css with lang-css, and python with lang-py, such that the tag-based language selection causes questions tagged with any combination of these tags to continue to use default, but single-tagged questions are specific? – Eric Aug 16 '13 at 14:37
Python is not a webby language. The number of Python posts that contain HTML or CSS are minimal. – Martijn Pieters Aug 16 '13 at 14:58

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