Glad it helps! The problem with this approach is when your code is indented. If you select and drag the whole line for step 1, step 3 will add the tags at the beginning of each line (leaving an empty space after the new tag).
A better solution for this will be:
Select the line of interest while holding down option