heh heh..well as you know, I'm probably the one who doesn't follow. I guess I was saying, if you want to add a button for each code area, how are you going to do that? Or I guess you're asking? I don't know, that's harder than adding one button in the post. I guess you could modify the bbcode definition to include a button.
The other thing I was saying, to modify the JS you posted you'd have to first know what HTML you are working with (which means working out the previous question).
Sorry, I'm not actually a JS expert, maybe I should let someone else take on this one.