Searching text within comments

Everything related to our flagship word processor.
Post Reply
js
Posts: 260
Joined: 2007-04-12 14:59:36

Searching text within comments

Post by js »

Nisus Find Menu seems not to include a facility for searching text inside comments. Is there any other possibility to achieve that? F.e. Is there a a file format that makes comments appear together with ordinary text, which then can be searched?
User avatar
martin
Official Nisus Person
Posts: 5230
Joined: 2002-07-11 17:14:10
Location: San Diego, CA
Contact:

Re: Searching text within comments

Post by martin »

Find Next/Previous appears to skip comments, which seems like a bug to me- I'll look into it. In the meantime you might be able to use Find All, which does find in comments without issue.
js
Posts: 260
Joined: 2007-04-12 14:59:36

Re: Searching text within comments

Post by js »

Martin, thanks for your information.

The menu “Go to Next Comment” selects the next comment, which can then be copied. I wonder if you could help to write a macro that copies one comment after the other and adds it (after an empty line) to a container which in the end into a new document.
I don’t know how to stop the process at the end of the doc.
Kino
Posts: 400
Joined: 2008-05-17 04:02:32

Re: Searching text within comments

Post by Kino »

js wrote:I wonder if you could help to write a macro that copies one comment after the other and adds it (after an empty line) to a container which in the end into a new document.
He has already posted such a macro.
http://www.nisus.com/forum/viewtopic.php?p=13316#p13316
Or do you need something different?
js
Posts: 260
Joined: 2007-04-12 14:59:36

Re: Searching text within comments

Post by js »

No, that's perfect, I had not noticed this macro.

Of course there is this quirk: that once you have your list of comments you can't jump to the text your comment is attached to, because Find does not work for the comments.
But as Martin explained: "Find all", strangely, does. So the workaround to find back to your comment within the text is looking for a unique string and then do a Find All. It's somewhat weird but I got what I needed.

js
Post Reply