Hi, I'm thinking of starting a small, simple, project that will be made up of a few web pages, with lots of little code snippets on them (specifically simple C snippets). Syntax highlighting-wise, I'm not sure what is better: having syntax highlighting in the backend (say with PHP) or in the frontend (in the browser using some Javascript syntax highlighter... I might even write my own in MooTools :-)
I'm edging toward having it in the browser. I think I'm not such a fan of all those spans that will be placed in the HTML sent to the browser. I generally like to view the source code of a web page and be able to understand the content (so as much semantically correct markup as possible). But is that a bit pointless? Also, looking at something like github, the syntax highlighting is server-side. What do people here think? Browser / Server ? Michal.
