TaggingService is a simple System Service (available to all applications through the 'Services' menu) which will open and close HTML tags around the selected text. The type of tag is determined by a special format at the beginning of the selected text. e.g. invoking the service on the following "b:this is some text" would result in that text being replaced by this is some text.
Mac OS X 10.6 or later