Hello,
I've tried to do a simple macro :
wrap the selected text with "<a href="selText">selText</a> if selText begin by "http" or
wrap the selected text with "<a href="http://selText">selText</a> if not.
My macro always add "http://".
Do you see the problem ?
thanks
I've tried to do a simple macro :
wrap the selected text with "<a href="selText">selText</a> if selText begin by "http" or
wrap the selected text with "<a href="http://selText">selText</a> if not.
My macro always add "http://".
Do you see the problem ?
Code: Select all
InsertMode
ColumnModeOff
HexOff
UnixReOff
Clipboard 9
Find Select "http"
IfFound
Cut
"<a href=""
Paste
"">"
Paste
"</a>"
Clipboard 0
Else
Cut
"<a href="http://"
Paste
"">"
Paste
"</a>"
Clipboard 0
EndIf