I need to insert <code> ...</code>
around a bunch of different words in multiple HTML documents. For example, if I have text like:
The clear command clears the current register
Then I would like to be be able to position the mark just before the first "clear", execute a quick keystroke like say C-c c , and have the text changed to
The <code>clear</code> command clears the current register
I have to do this a lot.
I'm using html-mode in emacs 25.
Note: I also wouldn't mind a command for wrapping <code>...</code>
around the current region.
wrap-region-mode will do what you want. You can install it with package manager.
Wrap Region is a minor mode for Emacs that wraps a region with punctuations. For "tagged" markup modes, such as HTML and XML, it wraps with tags.
It has default "wrappers" defined but you can add wrappers like your
<code>
tag.