View Single Post
Old 02-19-2021, 08:12 PM   #51
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by odamizu View Post
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>

Last edited by Tex2002ans; 02-19-2021 at 08:18 PM.
Tex2002ans is offline   Reply With Quote