Code HighlighterSo.. a number of people have asked me to implement a code highlighter for the coding section, to make the code look all fancy. I've tried: Advanced Syntax Highlighting - BBCode [highlight] - vBulletin.org Forum Works fine, kinda dated, just worried about server CPU usage. Instead I'd like to find a js plugin that does it all client sided, and detects it based on the TAG. Suggestions, etc?
Originally Posted by Dave84311 So.. a number of people have asked me to implement a code highlighter for the coding section, to make the code look all fancy. I've tried: Advanced Syntax Highlighting - BBCode [highlight] - vBulletin.org Forum Works fine, kinda dated, just worried about server CPU usage. Instead I'd like to find a js plugin that does it all client sided, and detects it based on the TAG. Suggestions, etc? Gee thanks edit: this aint spam I meant thanks for the code highlighter...
hmmmm, Client side is a great idea, Syntax highlighter is build on SyntaxHighlighter (I think 2.0.3 or something) Which is client side. (wow, that is redundant) Syntax Highlighter - Page 2 - vBulletin.org Forum
So what's the format? Code Tags then argument? [code=javascript]<script> document.write("Testing"); </script>[/code] Nope, that's not it.