Ha, I landed on an even older one first. I totally missed the date on that one.
In any case, have a look at this: http://markettorrent.com/community/view ... =33&t=5885
Using the jquery syntax highlighter, it should be able to parse it on the fly. Which would be even easier.
You wouldn't even need to make a new button because you can target $('.codebox code')