The Nautilus file manager searches the content of at least text and HTML files, listing hits in the results alongside filename matches. I don’t see a related setting in the options:
I am not sure you can do that. I guess (not sure) that Nautilus relies on Tracker indexes and, as far as I know, you can only prevent or allow to search in a specific directory, not by file type.