Hi all,
I apologize if this has been asked or answered before, but a quick search didn't turn up the answer. I'm still using TextPad 4.7.3, and was wondering if there is a way to write a macro that will add a specific open and close tag to the selected text.
Say I have the words "So the butler did it!" selected, is there a way for a macro to add (for example) <i> before the selection and </i> after it?
Add open/close HTML tag to selection
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
no macro required. There are 'clip libraries' for that.
Some of them are already installed (I believe HTML is, but don't have Textpad on the PC I'm writing this from), more you can download from http://www.textpad.com/add-ons/cliplibs.html
There are two types of clips. Such that insert text where the cursor is or replace text selected and such that insert text before and after a selection.
See also Textpad online help.
woho
Some of them are already installed (I believe HTML is, but don't have Textpad on the PC I'm writing this from), more you can download from http://www.textpad.com/add-ons/cliplibs.html
There are two types of clips. Such that insert text where the cursor is or replace text selected and such that insert text before and after a selection.
See also Textpad online help.
woho
-
- Posts: 3
- Joined: Thu Nov 22, 2012 5:47 am
Wow, I'm amazed I've used TextPad this long and wasn't aware of this! This almost does what I want. Now the only thing is, can I trigger a clip using a key instead of the mouse? I tried recording a macro to trigger the clip, but that didn't seem to work, and I can't find a way to associate a keystroke with a particular clip.