Somewhat related to this question, I'd like to know if there is any common conventions to syntax highlight JavaScript, CSS and HTML/XML? I’m thinking mostly about things like using standardised class names, IDs, or other hooks (such as using RDFa, Microdata, etc.) to highlight the code on the client side. I know there are a number of libraries to syntax highlight in JavaScript, as mentioned in the linked question, and a number of text editors and IDEs also support themes to style the syntax highlighting. Espresso even uses CSS to specify the highlight colours (I’ve not found a spec though).
Our needs are very performance sensitive, but ideally if we write our own highlighter, it would be nice to use a common convention so syntax highlight style sheets can be shared between apps and sites, or ported easily.