[b][/b], [quote][/quote] how?

I use Firefox and am wondering how to select a word and wrap [b] tags or [quote] tags around it? Any tutorials?

You would start by learning about how to use the range.
http://www.quirksmode.org/dom/range_intro.html