Search for content inside a javascript script

General discussion related to "Everything".
Post Reply
Fleet
Posts: 7
Joined: Wed Aug 25, 2021 10:52 am

Search for content inside a javascript script

Post by Fleet »

I'm new to this, so pardon if I'm asking a trivial question (or posted it in the wrong place...)

Using the Advanced Search dialog box or just

Code: Select all

*.html content:https
, I can search for html files containing the string "https" for example; but if the string appears only inside a javascript script (i.e., something like

Code: Select all

<script src="https://examaple.com/some_script.js"></script>
the file does not show up in the search results.

If I search for that file by file name, the javascript code doesn't show up in the Preview window.

Is there some setting that can be modified to allow this type of search?
void
Developer
Posts: 16753
Joined: Fri Oct 16, 2009 11:31 pm

Re: Search for content inside a javascript script

Post by void »

The default system iFilter does not search text in html tags.

Provided your html files are encoded with UTF-8, please try the following search:

utf8content:https

This issue will be addressed in the next major Everything update.
horst.epp
Posts: 1447
Joined: Fri Apr 04, 2014 3:24 pm

Re: Search for content inside a javascript script

Post by horst.epp »

For previewing js files you need a preview handler which supports this.
By default there is none.
I have installed the following which makes syntax highlighting for many formats:
https://github.com/RRUZ/delphi-preview-handler
Works fine in all file managers and Everything.

______________________________________________________
Windows 10 Home x64 Version 21H2 (OS Build 19044.1200)
Everything 1.5.0.1272a (x64)
Fleet
Posts: 7
Joined: Wed Aug 25, 2021 10:52 am

Re: Search for content inside a javascript script

Post by Fleet »

Got it! Thanks.
Post Reply