|
|
#1 |
|
Junior Member
![]() Posts: 1
Karma: 10
Join Date: May 2023
Device: PocketBook
|
Auto increase number in HTML tag as Clip?
It is possible to add in Clip Editor such posibility?
How can it work? 1. in Clip Editor I create initial template: <p style="text-align: center;"><img alt="{01;1}" src="../Images/{01;1}.jpg"/></p> where this part: {01;1} represents initial value: "01" and increment "1" at next paste againt previous one. 2. so in next use of my Clip, let it call as "imgAutoInc" I get this text: <p style="text-align: center;"><img alt="01" src="../Images/01.jpg"/></p> next Clip "imgAutoInc" generate: <p style="text-align: center;"><img alt="02" src="../Images/02.jpg"/></p> next: <p style="text-align: center;"><img alt="03" src="../Images/03.jpg"/></p> etc. Thanks. It needs also some "RESET" to initial value solution...
|
|
|
|
|
|
#2 |
|
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 9,072
Karma: 6361556
Join Date: Nov 2009
Device: many
|
No, but you can create a plugins to do what you want. Or alternatively use an existing incremental id numbering plugin to add incremented ids to select elements and then use regular expressions find and replace to capture that id and use it in a paste.
There is also an existing a python function replacement plugin that would work as well. See our Sigil plugin index. |
|
|
|
| Advert | |
|
|
![]() |
| Tags |
| auto increase |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Increase the number of 36 letters in the Titles column to 50 | pmattera | Library Management | 1 | 10-04-2022 06:44 PM |
| html to EPUB - added class into <html> tag | etihwmot | Conversion | 25 | 08-05-2020 05:20 PM |
| html img tag versus svg wrapped image tag | hobnail | ePub | 8 | 02-27-2020 04:16 AM |
| Aura Increase auto shutdown time to be more than 60minutes | gonzule | Kobo Reader | 4 | 08-18-2018 10:54 PM |
| Increase the number of items per page? | tmb20x | Amazon Kindle | 1 | 11-04-2010 03:12 PM |