Page 1 of 1
Macro to Choose Highlighting Color
Posted: 2007-12-06 12:20:43
by lawrencegoodman
So I use various highlighting colors throughout a document, and was wondering if there was a way to build a macro where you could call up a menu that listed each color and then, by selecting a number, you would be able to choose a specific color.
Any help would be much appreciated.
Posted: 2007-12-06 14:43:58
by martin
I'm not sure I understand, but if I do, here's a macro to get you started:
Code: Select all
$color = Prompt Options “What highlight color should be applied?”, “Please choose the color:”, “Apply”, “Red”, “Green”, “Blue”
Menu “:Format:Highlight:$color”
Hopefully the way to extend the macro is clear. If not, let me know.
Posted: 2008-01-15 12:30:22
by lawrencegoodman
This macro has been very helpful. The one limitation is that I have to go to the mouse to choose the colors.
Is there any way to make it so I can tab between the options? Alternatively, I could type g for green or r for red—something like that.
Thanks.
Posted: 2008-01-15 13:47:50
by martin
lawrencegoodman wrote:Is there any way to make it so I can tab between the options?
It may be because I've enabled "full keyboard access" in my system preferences, but when the radio option buttons have focus I can use the up/down arrow keys to select the option I want.
Posted: 2008-01-15 16:39:24
by lawrencegoodman
Yup, that does it. Thanks.
Posted: 2008-02-04 01:04:39
by js
martin wrote:I'm not sure I understand, but if I do, here's a macro to get you started:
Code: Select all
$color = Prompt Options “What highlight color should be applied?”, “Please choose the color:”, “Apply”, “Red”, “Green”, “Blue”
Menu “:Format:Highlight:$color”
Hopefully the way to extend the macro is clear. If not, let me know.
I guess "Red" was not such a good example here (;-|
This said, is there any means ot plans to extend the abvailable hilite colors?
Posted: 2008-02-04 16:12:32
by martin
It's been requested a few times I know, and it is on the official list of additions. I can't say when you'll see it though.