Key combo to wrap selected text in quotes/parens/brackets?

Not sure if this is in the right category
Is there a key combo to wrap selected text in quotes/parens/brackets? Kinda like the umlaut (ü) or accent (é) combo. If not, is there a way to script it?

No, but there are third-party utilities that will do that. For example utilities like TextExpander can be configured for it and there are others that will do it automatically - create a matching bracket, quote marks, etc. Look for them at CNet Downloads or MacUpdate.

Similar Messages

  • My slash key doesnt work - it selects text if Im in a form, or shows a thin bar. I remaped keyboard (Linux) and other progs work OK, but not firefox.

    I'm using Linux Mint in a Lenovo S400 lap-top. I had to remap my slash key for X because the scancode of the key is actually Right-Ctrl (go figure!), and all my programs are recognizing this configuration. But in firefox my remapping takes no effect, and the slash key actually selects text if I'm in a form, or makes a thin bar appear at the bottom of the screen.
    Any help is welcome!

    Can you reproduce in safe mode or a new profile?
    * [[Troubleshoot Firefox issues using Safe Mode]]
    * [[Use the Profile Manager to create and remove Firefox profiles]]

  • JS - surrounding selected text with double quotes

    I have a working script which places brackets around selected text in the main body of my document (not in a table), but when I changed the script to insert double curly quotes, the script wont work.
    Why wont this JS work (script stalls on the var line):
    var myObject = (app.selection[0].parent.constructor.name == "Cell") ? app.selection[0].parent.texts[0] : app.selection[0];
    with (myObject)
    insertionPoints[-1].contents = "";
    insertionPoints[0].contents = "";
    while this one does work:
    var myObject = (app.selection[0].parent.constructor.name == "Cell") ? app.selection[0].parent.texts[0] : app.selection[0];
    with (myObject)
    insertionPoints[-1].contents = ")";
    insertionPoints[0].contents = "(";
    Thx Oz
    PS The quotes are showing as three straight quotes above, but in my script they are two straight double quotes surrounding either a right or a left curly double quote.

    Perhaps there's a Smart Quotes interpreter in JS? Who knows.
    If you find it failing again, try inserting the quotes as Unicode values, as these should not be subject to any translating.
    I.e.,
    >insertionPoints[-1].contents = "\u201c";

  • How can I get the tab key to select text fields only?

    Since upgrading to Firefox 4 on Windows, the tab key functions differently. How do I change it so that it only selects text input fields?

    The answer is:  The bug is in the UI.  Speech recognition was enabled, by default it uses the bare escape key as a "mic on" indicator, and it does not leave any trace in the keybord configuration.  So that is the bug.  It needs to leave a trace there, a la: "X Listen-for-voice-command  ^" under Mission Control.

  • When i use trackpad to select text, i must hit keyboard keys twice

    i've been using my trackpad successfully for months, but since the last update i've found that when using it to select text by swiping with three fingers, i must hit keyboard keys TWICE to successfully edit text. For example, if i swipe across a sentence and then hit the "delete" button, NOTHING. i have to hit "delete" twice. same with command c, command x, and so on. this is creating real havoc, and happens in nearly all of my applications, including word, dreamweaver, and indesign.
    however, this does NOT happen when i select text by tapping.
    also, it does NOT happen here in chrome.
    i've reset my pram/nvram, confirmed that nothing is checked in my accessibility settings, and reconnected the trackpad. please help...i was just growing to love that dang trackpad.
    thanks...annette

    Any or all of the following third-party system modifications may be contributing to your problem:
    SX-Virtual Link
    Soundflower
    If the panic is recurrent, I suggest you uninstall them, one at a time, according to the developers' instructions, to see whether you can identify which one is at fault. A conflict between modifications may be involved. Reboot and test after each uninstallation.
    Back up all data before making any changes.

  • Black Bar on Screen with Text (accidental key combo, can't get rid of it)

    In a mad typing dash 2 days ago, I accidentally hit a key combo that placed a black bar in the middle of my screen with the words "Gmail - friday - my email address" (I was in Gmail composing a message at the time). It's visible at all times, using all apps, and on my desktop. I've tried rebooting, quitting all apps, checking my system prefs, looking for answers online, all to no avail. I can't click on it, highlight it or drag it to the trash and I'm at a loss...any suggestions? Many thanks!

    Were you able to fix this? I have it too..

  • How to select text from a webpage

    hi. i have firefox for my n900. i would like to know how to select some text from a webpage so i can copy and paste it. thanks for the help. i couldn't it anywhere.

    First tap where you want the selection to start. (It might help to zoom in as far as possible first. You can do this using the volume buttons in the newly-released Firefox 1.1rc1.) Then hold the Shift key while pressing the arrow keys on the N900 keyboard to select text.
    Note: We are aware that this is not a very user-friendly way to select text, and we hope to include a better design in a future version of mobile Firefox.

  • Ctrl-v key combo not working in keydown event in Adobe Air

    I am needing to capture the ctrl-c/ctrl-x/ctrl-v keys in the keydown Javascript event from within Adobe Air.
    I have managed to get the events to fire correctly.
    When I press ctrl, c, x, v, ctrl-c and ctrl-x, I get the correct corresponding keycodes. However, when I press ctrl-v, no event gets triggered.
    Is Air preventing the key presses from reaching this event in the case of ctrl-v?
    Here is the code I am using:
        document.getElementById('main_grid').addEventListener('keydown', keyDownEvent, false);
        keyDownEvent = function(e) {
            alert(e.keyCode);

    I'm surprised you get ctrl-c and ctrl-x. Do they work when you have selected text? What is probably happening is the default handler for the paste event is "swallowing" the keystroke. You could try listening for the paste event and calling the event object's preventDefault() method. (I haven't tried it, though, so I'm not positive that would allow the keystroke to be passed along.) If you are trying to create your own copy/paste functions, you might be better off listening for the copy and paste events themselves, rather than the raw keystrokes.
    Another alternative is to listen for the keystrokes on window.htmlLoader, which should get the keystrokes before they are passed to the HTML engine.

  • Why selecting text and hitting F1 doesn't go to specific help page anymore?

    Hi. Up until a while ago I was able to, while working on some code,  select a particular actionscript component such as a Class, function or  property and hit the F1 key which would immediately bring up Adobe Help  in my internet browser already showing the page relevant to my  selection. For example, if I had selected the word "MovieClip" in my  code and hit F1, the Adobe Help page describing the MovieClip class  would come up, without me having to navigate to it.
    Now (for some weeks actually), it no longer does that. When I hit F1,  Adobe Help comes up in my browser, but opens at a general menu page  regardless of what text I select, which in fact makes selecting text  before hitting F1 redundant anyways.
    Does anyone know anything about this?
    It was so much more convenient before! Now I have to search for what I'm  looking for every time. I'm learning on my own, so I find myself going  to the Help pages quite often. At the end of the day, it sums up to be a  lot of typing and searching and pages to navigate through. Also, it  seems that navigating through the Adobe Help pages is kind of slow which  just makes it even more of a drag.
    I'd appreciate any information on this, or possibly some help in how to get things back to how they were.
    Thanks!

    try to install :
    http://www.adobe.com/support/chc/

  • Scrolling and selecting text with a bluetooth mouse. (Possible bug?)

    I currently have an Apple Keyboard and Magic Mouse hooked up to my Playbook. They work very well, the implementation is incredible. However, I cannot for the life of me figure out how to scroll with the the mouse. It really limits the PB since if I hook it up to my television I cannot scroll unless I have the PB near me. Has anyone gotten this to work or is this something we are hoping to get in a future update? Aslo, is there a way to select text and bring up the copy/paste menu without having to use the touch screen? I can select text by holding shift / arrow keys on the keyboard but am unable to perform any actions without having to use the touchscreen.
    Thanks!

    Hold on there, @jnko -- are you saying you can scroll with the mouse (as in, use the virtual scroll wheel), or are you saying you can use the mouse to click on the document in, say, Word To Go, and drag it to make the screen scroll?  I can only do the latter, and, like you, can't scroll at all in the web browser.  Stinks that this wasn't fixed with the last update...

  • How do you find and replace "within selected text" in a textedit document (version 1.8, mountain lion)

    In the textedit version on Snow leopard it was possible to search and replace within a peice of selected text only i.e. not the entire file. This was a very useful feature because you could select a paragraph and replace all occurences of word1 with word2 within that paragraph only! This feature appears to be missing from the mountain lion version of textedit (version 1.8). Or can anyone tell me how to do it ... ?

    Having 46 people view a post without replying is not unusual. Some people look at a question to see if it's something they'd like to know the answer to, and then come back  when it has eventually been answered.
    I'm not sure if you need to escape forward slashes in Dreamweaver's Find and Replace dialog box, but I normally do because both JavaScript and PHP normally use forward slashes as delimiters to mark the beginning and end of the regex like this:
    var pattern = /[A-Z]{4}/; // JavaScript
    $pattern = '/[A-Z]{4}/';   // PHP
    When a forward slash appears inside the regex, you need to escape it with a backslash to avoid confusion with the closing delimiter.
    As you have worked out, a capturing group is created by wrapping part of the regex in parentheses.
    If you want to match exactly 38 characters, you can use [\S\s]{38}. That includes spaces, newline characters, symbols, everything.
    If you're trying to find everything between two tags, you can do this:
    (<\/tag_name>)([^<]+)
    The closing tag is captured as $1 and everything up to the next opening tag is captured as $2.
    Learning regular expressions is not easy. I don't claim to be an expert, but I enjoy the challenge of trying to solve them. If you're interested in regular expressions, there are several books published by O'Reilly. "Mastering Regular Expressions" is the ultimate authority, but it's a difficult read (not because it's badly written, but because of the complexity of the subject). "Regular Expressions Cookbook" is very good. There's also a new "Introducing Regular Expressions", but I haven't read it.

  • Design View - Can't Select Text, Only Divs

    This is a page I did not build, and I hope I can describe this properly. Here's the published page -
    www.wheeltime.com
    I'm in CS4 and there are two things going on when trying to edit in design view. The first is I can't select text of content. Clicking to select said content, say a line of text or a word, selects and highlights the entire div container and all the content within in one big chunk. Why is DW not letting me select the actual content? This is the first time I've enver encountered this issue. 
    This is the same for all the div ontainers on the page. But another, perhaps related problem, has to do with this content area. In design view, there's a fixed height, so not only can I not select the content, but I can't see it all. It's OK in the browser, expands as it should. I've looked at all the properties anywhere and don't see any height attribute anywhere, especially those that enclose this area of content.
    One this that has be wondering - this content area is warpped in a "main-content" div, with a class applied. But this div has no corresponding entry or properties in the style sheet. I can see where a div can be used that has no specific properies of it's own, but is it OK to not be mentioned at all in the style sheet? And can this affect what's going on in design view editing?
    So, I guess the question is - what is governing this inability to edit in Design view?  Thank you in advance!!

    Have you tried double clicking the content?
    I'm not sure what causes this exactly, but I downloaded your page and ran it in my DWCS4. It did the same thing until I double clicked the content of the divs. That allowed me to select it without issue from that point on.
    It may have something to do with the content being wrapped in <span> tags within each <div>.
    Onto your other question, your <div id="main-container"class="container"> is being affected by the .container class in your style.css file rather than a #main-container id.
    EDIT: HTML id's like <div id="main-content"> serve to identify elements for many purposes, not just css. There is no problem with giving an element an id simply for organizational purposes, though usually they are used as targets for javascripts, css or php scripting purposes.

  • How to catch selected text in JTable Column

    Hi there,
    I am learning JTable. Need help for How to get the selected text from the JTable Column which is set to be editable.
    for example in JTextFiled you have method on getSelectedText(), is there any method for tracking the selected text.
    Thanks in advance
    Minal

    Here's an example of the model I used in my JTable. Not the "getValueAt" method & "getRecordAt" method. You will have to have a Record object - but it only contains the attributes of an inserted record (with appropriate getters & setters). Hope this helps.
    public class FileModel5 extends AbstractTableModel
    public boolean isEditable = false;
    protected static int NUM_COLUMNS = 3;
    // initialize number of rows to start out with ...
    protected static int START_NUM_ROWS = 0;
    protected int nextEmptyRow = 0;
    protected int numRows = 0;
    static final public String file = "File";
    static final public String mailName = "Mail Id";
    static final public String postName = "Post Office Id";
    static final public String columnNames[] = {"File", "Mail Id", "Post Office Id"};
    // List of data
    protected Vector data = null;
    public FileModel5()
    data = new Vector();
    public boolean isCellEditable(int rowIndex, int columnIndex)
    // The 2nd & 3rd column or Value field is editable
    if(isEditable)
    if(columnIndex > 0)
    return true;
    return false;
    * JTable uses this method to determine the default renderer/
    * editor for each cell. If we didn't implement this method,
    * then the last column would contain text ("true"/"false"),
    * rather than a check box.
    public Class getColumnClass(int c)
    return getValueAt(0, c).getClass();
    * Retrieves number of columns
    public synchronized int getColumnCount()
    return NUM_COLUMNS;
    * Get a column name
    public String getColumnName(int col)
    return columnNames[col];
    * Retrieves number of records
    public synchronized int getRowCount()
    if (numRows < START_NUM_ROWS)
    return START_NUM_ROWS;
    else
    return numRows;
    * Returns cell information of a record at location row,column
    public synchronized Object getValueAt(int row, int column)
    try
    FileRecord5 p = (FileRecord5)data.elementAt(row);
    switch (column)
    case 0:
    return (String)p.file;
    case 1:
    return (String)p.mailName;
    case 2:
    return (String)p.postName;
    catch (Exception e)
    return "";
    public void setValueAt(Object aValue, int row, int column)
    FileRecord5 arow = (FileRecord5)data.elementAt(row);
    arow.setElementAt((String)aValue, column);
    fireTableCellUpdated(row, column);
    * Returns information of an entire record at location row
    public synchronized FileRecord5 getRecordAt(int row) throws Exception
    try
    return (FileRecord5)data.elementAt(row);
    catch (Exception e)
    throw new Exception("Record not found");
    * Used to add or update a record
    * @param tableRecord
    public synchronized void updateRecord(FileRecord5 tableRecord)
    String file = tableRecord.file;
    FileRecord5 p = null;
    int index = -1;
    boolean found = false;
    boolean addedRow = false;
    int i = 0;
    while (!found && (i < nextEmptyRow))
    p = (FileRecord5)data.elementAt(i);
    if (p.file.equals(file))
    found = true;
    index = i;
    } else
    i++;
    if (found)
    { //update
    data.setElementAt(tableRecord, index);
    else
    if (numRows <= nextEmptyRow)
    //add a row
    numRows++;
    addedRow = true;
    index = nextEmptyRow;
    data.addElement(tableRecord);
    //Notify listeners that the data changed.
    if (addedRow)
    nextEmptyRow++;
    fireTableRowsInserted(index, index);
    else
    fireTableRowsUpdated(index, index);
    * Used to delete a record
    public synchronized void deleteRecord(String file)
    FileRecord5 p = null;
    int index = -1;
    boolean found = false;
    int i = 0;
    while (!found && (i < nextEmptyRow))
    p = (FileRecord5)data.elementAt(i);
    if (p.file.equals(file))
    found = true;
    index = i;
    } else
    i++;
    if (found)
    data.removeElementAt(i);
    nextEmptyRow--;
    numRows--;
    fireTableRowsDeleted(START_NUM_ROWS, numRows);
    * Clears all records
    public synchronized void clear()
    int oldNumRows = numRows;
    numRows = START_NUM_ROWS;
    data.removeAllElements();
    nextEmptyRow = 0;
    if (oldNumRows > START_NUM_ROWS)
    fireTableRowsDeleted(START_NUM_ROWS, oldNumRows - 1);
    fireTableRowsUpdated(0, START_NUM_ROWS - 1);
    * Loads the values into the combo box within the table for mail id
    public void setUpMailColumn(JTable mapTable, ArrayList mailList)
    TableColumn col = mapTable.getColumnModel().getColumn(1);
    javax.swing.JComboBox comboMail = new javax.swing.JComboBox();
    int s = mailList.size();
    for(int i=0; i<s; i++)
    comboMail.addItem(mailList.get(i));
    col.setCellEditor(new DefaultCellEditor(comboMail));
    //Set up tool tips.
    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for mail Id list");
    col.setCellRenderer(renderer);
    //Set up tool tip for the mailName column header.
    TableCellRenderer headerRenderer = col.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer)
    ((DefaultTableCellRenderer)headerRenderer).setToolTipText(
    "Click the Mail Id to see a list of choices");
    * Loads the values into the combo box within the table for post office id
    public void setUpPostColumn(JTable mapTable, ArrayList postList)
    TableColumn col = mapTable.getColumnModel().getColumn(2);
    javax.swing.JComboBox combo = new javax.swing.JComboBox();
    int s = postList.size();
    for(int i=0; i<s; i++)
    combo.addItem(postList.get(i));
    col.setCellEditor(new DefaultCellEditor(combo));
    //Set up tool tips.
    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
    renderer.setToolTipText("Click for post office Id list");
    col.setCellRenderer(renderer);
    //Set up tool tip for the mailName column header.
    TableCellRenderer headerRenderer = col.getHeaderRenderer();
    if (headerRenderer instanceof DefaultTableCellRenderer)
    ((DefaultTableCellRenderer)headerRenderer).setToolTipText(
    "Click the Post Office Id to see a list of choices");
    }

  • MAGIC TRACKPAD how to select text?  There is no "mouse button" to hold down

    The magic trackpad doesn't seem to have a "button" that can be held down while dragging (in order to select text etc).
    I want to select text & then paste it into an input box (for example, Search).
    Apple needs to add virtual Function Keys to the top of the MT, allowing you to turn on scripted functions related to selecting, dragging, copying, pasting etc.

    Press down on the trackpad until it clicks.
    Nope, the magic trackpad doesn't do this. That's the problem.
    Huh, how odd. Mine does. Did Apple change the Magic Trackpad since I bought mine? Or maybe yours is defective?
    The press-down-till-click is also used in either the left or right bottom corner to activate a right-click. Chosen in the trackpad preferences. Though I've gotten used to the two-finger tap for that instead.
    Ted

  • Can't select text when export in HTML and Images

    I am entirely new to Fireworks and I can't find anyone to teach me Adobe Fireworks. I followed some youtube tutorials but most of them are vague. I am still figuring the way to export from Fireworks to Dreamweaver, without affecting its contents like bitmap images and the text. When I export in HTML and Images format and opened the htm file, I can't select the text I've inserted in Fireworks. Can anyone tell me what I should do?

    I cant scroll below or above viewable section of text in any of my Macbooks, iMac, Mac Mini. Never have been able to, never could, except by pressing the arrow keys whilst selecting, to move up or down.
    Its stupid
    I dont have flash installed (never will do since my first virus of video ad sound running in background from Cnet was downloaded and kept returning until i deinstalled flash).
    I believe that this is a universal issue because none of my Macs can scroll out of screen when selecting text, which as a webmaster and developer, is a pain in the butt
    My issue is not in word documents, its in everything

Maybe you are looking for