I'm the maintainer for Google Code Prettify.
Markup authors can specify the language for source code, but not markdown authors. Are the SO admins interested in a way of doing this?
If so, might the following work
- If the first line is "#!" followed by one or more word characters, then make the first line invisible (using CSS hidden:visible) and use those word characters as the file extension.
- Otherwise, use the current scheme.
So
#!css
tag.class#id { color: red }
would be recognized as CSS.
In markdown, should any indicator of line numbers survive copy-paste in markdown?
Does any scheme like this need to do work to handle quoting of responses in markdown? Is it common for inline responders to split code sections?
Do users also want to number lines ( http://google-code-prettify.googlecode.com/svn/trunk/README.html#linenums ), so that others can respond with reference to particular lines?