<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=19587485" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/toxpal">@toxpal</a> somehow missed your response, filetype detections have nothing to do with Scintilla, the app tells it which highlighting to use.</p>
<p>Note that Geany does in fact detect the prefixes you suggested:</p>
<pre><code><!DOCTYPE html
<html
<?xml
<?php
</code></pre>
<p>and a whole bunch of <code>#!</code> names.  It also allows the filetype to be extracted by regular expression (see <code>various</code> prefs).</p>
<p>The order is the list above, then regex then extension.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/1899#issuecomment-465095249">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ-a6cPU_dFM3NX79jS1hCfbIxqyLks5vO-EPgaJpZM4VWTxu">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ4JyPqqlJK3vwkSxu9xjSA1ULCHPks5vO-EPgaJpZM4VWTxu.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany","title":"geany/geany","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany"}},"updates":{"snippets":[{"icon":"PERSON","message":"@elextr in #1899: @toxpal somehow missed your response, filetype detections have nothing to do with Scintilla, the app tells it which highlighting to use.\r\n\r\nNote that Geany does in fact detect the prefixes you suggested:\r\n\r\n```\r\n\u003c!DOCTYPE html\r\n\u003chtml\r\n\u003c?xml\r\n\u003c?php\r\n```\r\nand a whole bunch of `#!` names.  It also allows the filetype to be extracted by regular expression (see `various` prefs).\r\n\r\nThe order is the list above, then regex then extension."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1899#issuecomment-465095249"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/1899#issuecomment-465095249",
"url": "https://github.com/geany/geany/issues/1899#issuecomment-465095249",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>