Author Topic: Searching in Text File for Text - does not find text  (Read 2243 times)

Offline Arthur

  • Registered User
  • Hero Member
  • *
  • Posts: 653
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Searching in Text File for Text - does not find text
« on: June 28, 2009, 04:53:26 am »
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?

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2184
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Searching in Text File for Text - does not find text
« Reply #1 on: June 29, 2009, 12:13:56 am »
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.

Offline Arthur

  • Registered User
  • Hero Member
  • *
  • Posts: 653
  • Karma: +1/-0
  • He who is ashamed of asking is afraid of learning.
    • View Profile
    • My Blog
Re: Searching in Text File for Text - does not find text
« Reply #2 on: June 29, 2009, 04:34:17 am »
Hmm, well, but
there is text and there is string there in the drop-down.
I am confused.

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2184
  • Karma: +37/-3
    • View Profile
    • HippoEDIT
Re: Searching in Text File for Text - does not find text
« Reply #3 on: June 29, 2009, 08:34:29 am »
Text is strings + comments + documentation style (where it is defined).
And strings is only strings.

 

Related Topics

  Subject / Started by Replies Last post
3 Replies
2087 Views
Last post February 19, 2009, 10:02:59 pm
by alex
3 Replies
2700 Views
Last post March 04, 2009, 05:24:13 pm
by alex
3 Replies
2488 Views
Last post March 27, 2009, 05:31:41 pm
by alex
3 Replies
2052 Views
Last post April 20, 2009, 08:28:28 pm
by alex
2 Replies
2325 Views
Last post March 23, 2012, 03:30:00 pm
by alex