Page 1 of 1
Searching text within comments
Posted: 2008-06-29 22:09:40
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?
Re: Searching text within comments
Posted: 2008-07-02 12:37:53
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.
Re: Searching text within comments
Posted: 2008-07-12 08:09:27
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.
Re: Searching text within comments
Posted: 2008-07-12 19:18:31
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?
Re: Searching text within comments
Posted: 2008-07-13 04:33:56
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