finding HTML-linking text?

Everything related to our flagship word processor.
Post Reply
ncdobson
Posts: 25
Joined: 2004-09-17 12:20:27

finding HTML-linking text?

Post 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.

User avatar
martin
Official Nisus Person
Posts: 4926
Joined: 2002-07-11 17:14:10
Location: San Diego, CA
Contact:

Re: finding HTML-linking text?

Post 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

ncdobson
Posts: 25
Joined: 2004-09-17 12:20:27

Re: finding HTML-linking text?

Post by ncdobson »

Thanks a lot. That's exactly what I need. I'm a little disappointed that PowerFinder won't do this.

Nick D.

Post Reply