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?
-
\$\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\$– user1430Feb 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\$– user1430Feb 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\$– Jeff AtwoodJan 24, 2012 at 21:14
2 Answers
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>
.