On a Salesforce-focused site, I think there will be a LOT of code snippets, and syntax highlighting makes them easier to read. How would we go about setting up a system of syntax highlighting like they have on other SE sites?
On stackoverflow there are tags to specify the language you want the syntax highlighting: Syntax highlighting language hints
If this is not turned on for salesforce, it should be. I haven't tried it so I don't know for sure.
In the future it may be possible to get or write a grammar as mentioned, but that doesn't seem totally necessary to start.
Language tags also work on SE, and the Apex and Visualforce tags could be added and mapped to Java and XML.
Please compare these 2 answers:
Code snippet is essentially the same and I swear I haven't used anything fancy to format it on SO (especially nothing from link in @paul's answer), just clicked the button in editor.
Can it be because of beta and limited control over layout (which I understand to be CSS files mostly)?
For apex code at least the first step would be to get our hands on an apex grammer spec. To the best of my knowledge this does not exist.