Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil

Notices

Reply
 
Thread Tools Search this Thread
Old 03-28-2022, 09:27 AM   #1
XVR
Junior Member
XVR began at the beginning.
 
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
XVR is offline   Reply With Quote
Old 03-28-2022, 09:59 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: 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.
KevinH is offline   Reply With Quote
Advert
Old 03-28-2022, 10:03 AM   #3
Turtle91
A Hairy Wizard
Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.Turtle91 ought to be getting tired of karma fortunes by now.
 
Turtle91's Avatar
 
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.
Turtle91 is offline   Reply With Quote
Old 03-28-2022, 11:22 AM   #4
XVR
Junior Member
XVR began at the beginning.
 
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
XVR is offline   Reply With Quote
Old 03-28-2022, 12:03 PM   #5
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,589
Karma: 22735033
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by XVR View Post
So is there a way to do the same, but with a self-defined pre- and suffix?
You can also add custom tags to the clip bar. For an example, see this post.
Doitsu is offline   Reply With Quote
Advert
Reply


Forum Jump

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


All times are GMT -4. The time now is 10:29 PM.


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