AutoHotkey
The example below makes  replace selected text in an editor with a quoted version of that text. It illustrates the use of functions, arguments and default argument values. ^+q::QuoteSelection()  ; Ctrl+Shift+Q