14
\$\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\$
3
  • \$\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\$
    – user1430
    Feb 6, 2011 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\$
    – user1430
    Feb 6, 2011 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\$ Jan 24, 2012 at 21:14

2 Answers 2

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\$
1
  • \$\begingroup\$ It appears to still be an issue on the /review page. \$\endgroup\$
    – yoozer8
    Feb 3, 2012 at 5:43

You must log in to answer this question.

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