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

Here's an example of a post where the syntax coloring is missing. I've tried to follow the advice of manually adding the language definition from this discussion but to no avail.

Why does that happen and what can be done about it?

share|improve this question

closed as too localized by Martijn Pieters, Toon Krijthe, Bart, Mat, animuson Oct 6 '12 at 16:11

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

The correct syntax was just added. – Martijn Pieters Oct 6 '12 at 15:39

You wanted <!-- language: lang-cpp -->. I've updated the answer.

share|improve this answer
Oh... I'm so retarded sometimes... :) Thanks! – Konrad Viltersten Oct 6 '12 at 15:41
No problem! Thanks for taking the time to edit :) – Andrew Whitaker Oct 6 '12 at 15:41
Also - HOW did you rotate the characters in your name? It's like McDonald's - I'm loving it! – Konrad Viltersten Oct 6 '12 at 15:42 – Andrew Whitaker Oct 6 '12 at 15:42
(˙˙˙ʇɐɥʇ ʞuıɥʇ oʇ ʎpɹǝu os ɯ,ı ɹo) ˙ןooɔ os sı sıɥʇ – Konrad Viltersten Oct 6 '12 at 15:45
But HOW is it done? There's not CSS for "upside-down", is there?! – Konrad Viltersten Oct 6 '12 at 15:45
It's possible with Unicode. But well, off-topic for here – Bart Oct 6 '12 at 16:04
@Chamster: By using unicode characters that look exactly like their ASCII counterparts but flipped. Paste the result into a unicode codepoint tool (such as uniview) and marvel at the exotic codepoints! – Martijn Pieters Oct 6 '12 at 16:43

It has happened because the parser couldn't decide what language this is, so can't figure out what syntax highlighting algorithm to use.

The question is not tagged with a specific language - if it were tagged with the language, that would be a good hint for the highlighter.

There are also highlight hints that can be added.

share|improve this answer
The OP did add hints, just not correctly apparently. – Bart Oct 6 '12 at 15:40
I used the highling hint for C++ but the appearance didn't change. Maybe I did it wrong? I used the suggestion from the discussion I've posted a link to (might be the same as you had) and enter "C++" in the place of "your-language". It didn't work... – Konrad Viltersten Oct 6 '12 at 15:40
@Chamster - There is not lang-C++ - it should have been lang-cpp. The parse is not that smart. – Oded Oct 6 '12 at 15:42

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