Preview - Highlight Text Color - Keyboard Shortcut

Hi!
I've loving the markup capabilities of Preview in Mountain Lion and was wondering if there was a way to quickly change colours (colors) of the highlighted text via keyboard shortcut?
I found this thread for Snow Leopard, but couldn't figure out how to get it to work for Mountain Lion:
https://discussions.apple.com/thread/3180984?start=0&tstart=0
It seems there are some shortcuts possible, for instance when I click the Markup dropdown box if I type "g" it will highlight Green, "b" it will select Blue etc.  But it won't actually select these options.
The quickest way I've found is the right-click after highlighting which brings up a contextual menu to select the colour of that highlight. 
Ideally I'd press a shortcut combination to change the highlight colour before selecting what to highlight.  Does anyone know of a way to get this functionality?
Thanks so much for your help! =)
Derek.

Check out this article: http://support.apple.com/kb/PH3957?viewlocale=en_US&locale=en_US
and do as explained in the link you posted yourself.
Worked for me by adding shortcuts from General settings-->Keyboard-->Shortcuts and define them for Preview.

Similar Messages

  • Changing highlight text color / using Highlighters

    I've subclassed JTextArea, and among other things, am trying to add the functionality for drawing the active selection even when the TextArea doesn't have focus. I've overridden processFocusEvent like so:
    public void processFocusEvent(FocusEvent e){
            Highlighter h = this.getHighlighter();
             if (e.getID() == e.FOCUS_GAINED){
                //remove the inactive highlight
                h.removeAllHighlights();
            //this will put the selection highlight back in for us, among other things,
            //if we just gained focus.
            super.processFocusEvent(e);
            //now add the inactive-selection highlight if we just lost focus
            if (e.getID() == e.FOCUS_LOST){
                try {
                    h.addHighlight(
                            this.getSelectionStart(),
                            this.getSelectionEnd(),
                            new DefaultHighlighter.DefaultHighlightPainter(
                                new Color(212,212,212)
                } catch (Exception ex){
                    ex.printStackTrace();
        }and it works quite nicely. Notice that I draw the inactive selection gray.
    There's a slight problem with this: JTextArea doesn't treat the text in the highlighted section any differently, as opposed to how it would when the component is focused (i.e. rendering it in the highlighted text color). I'm guessing this is because it knows that it's not focused, and therefore assumes that there's no highlighting to be drawn. So as a result, all text in the text area is rendered in the same color --- the foreground color --- when the textArea doesn't have focus, regardless of what is being highlighted. For this reason, setSelectedTextColor() has no effect.
    But I want to be able to change the highlighted text color, since, in theory, the user's system could be configured to show text in the exact same gray that I'm highlighting with. I want to just be able to set it to be white or black.
    I am rather averse to using a TextPane, since what I'm writing is designed to edit plain text, and a TextArea has many wheels that I don't want to reinvent, like setTabSize(), for example.
    Clearly, there is code already in place somewhere to draw text a different color for highlighted portions of a TextArea. Is there some way I could perhaps trick only the drawing code into thinking that it has focus? What is the cleanest way to accomplish what I want, i.e. the way that involves rewriting the least amount of functionality?
    Any suggestions/leads would be greatly appreciated.

    Here's a better way to keep the selection visible. All those hard-coded colors are a big no-no, but this is just to demonstrate the technique.
    import java.awt.Color;
    import javax.swing.text.DefaultCaret;
    import javax.swing.text.Highlighter;
    import javax.swing.text.DefaultHighlighter;
    * usage:
    * textComponent.setCaret(new GhostCaret());
    public class GhostCaret extends DefaultCaret
      private static final Highlighter.HighlightPainter unfocusedPainter =
          new DefaultHighlighter.DefaultHighlightPainter(new Color(230, 230, 210));
      private boolean isFocused;
      protected Highlighter.HighlightPainter getSelectionPainter()
        return isFocused ? SimpleHighlighter.defaultPainter : unfocusedPainter;
      public void setSelectionVisible(boolean hasFocus)
        if (hasFocus != isFocused)
          isFocused = hasFocus;
          super.setSelectionVisible(false);
          super.setSelectionVisible(true);
          getComponent().setSelectedTextColor(isFocused ? Color.WHITE : Color.BLACK);
    }

  • Preview How To - change keyboard shortcut for dictionary def.

    Hi,
    I would like to know how to change the keyboard shortcut for checking the dictionary definition of a highlighted word in Preview.
    Thanks,
    Brandon

    Keyboard shortcuts are handled in System Preferences/Keyboard/Keyboard Shortcuts/Keyboard & Text Input...

  • Preview: highlight text slowly disappears over the days

    Hello everyone.
    I have several days reading a book in pdf format with preview.app, and I highlight text in bright yellow.
    I have reviewed all the highlighted text and the color yellow is more tenuous as I approach the beginning of the book.
    In fact the highlight of the first page no longer exists.
    How I can do to make all the highlight is of the same intensity of color?
    I use Preview Versión 5.5 (719). Thank you.

    Tonight I went to the Genius Bar. There seems to be two options:
    (1) Do as the genius did tonight:
    - Reset the home folder's ACL (Access Control List.)  (He said to Google this to learn exactly how to do this.)
    - Repair the disk permissions
    - Delete the Preview preference file. It's a "plist" file located in user/library/preferences
    If that doesn't work, then:
    (2) Re-install Lion.
    I tried Preview with the fixes and most of my problems seemed to be fixed. Those being the colors of the highlighted text and notes haven't dimmed after a number of quits and restarts of Preview. However, the grey text that I originally included in my annotations became invisible again. They're still there, but you can't seem them. Although the text that I included using other colors (blue & red) continue to appear.
    My feeling that this still might be an issue related to versions, but who knows.

  • BUG: Changing text colours within a text block: Keyboard shortcuts problem (Photoshop CS5)

    In earlier versions of Photoshop, I could double click a Paragraph Text to edit it, then select individual words and change their colours using the Ctrl+Backspace and Alt-Backspace keyboard shortcuts (to change them to either Background or Foreground colours).
    In PhotoShop CS5, Alt+Backspace is OK, but Ctrl-Backspace deletes the highlighted word! Not good. I believe this is a bug, can it be fixed to revert to the old behaviour?
    (Photoshop CS5 Extended x64 on Windows 7 x64)

    I fully understand what you're saying, and while I'm all for compatibility, user interface change cannot be accomplished without, well, change.
    Imagine, for example, that thousands of people could have reported that they couldn't delete the prior word with Ctrl-Backspace while using the T tool in Photoshop, while they could with every other application on their systems.  Imagine that none of the users like you reported that they were happy with things the way they already are.
    Perhaps the best approach in a situation like this would have been for Adobe to add a configuration option somewhere to allow individual users to make the choice.  But EVEN THEN there's a push from the Marketing types to simplify the number of choices given to customers, probably because doing so reduces support costs (imagine, for example, someone brainlessly setting it to your flavor of Ctrl-Backspace, then calling support to complain that they can't delete the prior word as they have always been able to do).  There are a lot of requests on this forum that read like "I must have changed a setting somewhere, but I'll be darned if I can find it."
    Microsoft and Adobe have both moved lately in this direction (reducing choices and configurability), reportedly to "reduce the cognitive load" on presumably ever less intelligent users, with ill effects in many cases.  Unfortunately, "you can have it any way you like so long as it's our way" seems to be the way of the future.
    -Noel

  • Highlighting/text color

    I have a quick question :
    I have a program that check every words in a JTextArea and I need to highlight or change the color of the incorrect word. So, when the program is over, I will see some words in a different color(or highlighted, whichever is the easiest to do).
    I only need to know how to do the change of color (I already have the program which give me the location of every wrong words)
    Thank you.

    is there a lot of change to do to switch to JTextPane? There's some work since, inevitably, you have to do more than getText(),
    setText().
    As well as the section on text components in the Swing section of
    Sun'sTutorial, there is this article from a while back:
    http://java.sun.com/developer/JDCTechTips/2002/tt0821.html#tip2
    Google about! If you get stuck you'll find it best to post code and
    questions to the Swing Forum.

  • Highlighting text in a table

    I want to highlight text (colored band) in a table. Not able to do so. The highlighting icon goes off when the cursor is on the text in table. It reappears when the cursor is outside the table.

    Hi Fruhulda,
    Thanks.
    The method shown below also works. But one has to be careful because among the menu options shown is "document color" (icon nos 4 from left). This is the correct one. I had been trying the icon for text color ignoring document color because it reads as if it for the entire document. Just now I tried the document color and it worked as a highlighter after the text was selected.

  • [INFO] Not so well known things about LR keyboard shortcuts

    Hi,
    There are a few things that you should know about keyboard shortcuts in LR.
    I already posted information about this last year for non english speaking
    users but I had to be more accurate because this is of interest for english
    speaking users as well.
    This information can help solve some problems encountered if
    - you are using an english version of LR with a non-english keyboard layout
    - you are using a non english version of LR
    - you want to change some keyboard shortcuts even when using the english
    version
    - you want to fix some bugs in the localized keyboard shortcuts
    Here we go...
    1. When using a non english version of LR, the translations are read from a
    file named \Program Files\Adobe\Adobe Photoshop Lightroom
    2\Resources\fr\TranslatedStrings.txt. The localized keyboard shortcuts are
    also described in this file.
    2. For the english version \Program Files\Adobe\Adobe Photoshop Lightroom
    2\Resources\en\TranslatedStrings.txt doesn't exist by default because the
    default values for texts and keyboard shortcuts are hard-coded.
    3. Any change in TranslatedStrings.txt, including changes related to
    keyboard shortcuts, will be taken into account after reloading LR. These
    changes will also be reflected in the Help Panel that is displayed when you
    use the Help | Shortcuts command.
    5. So if you are using a localized version or the english version of LR (see
    next point), you'll be able to change the default keyboard shortcuts.
    4. Some keyboard shortcuts of the english version are unreachable when using
    a keyboard with a foreign layout. You're not stuck, however. Nothing
    prevents you from creating a TranslatedStrings.txt file in \Program
    Files\Adobe\Adobe Photoshop Lightroom 2\Resources\en. This file doesn't need
    to be the full translation file. It just has to include all the lines ending
    with Key=xxxxx + a few additional ones (or just the lines related to the
    shortcuts that you want to change). You can download a full sample with
    french shortcuts from http://www.mainsoft.fr/Files/LR/TranslatedStrings.txt
    . Just create the file, edit the shortcuts as you want and reload LR. I
    don't know how you can add comments to this file.
    5. Attn french users: there's a bug described in the thread titled "Missing
    shortcut in Lightroom 2.2 french". You'll be able to fix it by using the
    information above (this is also described in the thread itself).
    So that's it. LR doesn't offer you a keyboard shortcut editor - something
    unexpected for a software at that price level - but you can edit them
    anyway.
    Enjoy!
    Patrick

    Hi,
    This post is still valid for LR3. It's a pity that this new version
    still doesn't have a built-in keyboard customization feature.
    I shoul add a few additional details, though.
    - You have to create the \en subfolder yourself. Once created and once you have also created the TranslatedStrings.txt file, it will be taken into account.
    - It appears that the TranslatedStrings.txt files corresponding to each supported language do not contain the same commands. For some languages, some commands do not have any shortcut (or the translator was not concentrating on his job and the quality assurance dpt. just missed the point). So if you don't find the line(s) related to the shortcut that you want to customize in the file corresponding to your language, look for it in the other files.
    - Some characters can't be used for customizing a shortcut, even if they are not already used for another shortcut. It depends on each local keyboard. I guess this is due to the very same problem that exists since LR 1.0: the program uses its own keyboard handler and fails to adapt to keyboards that are not corresponding to the selected language. From the beginning, many of us european users have told to Adobe that a user can select in LR a working language that is not corresponding to the keyboard and country settings used on the system. This is a common situation. They are just ignoring the problem.

  • Can I create a keyboard shortcut for changing text colors in Mail?

    When composing an email in Mail (v5.2), I often have the need to change the text of a few words to red to highlight them (e.g. names of people assigned to an action item) but want to do it via keyboard shortcut.  I know I can do the following:
    Press Command-Shift-C brings up to Colors panel
    Choose the color (e.g. Red) with my mouse
    Type the text
    Choose the color (e.g. back to Black) with my mouse
    Continue typing text
    And that's if I want the color panel to stay visible (add at least 3 more steps all together if I close it in the interim).
    I've tried using keyboard shortcuts to assign a color (couldn't find the right menu path) and Automator to create a script (the color panel always has to be in the right location which it may not be). None of those techniques work.
    It's an annoyance more than anything else but I imagine it should be possible.
    Thanks for any assistance!
    John

    Not only is this very possible, it's also very easy. You can do this not just for Quark but for any application in OS X. To accomplish what you want, do the following:
    * Firstly, quit QuarkXPress completely. The rest of the steps won't work if it is still running.
    * Go to the Apple menu and select System Preferences.
    * Click the Keyboard & Mouse System Preference Pane
    * Click Keyboard Shortcuts
    * Click the + button to add a new shortcut.
    * Select QuarkXPress as the application.
    * In the Menu Title field type "Place Name" exactly like that but without the quotes.
    * Click inside the Shortcut field and type the key combination you want to use for this shortcut. I suggest using Command + one of the F keys, like Command+F1.
    * Click Add.
    * Close System Preferences
    * Run Quark, open a document, and try it out!
    Robert

  • Preview highlight color

    Currently when I do a text search in Preview and click on a result, it highlights the text in a light grey, which can be irritating to locate in a page of b&w text. When I highlight text normally, it comes out light blue, the color that I selected in the Appearances preferences.
    Anyone know if there is a setting in Preview that I am missing? Thanks.

    I had the same problem...then I noticed that when the drawer is selected, the text highlights the color I set in System Preferences/Appearances pane, but when the main part of the window is selected, the text in the drawer goes to that grey color.
    It's the exact opposite for the PDF text, so when you do a text search, and click on one of the found texts in the drawer, click on the PDF before looking/squinting for the grey color. The text should pop up in the color you set for the system in the aformentioned preference pane.
    Search for text, select text in drawer, Preview goes to text, click on main portion of window.
    pressing TAB 1x (ONCE) is quicker and easier, though.
    Solved it for me, anyhow.
    PowerBook G4   Mac OS X (10.4.5)   2 GB RAM

  • TextEdit, App Store, Preview do not respond to clicking or keyboard shortcuts

    Late 2013 Macbook Pro Retina running Mavericks 10.9.4 with all software updated.
    A couple of days ago, I opened an image up in Preview only to find that the application would not respond to any clicks or keyboard shortcuts I made. If I were to hover over an icon on the top bar, it would recognize that I was doing that, but not do anything if I clicked on it. Ultimately, the only way to close the program to perform a force quit with Cmd-Opt-Shift-Esc or right-click on the dock and go to "Quit". It does not show up as not responding in the Force Quite menu, and the problem does not go away if I reboot the computer.
    I've also experienced the problem in two other apps to date - the App Store and TextEdit. Both will act like they're perfectly okay until I actually go to click on something, in which case they won't respond at all. There's no spinning pinwheel or freezing - it just acts like nothing is happening. (For example, if I launch the App Store from my browser directly to an app page, the "Download" or "Purchase" button will highlight when you hover over it but cannot be pressed. I have launched it from Finder, as well, so it's not that contributing to it.)
    These are the only apps I've noticed that are doing it, but they're all Apple apps. In contrast, Finder, iTunes, and Safari work as well as ever. Any help would be much appreciated.

    Please read this whole message before doing anything.
    This procedure is a test, not a solution. Don’t be disappointed when you find that nothing has changed after you complete it.
    Step 1
    The purpose of this step is to determine whether the problem is localized to your user account.
    Enable guest logins* and log in as Guest. Don't use the Safari-only “Guest User” login created by “Find My Mac.”
    While logged in as Guest, you won’t have access to any of your documents or settings. Applications will behave as if you were running them for the first time. Don’t be alarmed by this behavior; it’s normal. If you need any passwords or other personal data in order to complete the test, memorize, print, or write them down before you begin.
    Test while logged in as Guest. Same problem?
    After testing, log out of the guest account and, in your own account, disable it if you wish. Any files you created in the guest account will be deleted automatically when you log out of it.
    *Note: If you’ve activated “Find My Mac” or FileVault, then you can’t enable the Guest account. The “Guest User” login created by “Find My Mac” is not the same. Create a new account in which to test, and delete it, including its home folder, after testing.
    Step 2
    The purpose of this step is to determine whether the problem is caused by third-party system modifications that load automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.
    Please take this step regardless of the results of Step 1.
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem. You must hold down the shift key twice: once when you turn on the computer, and again when you log in.
    Note: If FileVault is enabled, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.
    Test while in safe mode. Same problem?
    After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of Steps 1 and 2.

  • Preview keyboard shortcuts

    iMac with SnowLeopard 10.6.8
    I use Preview to view and annotate screenshots.
    Rather than accessing the pulldown menu Tools --> Annotate --> Add Text (etc), I would like to use a keyboard shortcut instead.
    "Add Text" indicates  ^ command T  is the combination (where "command" is the Apple cloverleaf symbol). 
    What key does the  ^  indicate?   (It's not shift 6, I tried that.)

  • Keyboard shortcut to highlight xy coordinates?

    Hi,
    Are there any keyboard commands that will immediately highlight the text in the TRANSFORM pane so I can quickly move and scale an object without having to move my mouse and double-click the box?
    If so, is there also similar for the CHARACTER pane?
    Kind regards

    There's no keyboard command pre-defined for the Transform pane, but you can easily make one.
    Go to Keyboard shortcuts under the Edit menu. If you are using one of the [Default] sets, click New Set so you can add shortcuts.
    Now in the Product Area, select Window menu and scroll down the list to click on "Object & Layout: Transform". Now click in the New Shortcut box and type what you would like the shortcut to be (eg on a Mac you might choose: CMD ALT SHIFT T). Click Assign, then click OK.
    That shortcut key will now bring up the Transform panel, and you can tab through the fields.
    There is a shortcut key predefined for the Character panel, CMD T. Again, you can tab through the fields to type the font, weight, size, leading, etc. Just hit Return when you are done.

  • Is it possible to make a keyboard shortcut for a specific color for fonts?

    I'm a novice InDesign user and these forums have been a great resource, so thank you for your time.
    I'm doing a very complicated "text art" project and I'd like to be able to change text colors right from the keyboard.
    In Word, one is able to make a keyboard shortcut (to an unused key combination) that would allow you to change text to white, for example and another combination to change it to black, etc.
    I'd love to be able to do that in InDesign without having to mouse over to the color swatch or over to a paragraph style with the text color set.
    Again, thank you in advance!

    For anyone else who has this problem - I actually found out an easy workaround.
    There's another forum that addresses the NumPad issue for MacBooks (http://forums.adobe.com/thread/324960) and I did a modified version for character styles v. paragraph styles per the final comment by Kaj-Ettore.
    ==
    (1) Open text edit and copy the below script (for me it was changing the text to white):
    try{app.selection[0].applyCharacterStyle
    (app.documents[0].characterStyles.item(1),true)}catch(e){}
    Watch the number '(1)' in brackets on the last line: This is the Style number according to the Styles listed in the 'Character Styles' Panel of InDesign (following "[None]").
    Per my setup, "White" is 1 and "Black" is 2.
    SEE SCREENSHOT:
    Decrement the style you'd like to be applied via this script from the styles listed in the InDesign-applet 'paragraph styles'.
    *Note - This Workaround only works for specific Documents – since InDesign links Styles with document templates.
    (2)  Save the Script to:
    %InDesign_Install_Folder%\Scripts\Scripts Panel\Samples\JavaScript\Style(%nmb%).jsx
    or name the file as you like. You'll have to assign a keyboard-shortcut to this and other files later, so it is wise to choose a common and memorable syntax for naming, e. g. numbers or style-names. (I used Style(White).jsx)
    (3)  Repeat this step for every style you'd like to be applicable via a keyboard shortcut...
    This is my "Black" script:
    try{app.selection[0].applyCharacterStyle
    (app.documents[0].characterStyles.item(2),true)}catch(e){}
    Saved as: Style(Black).jsx
    Assign a Shortcut to the Script
    (1)  Open InDesign > Preferences > Keyboard Shortcuts > %YourSetOfShortcuts%
    (2)  Select 'Scripts'
    (3)  Choose the first script you've written, e. g. 'style(body).jsx'
    (4)  Create Shortcuts for Standard- and Text-Environment
    (5)  Repeat for any script you've written
    (6)  Done.
    This worked perfectly for me and I can now use ONE keyboard shortcut (albeit 3 simultaneous keys) to change from black text to white text.

  • Keyboard shortcuts initiate when I'm trying to type text. (CS4)

    I will try to type text in certain places (such as to name a layer or group in the layers panel or type in a font name in the character panel) and instead of displaying characters, Photoshop will initiate it's keyboard shortcuts. For example, if I try to name a layer "bat", it will leave the layer name blank and it will highlight the brush tool, the selector tool, and then the type tool.
    I can type text on my document with the text tool and I can also type the document name in "Save" and "New".
    I'm not sure if I've accidently hit something on my keyboard that makes this happen, but I've never had this problem before.
    I ran the latest updates. I'm using CS4 on OSX 10.6.8.
    Any ideas?

    @PECourtejoie
    I can highlight the text field, for example, I can double-click a layer name and it will change into a field with a cursor and I can even highlight the current name. However, I did just discover that sometimes I can type a letter once and the following keystrokes will act like a shortcut (whether the same letter or a different one). I then have to place the cursor in another part of the word to make this happen again, but again, it only happens sometimes and for now it seems random.
    It will also occasionally delete nearby layers (maybe there's a shortcut that does that, but I'm not sure which keystroke I hit when that happens).
    My mouse didn't accidently click elsewhere, it's been consistent for an entire day now.
    I looked at my preferences and didn't see anything that would reset them (nor anything that would apply to this). Please let me know how and I will try it.

Maybe you are looking for