Skip to content

Instantly share code, notes, and snippets.

@Shilo
Created February 6, 2019 11:59
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shilo/4100c7abffc2ed9675c64bcfba31ac5b to your computer and use it in GitHub Desktop.
Save Shilo/4100c7abffc2ed9675c64bcfba31ac5b to your computer and use it in GitHub Desktop.
AutoHotkey script to replace selected text.
^space::
oCB := ClipboardAll
Clipboard =
Send ^c
ClipWait,1
beforeText := "BEFORE_TEXT_HERE"
afterText := "AFTER_TEXT_HERE"
Clipboard := beforeText . Clipboard . afterText
Send ^v
Clipboard := oCB
Return
@erikaemma
Copy link

erikaemma commented Jan 30, 2024

How to replace the selected text with html tag? eg. replace the selected text to <ruby>私<rt></rt></ruby> ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment