FoxTrot Search Forum
FoxTrot Search for macOS Forum

Home » Public Forums » FoxTrot Search User Forum » Searching html page source
Re: Searching html page source [message #682 is a reply to message #681] Sat, 03 February 2018 16:27 Go to previous messageGo to previous message
FoxTrot Engineering
Messages: 404
Registered: April 2020
Senior Member
khw77 wrote:

> Hi - is there an option for searching an html file as text rather than in
> its rendered form?

No.

However, there is a hidden preference that allows *indexing* html in raw text form instead of rendered form. This implies that you won't be able to search rendered html text anymore. And this is a global option (and not a per index one).

To enable it, quit FoxTrot, copy and paste the two following lines to a Terminal.app window, then relaunch FoxTrot, and rebuild your index.

defaults write com.ctmdev.foxtrot Aliases -array-add \
"{type='html'; as='txt';}"

To reset the default behavior, copy and paste this command, and rebuild your index:

defaults delete com.ctmdev.FoxTrot Aliases


Jérôme - CTM Engineering


------------------------------------------------------------ ---------
"I searched for words inside text documents and was pleasantly surprised
when those words were highlighted in the respective text, if viewed in
the preview drawer."
FoxTrot Personal Search review on www.softpedia.com

Download a demo version from www.foxtrot.ch
------------------------------------------------------------ ---------


Jérôme - FoxTrot Engineering
 
Read Message
Read Message
Read Message
Previous Topic: More control on how modified files are updated
Next Topic: No search window
Goto Forum:
  


Current Time: Fri Oct 18 06:43:02 GMT+2 2024