Searching in Text File for Text - does not find text

Started by Arthur, June 28, 2009, 05:53:26 AM

Previous topic - Next topic

Arthur

May not be a bug, but I was surprised to not to be able to find some text in a .txt file, I used the option as in the image accompanying the post.
If I use the option "Everywhere" I do find it.

What is the logic behind the "search only in" functionality?

alex

Hello Arthur,

Search Only In does filtering of the results by text "style". For example you can search only inside strings or comments, or in code only.
Here are:

  • Code - everything that is not text (all styles which do not have attribute text defined to 1 in xml ). Normally everything except of strings, comments and documentation.
  • Text - everything that is text. So comments and strings.
  • Normal - everything that is outside of any style. Not a string, comment, todo, number or keyword etc.
  • Number or String - everything that is inside Number or String style.
  • Formatting Tags - everything that is inside Formatting tag style. Special style used for defining regions (for  example) in languages that do not support this. Something like special comment style.

So, in your case because search term was not found inside comments or strings you get no results.

Best regards,
Alex.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]

Arthur

Hmm, well, but
there is text and there is string there in the drop-down.
I am confused.

alex

Text is strings + comments + documentation style (where it is defined).
And strings is only strings.
HippoEDIT team
[url="http://www.hippoedit.com/"]http://www.hippoedit.com/[/url]