View Single Post
Old 10-11-2021, 11:30 PM   #5
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by Binchen View Post
This is a good idea, but I don't want the text to be bold, but in flashing purple.
You should learn about Clips then.

1. Press Tools > Clip Editor (Ctrl+Alt+C).

2. Create a new Clip by pressing the "Add Entry" button:

Name: Highlight
Text: <span class="highlight">\1</span>

then press the "Save" button.

3. In Sigil's main window, View > Clips lets you see a list of all your clips.

4. Now, when you highlight text like the word "example" in this sentence:

Code:
<p>This is an example sentence.</p>
then press your "Highlight" Clip, this will happen:

Code:
<p>This is an <span class="highlight">example</span> sentence.</p>
5. Clips can also be controlled by shortcuts.

If you go into Edit > Preferences > Keyboard Shortcuts, you can assign shortcut keys for Clip 1 -> Clip 20.

By default, Clip 1 = Ctrl+Alt+1

This would allow you to highlight your text, then instead of pressing Ctrl+B (to bold), you instead press Ctrl+Alt+1 (to highlight).

(You can now change each clip's shortcut to whatever you want.)

Last edited by Tex2002ans; 10-11-2021 at 11:43 PM.
Tex2002ans is offline   Reply With Quote