Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 06-16-2026, 09:52 AM   #1
icearch
Groupie
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 161
Karma: 2000
Join Date: Nov 2025
Device: none
Design clips

Say I have:

<p>Target Text</p>

and I want to change it into:

<p class="Target Calss" style="Target Style">Target Text</p>

by select the whole line and click a clip, how do I code in clips?
icearch is offline   Reply With Quote
Old 06-16-2026, 10:46 AM   #2
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: 9,721
Karma: 6774572
Join Date: Nov 2009
Device: many
The easiest way since the tag itself is unchanged, just create a clip for the extra attributes.
and apply it
KevinH is online now   Reply With Quote
Advert
Old 06-16-2026, 12:24 PM   #3
icearch
Groupie
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 161
Karma: 2000
Join Date: Nov 2025
Device: none
ye, I mean, how do I code it?

I assume you suggest that I pin point between p and > , and insert class="Target Calss" style="Target Style"

But this seems a little bit hassel, any way to code it so it can be more tolerent like just select the whole line?
icearch is offline   Reply With Quote
Old 06-16-2026, 12:40 PM   #4
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: 9,721
Karma: 6774572
Join Date: Nov 2009
Device: many
Clips are not regex. Clips can wrap themselves around existing selected text but it will not replace any existing tags. You can use clips to rapidly create hierarchies of empty tags, add attributes, etc. But converting existing tags is not one of them. Note: tags need not be limited to be line based so just highlighting a line is not generally sufficient.

It sounds like you would be much better off designing and using some saved searches that can use regex to capture and replace what you want when you want, quickly advancing to the next match.

You can easily apply saved searches from the saved search editor.
KevinH is online now   Reply With Quote
Old 06-16-2026, 12:58 PM   #5
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: 9,721
Karma: 6774572
Join Date: Nov 2009
Device: many
There is no coding. The clips allow a \1 to be a placeholder for the currently selected code/text. If nothing is currently selected, it is ignored.
KevinH is online now   Reply With Quote
Advert
Old 06-16-2026, 08:57 PM   #6
icearch
Groupie
icearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it isicearch knows what time it is
 
Posts: 161
Karma: 2000
Join Date: Nov 2025
Device: none
I see, thank you.
icearch is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Clips JimmyG Sigil 2 02-13-2013 09:16 AM
Clips JimmyG Sigil 2 11-16-2012 12:21 PM
Ended Oberon Design Classic Nook Cover (Green Celtic Hounds Design) apastuszak Flea Market 2 12-12-2011 09:11 AM
Touch Two clips enough? Red Alert Barnes & Noble NOOK 9 07-08-2011 05:23 PM
After K3 Design are you underwhelmed with the KDGX Design & Features? brecklundin Amazon Kindle 20 07-30-2010 05:36 PM


All times are GMT -4. The time now is 08:14 AM.


MobileRead.com is a privately owned, operated and funded community.