handling of html sourcecode

Since I happen to have a lot of HTML files in my database and also many files on markup languages and programming, I get very many useless search results when looking for specific terms such as "doctype".
I also have very many LaTeX files that include markup like "\begin{enumerate}". It would be great to find a way to exluce these terms from an actual search result.
Maybe DT could look up the info in the file header (a valid TeX document identifies itself just like any other markup file I know of) and filter the search result by some criteria that allows the user only to view search results that are NOT part of the sourcecode of a document?


This shouldn’t happen if it’s valid HTML. Could you send us some examples? In addition, TeX support might be added in a future release/edition, not decided yet.