Page 1 of 1

finding HTML-linking text?

Posted: 2009-02-24 13:32:45
by ncdobson
I've copied a bunch of text from a website & copied it into a Nisus doc. Is there an easy way (i.e. not involving writing a macro) to find all of the text that links to URLs so that I can remove the formatting? When I highlight a linked word & click "select all" from the bottom of my doc, it doesn't distinguish the underlined, HTML-linking text from plain text. It selects all of the words in the doc. Suggestions?

TIA,

Nick D.

Re: finding HTML-linking text?

Posted: 2009-02-24 15:18:07
by martin
Hi Nick- it won't be possible to do what you want without a macro. That said, I'm not sure why you wouldn't want to use one. Here's a macro that simply selects all hyperlinked text in your document:

Code: Select all

$doc = Document.active
$linkSels = Array.new

Set Selection 1, 0
While Select Next Link
	$linkSels.appendValue($doc.textSelection)
End

$doc.setSelections($linkSels)
You can save it as a macro file and then use it just like any other single menu item.

Another macro that removes all hyperlinks from the document:

Code: Select all

Set Selection 1, 0
While Select Next Link
	Contextual Menu "Remove Link"
End

Re: finding HTML-linking text?

Posted: 2009-03-03 10:40:53
by ncdobson
Thanks a lot. That's exactly what I need. I'm a little disappointed that PowerFinder won't do this.

Nick D.