2

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?

1
  • 1
    The correct syntax was just added. Commented Oct 6, 2012 at 15:39

2 Answers 2

5

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

8
  • Oh... I'm so retarded sometimes... :) Thanks! Commented Oct 6, 2012 at 15:41
  • No problem! Thanks for taking the time to edit :) Commented Oct 6, 2012 at 15:41
  • Also - HOW did you rotate the characters in your name? It's like McDonald's - I'm loving it! Commented Oct 6, 2012 at 15:42
  • fliptext.org Commented Oct 6, 2012 at 15:42
  • (˙˙˙ʇɐɥʇ ʞuıɥʇ oʇ ʎpɹǝu os ɯ,ı ɹo) ˙ןooɔ os sı sıɥʇ Commented Oct 6, 2012 at 15:45
  • But HOW is it done? There's not CSS for "upside-down", is there?! Commented Oct 6, 2012 at 15:45
  • It's possible with Unicode. But well, off-topic for here
    – Bart
    Commented Oct 6, 2012 at 16:04
  • 1
    @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! Commented Oct 6, 2012 at 16:43
2

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.

3
  • The OP did add hints, just not correctly apparently.
    – Bart
    Commented Oct 6, 2012 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... Commented Oct 6, 2012 at 15:40
  • 2
    @Chamster - There is not lang-C++ - it should have been lang-cpp. The parse is not that smart.
    – Oded
    Commented Oct 6, 2012 at 15:42

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