using META tag to recognize html file in custom html file type

Good morning,

I'm probably missing something, so I'm asking for help:

I created a custom html file type and I would like the file type to kick only if a specific custom <meta> tag is present in the html.

Specifically, as the example below explains, I'd like to detect the "<meta name="generator".." tag.

I write a simple example of the code:

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>MY TITLE</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="generator" content="AlphaHtmlEditor1_0">
    <meta charset="UTF-8">
    ...
</head>

I went to the html file type "Detection" panel but seems there's not a way to intercept html files based on meta tags.

Also help documentation in this panel is a little too basic IMHO.

While I can change all the files extension to something arbitrary and use just file extension, that's a non-elegant solution that adds a step into processing work-flow.

Is there a solution? 

thank you very much

-- 

Enrico

emoji