Quote:
Originally Posted by Thasaidon
This relates to spot edits after using regex to make the bulk of changes.
Example
<h3 class="msonormal"><b class="calibre1">VIII</b></h3>
Let us say I want to remove the heading tags. Is there a way to delete the opening and closing tags in one go, rather than deleting the opening tag then deleting the closing tag.
In Sigil I can put my cursor on the text choose (say) the h1 icon on the toolbar and it will change the "h3"s into "h2"s..
Calibre Editor just places the new tags around what is highlighted, which is fine, but it would be useful to have a similar Remove Tag function.
I have checked the manual searched the forums but did not find a way of doing this.
|
The Editor has two options: you can select some text, then ADD the tags around it, like you described, or you can CHANGE the tag to H1, H2, H3..., p.
To ADD a tag, use the "</>" icon. To CHANGE the paragraph to heading, and vice versa, use the "H" icon; this option will change both opening and closing tags.
As for removing tags, I think you have to use regex for that.
In a general way:
Find:
Code:
<TAG class="XXX">(.*?)</TAG>
Replace:
TAG is the tag you want to remove, and XXX the class name. If you want to remove all the TAGs, no matter what class, then you do this:
Find:
Code:
<TAG.*?>(.*?)</TAG>
Replace: