Since there doesn't appear to be a tool in IDEA to do simple HTML encoding of the selected text, I thought I'd create a macro for it. As a simplified initial test, I started macro recording, and did the following:
typed '<' in Text to find and '<' in Replace with (without the quotes)
select scope of Selected text
clicked All in the confirmation dlg
repeated the above steps, replacing '>' with '>'
When I played that back, all that happened was that the Replace dialog opened, with Text to find as '>g' and Replace with as '>'. The text in the dlg is wrong, and the rest of the steps never happened. That makes sense, now that I read that help saying that macros have this limitation: "You cannot record such actions as button clicks, navigating to pop-up dialog boxes, and accessing tool windows or menus."
What use *are* macros then? What can you do with them that's useful?
Short of writing a plugin, is there another way to automate this simple sequence of operations?