Here's a slightly crude Applescript to do what you want
tell application "BBEdit" find ">" searching in text 1 of text document 1 options with selecting match select insertion point after selection set insertionP to selection set text of insertionP to "<!-- <##> -->" & (text of insertionP) select insertion point before selection end tell
At the end it will position your cursor at the end of your tag. Pressing TAB will jump to the middle of your comments (the <##>
), or of course you could ignore it and delete the comment :)