Searching text within comments
Searching text within comments
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?
- martin
- Official Nisus Person
- Posts: 5230
- Joined: 2002-07-11 17:14:10
- Location: San Diego, CA
- Contact:
Re: Searching text within comments
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
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.
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
He has already posted such a macro.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.
http://www.nisus.com/forum/viewtopic.php?p=13316#p13316
Or do you need something different?
Re: Searching text within comments
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
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