In my opinion it's irresponsible to use highlighters like these. At least when you use them like advertised. Why does no one bat an eyelid at letting the clients handle the highlighting? The highlighting (lexing) could (and should) be done ONCE at the server. Imagine some high traffic blogs with hundreds of millions of hits combined - all these clients downloading the highlighting libs + lexers for 50 different langu…
In my opinion it is irresponsible to post strongly worded opinions such as these, because you forget you may not be seeing the whole picture. Cons when the server do the lexing ONCE: - NOTHING You are assuming a specific use case, where static code originally exists on the server and the highlighted version is included in a page that is viewed many times. My use case for these libraries is different: users actually w…
My rantiness (I apologize for that) targets programming blogs/static pages.