I find myself visiting What is syntax highlighting and how does it work? on a regular basis to figure out what languages Prettify supports and by what names it calls them. I guess many others don't bother, or don't even know that language hints exist, leading to sub-optimal syntax highlighting in posts.
It would be great if there were some user interface to choose highlighting. What I have in mind is a small button next to the {}
code formatting button. It might for example show a crayon, unless you come up with a better suggestion. Clicking on that button would open a dialog in much the same way the “add link” button does. That dialog could show a dropdown list of supported languages, and three buttons, titled “set for next block”, “set for all blocks” and “cancel”. I guess the “set for all blocks” button should insert its comment at the head of the post, as that would minimize surprises and users can still move that line around if they want to. The dropdown list might sort languages inferred from the tags to the top of the list.
[?]