|
|
#1 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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? |
|
|
|
|
|
#2 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,722
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 |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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? |
|
|
|
|
|
#4 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,722
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. |
|
|
|
|
|
#5 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,722
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.
|
|
|
|
| Advert | |
|
|
|
|
#6 |
|
Groupie
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 161
Karma: 2000
Join Date: Nov 2025
Device: none
|
I see, thank you.
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
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 |