Syntax highlighting hints
As we all know,
prettify.js, which is used by Stackoverflow for syntax highlighting, allows the specification of the intended language. However, we cannot reach this from our posts, so that syntax highlighting mangles everything that is not C or one of its derivatives.
There seems to be a simple solution: Allow the specification of a
class attribute for
code tags, so that we can supply prettify.js with the language we intend:
<pre> <code class="prettyprint lang-foo"> ...
I hope that this can either be implemented, or that someone gives a compelling hint to why this might not be feasible.
Perhaps it is even implemented somewhere, but lacking documentation.