03-28-2022, 09:27 AM | #1 |
Junior Member
Posts: 4
Karma: 10
Join Date: Mar 2022
Device: NA
|
Custom pre- & suffix applied to selected word
Hi there,
I'm pretty new to Sigil. Is there a way to create a custom text format that would apply a self-defined pre- and suffix to the selected code or word(s) in the Code View? As an example: In the Code View I can select some words and press "Italic" from the menu "Format". That will add the prefix "<i>" as well as the suffix "</i>" to the selected code or words. So is the a way to do the same, but with a self-defined pre- and suffix? Many thanks in advance for your advice? Best regards, XVR |
03-28-2022, 09:59 AM | #2 |
Sigil Developer
Posts: 7,683
Karma: 5433388
Join Date: Nov 2009
Device: many
|
Yes, the feature you want is called "Clips". There are Clips toolbars to make applying them very easy and a Clips Editor.
Highlight the text you want to wrap and hit the icon of the clip you made. The Sigil User Guide would be a good place to learn about this. https://github.com/Sigil-Ebook/sigil...guide/releases Last edited by KevinH; 03-28-2022 at 10:03 AM. |
Advert | |
|
03-28-2022, 10:03 AM | #3 |
A Hairy Wizard
Posts: 3,114
Karma: 18727091
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Absolutely!!
I use Clips all the time, not only to wrap selected text around the highlighted section, but to insert specific text at the cursor. |
03-28-2022, 11:22 AM | #4 |
Junior Member
Posts: 4
Karma: 10
Join Date: Mar 2022
Device: NA
|
Hi KevinH, hello Turtle91
Thank you very much! I did find the "Clip Editor" in the User Guide before, but I missed the trick with the "\1". This is perfect! Cheers, Xavier |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to copy a custom column's content of selected book | scmaybee | Calibre | 6 | 08-16-2019 03:58 AM |
Dictionary: Only allowed to look up the first word in a selected phrase - {word} | Temhar | Calibre | 2 | 06-19-2015 05:56 AM |
Best Pre-Sigil word processor tool/workflow? | Leverpullr | Sigil | 25 | 08-27-2012 02:18 PM |
Bargain (DRM-free@Samhain) Up to 50% off selected [Romance & Urban Fantasy & Horror] | ATDrake | Deals and Resources (No Self-Promotion or Affiliate Links) | 0 | 07-08-2012 07:09 PM |
Custom pre-processors? | Dahak | Calibre | 4 | 07-25-2009 11:18 AM |