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\$ – user1430 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\$ – user1430 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
\$\begingroup\$
\$\endgroup\$
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>
.