Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Here is one written in Autohotkey:</p> <pre><code>#NoEnv SetWorkingDir %A_ScriptDir% SendMode Input #InstallKeybdHook #UseHook On (:: if GetKeyState("ScrollLock","T") { sel := GetSelection(1) if sel PasteText("(" sel ")") else Send ( sel := "" } else Send ( Return ":: if GetKeyState("ScrollLock","T") { sel := GetSelection(1) if sel PasteText("""" sel """") else Send " sel := "" } else Send " Return ':: if GetKeyState("ScrollLock","T") { sel := GetSelection(1) if sel PasteText("'" sel "'") else Send ' sel := "" } else Send ' Return {:: if GetKeyState("ScrollLock","T") { sel := GetSelection(1) if sel PasteText("{" sel "}") else Send {{}} sel := "" } else SendRaw { Return [:: if GetKeyState("ScrollLock","T") { sel := GetSelection(1) if sel PasteText("[" sel "]") else Send [ sel := "" } else Send [ Return &lt;:: if GetKeyState("ScrollLock","T") { sel := GetSelection(1) if sel PasteText("&lt;" sel "&gt;") else Send &lt; sel := "" } else Send &lt; Return GetSelection(wait = "") { ClipBack := ClipboardAll Clipboard := "" Send ^c if wait ClipWait 0.05 Selection := Clipboard Clipboard := ClipBack Return Selection } </code></pre> <p>After installing Autohotkey, save this code to a text file, rename the extension to .ahk and run it. It requires the Scroll Lock to be turned on for the code to work.</p> <p>This code is modified from <a href="http://www.autohotkey.net/~Vifon/" rel="nofollow">http://www.autohotkey.net/~Vifon/</a> to:</p> <ol> <li>Include ' and &lt;</li> <li>Write ', ", &lt;, {, [, ( instead of '', "", &lt;>, {}, [], () when no text is selected.</li> </ol>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload