Quote:
Originally Posted by odamizu
I am almost finished updating the User Interface chapter.
Question: What is "Format > Remove Tag Pair" supposed to do? How does it work? This is also the toolbar button that looks like <x>
For the life of me, I can't get it to do anything! So I'm not sure what explanation to provide.
|
I think if you have something like:
Code:
<p>This is a <span class="useless"><b>bold</b></span> example.</p>
and you are in the <span>,
Remove Tag Pair will remove the matching <span> + </span>.
1. Click inside the opening <span> here (marked with |):
Code:
<p>This is a <span| class="useless"><b>bold</b></span> example.</p>
2. Press
Format > Remove Tag Pair, and you'll get:
Code:
<p>This is a <b>bold</b> example.</p>
Very helpful when trying to clean up bad code.
I assume the opposite works too:
1. Click inside the closing </span>:
Code:
<p>This is a <span class="useless"><b>bold</b></span|> example.</p>
2. Press
Remove Tag Pair:
Code:
<p>This is a <b>bold</b> example.</p>