Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

LIke

This is a paragraph.

IF i select this text then press any keypoard shortcut.

it should be chnage to this

<p>This is a paragraph.</p>

I need auto hot key script and will add more tag. i need a editable script for <p> then i will add for other tag as per requirement.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

You could use a similar approach that I used in your other question, use the clipboard buffer:

!p::
ClipSaved := ClipboardAll
Send ^c
clipwait
Clipboard = <p>%Clipboard%</p>
Send ^v
Clipboard := ClipSaved
ClipSaved=
return

give it a test run for me!

share|improve this answer
    
great help thanks –  metal gear solid Jan 20 '10 at 17:04
    
+1: An answer more than four years old and still helpful to me today. –  Jura25 Mar 11 at 8:41

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.