Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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 '14 at 8:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .