15
\$\begingroup\$

I've noticed that code snippets do not get syntax coloring like stackoverflow. Instead the whole chunk appears black and white. Is it something I've done wrong or is this a massive missing feature?

\$\endgroup\$
  • \$\begingroup\$ I have noticed this as well. What's curious is that it does appear colored correctly when I (for example) attempt to edit somebody's post. \$\endgroup\$ – Josh Feb 6 '11 at 18:58
  • 1
    \$\begingroup\$ Specifically, if I edit the post and make an actual change, then wait a few moments, it becomes colored. \$\endgroup\$ – Josh Feb 6 '11 at 19:00
  • 1
    \$\begingroup\$ @josh we're not exactly sure why this was never enabled, seems like an obvious thing, we're enabling it now \$\endgroup\$ – Jeff Atwood Jan 24 '12 at 21:14
4
\$\begingroup\$

This is probably a server-side issue. On StackOverflow, code snippets in questions or answers have a special prettyprint class, eg. <pre class="lang-c prettyprint"> ... </pre> whereas on Gamedev the code snippets are served as <pre><code> ... </code></pre>.

\$\endgroup\$
2
\$\begingroup\$

Code will now be styled by default - look here if you need to manually override a specific syntax.

\$\endgroup\$
  • \$\begingroup\$ It appears to still be an issue on the /review page. \$\endgroup\$ – yoozer8 Feb 3 '12 at 5:43

You must log in to answer this question.

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