URL list (plain text) to list of hyperlinks
Posted: 2013-07-25 20:28:49
I am completely new to Nisus Pro macros and could use some pointers on this...
If I have a list of links, one to a line, in a plain text format, I'd like to paste this into a nisus document and run a macro that will run through the selected lines and add hyperlinks to each one, where the hyperlink is the url as written in the plain text.
So, a static input of:
http://domain.com
http://website.com
http://website.com/somepage
Would become a list of active links in the nisus document, so that if I click on the displayed text, the target link will open in the browser.
In pseudo code:
If selection
For each line in selection
create hyperlink from visible text of current line
Add hyperlink to current line
EndFor
EndIf
I need to create that macro, but really not clear on how to get started.
Pointers appreciated.
Cheers
Rob
If I have a list of links, one to a line, in a plain text format, I'd like to paste this into a nisus document and run a macro that will run through the selected lines and add hyperlinks to each one, where the hyperlink is the url as written in the plain text.
So, a static input of:
http://domain.com
http://website.com
http://website.com/somepage
Would become a list of active links in the nisus document, so that if I click on the displayed text, the target link will open in the browser.
In pseudo code:
If selection
For each line in selection
create hyperlink from visible text of current line
Add hyperlink to current line
EndFor
EndIf
I need to create that macro, but really not clear on how to get started.
Pointers appreciated.
Cheers
Rob