Assign keyboard shortcut to non-standard highlight color?

Everything related to our flagship word processor.
Post Reply
NisusUser
Posts: 321
Joined: 2011-01-12 05:32:38

Assign keyboard shortcut to non-standard highlight color?

Post by NisusUser »

Is there a way to assign a keyboard shortcut to the color "Tangerine"? I already have shortcuts assigned to the regularly listed colors:
Highlight colors with keyboard shortcuts.png
Highlight colors with keyboard shortcuts.png (63.27 KiB) Viewed 632 times
tangarine.png
tangarine.png (243.86 KiB) Viewed 632 times
Last edited by NisusUser on 2024-02-19 12:49:59, edited 1 time in total.
adryan
Posts: 563
Joined: 2014-02-08 12:57:03
Location: Australia

Re: Assign keyboard shortcut to non-standard highlight color?

Post by adryan »

G'day, Eric et al

Create a Macro with the following commands and assign it a Keyboard Shortcut:–

Code: Select all

$tangerine = Color.newWithHexTriplet 'FF9300'
Set Text Color $tangerine
Cheers,
Adrian
MacBook Pro (M1 Pro, 2021)
macOS Ventura
Nisus Writer user since 1996
NisusUser
Posts: 321
Joined: 2011-01-12 05:32:38

Re: Assign keyboard shortcut to non-standard highlight color?

Post by NisusUser »

adryan wrote: 2024-02-19 12:28:07

Code: Select all

$tangerine = Color.newWithHexTriplet 'FF9300'
Set Text Color $tangerine
Thank you, Adrian. I did that. And it works – in a way. It actually changed the text color to tangerine, though, not the highlight behind the text. How do I do that?

Eric

EDIT: Oh, that was easy: All I had to do was change the word "Text" to "Highlight" in the macro (without the quotation marks, of course).
adryan
Posts: 563
Joined: 2014-02-08 12:57:03
Location: Australia

Re: Assign keyboard shortcut to non-standard highlight color?

Post by adryan »

G'day, Eric et al

Sorry, I missed that it was the highlight coloring you wanted.

For those interested, the options are:–

Set Text Color
Set Background Color
Set Highlight Color
Set Underline Color
Set Strikethrough Color

Cheers,
Adrian
MacBook Pro (M1 Pro, 2021)
macOS Ventura
Nisus Writer user since 1996
NisusUser
Posts: 321
Joined: 2011-01-12 05:32:38

Re: Assign keyboard shortcut to non-standard highlight color?

Post by NisusUser »

@Adryan (aka Adrian),

I started to ask you to share with me how you got the Hex code for the Tangerine color. I had been looking at the CMYK slider and did not see any Hex Color Number. But after I uploaded my screenshot, which I did of the RGB slider I saw that the "Hex Color #" is there.

So … I'm just posting this so I can remember how to do this. (I decided to add yet another highlighting color.)

No responses necessary… I'm merely using the Nisus forum as a knowledge repository. :D
nisus_color_sliders_tangerine_w500.png
nisus_color_sliders_tangerine_w500.png (83.67 KiB) Viewed 577 times
adryan
Posts: 563
Joined: 2014-02-08 12:57:03
Location: Australia

Re: Assign keyboard shortcut to non-standard highlight color?

Post by adryan »

G'day, Eric et al

FFD700 star, Eric!

It might be as well to remind/inform people also of the Digital Color Meter application in the Utilities folder. This allows you to get color code values for any color displayed on your screen, without having to extract the information from a screenshot.

Cheers,
Adrian
MacBook Pro (M1 Pro, 2021)
macOS Ventura
Nisus Writer user since 1996
Post Reply