Hi,
I currently use Sublime Text 3 as my text editor and the app has a great keyboard shortcut that can wrap any selected text with default <p></p> tags. Immediately typing any other tag like h1 will auto fill the beginning and closing tags. This is more useful in a lot of cases than using the html phrase file.
I haven't been able to see how to do this in Fastkeys. Can you point me in the right direction? Thank you.
How to wrap html tags around selected text?
This example will wrap the selected text with the tag. Create a shortcut, Type: Command.
Code: Select all
Clipboard:=""
Send, ^c
ClipWait
InputBox, MyTag,, Tag:,, 150, 120,,,,, p
if ErrorLevel or not MyTag
return
SendInput, <%MyTag%>%Clipboard%</%MyTag%>
return
Wow! Thanks very much! I never would have figured that out. Cheers.
Even better:
Type: Send
where SELECT_Tag is a Selection form macro with a list of tag selections.
Type: Send
Code: Select all
<%SELECT_Tag%>%Clipboard%</%SELECT_Tag%>