View Single Post
Old 02-10-2022, 06:11 PM   #480
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,893
Karma: 6120478
Join Date: Nov 2009
Device: many
In my own plugins I use Sigil's Clips tool to specify a clip I made, then select the text I want and apply the clip. That makes it a single click to mark text the way my plugin needs. Simple and works well.

To be more specific, my clip inserts xhtml comments both immediately before and after the selected text with a unique comment identifier. The plugin itself finds and removes them when running.

Setting id attributes or setting a specific class attribute for the text also works. Clips make these tasks quite easy.
KevinH is offline   Reply With Quote