<blockquote>
<p>Note that Geany does in fact detect the prefixes you suggested:</p>
</blockquote>
<p>Yes, but it only works for existing files. If file is not saved, Geany doesn't detect any of prefixes, and the only way to get syntax highlighting to work is to:</p>
<ol>
<li>Manually save file;</li>
<li>Manually set file type using your previous suggestion (<em>menu->Document->Set Filetype->Scripting Languages->PHP Source File</em>)</li>
</ol>
<p>See what I mean - <a href="https://i.postimg.cc/MHh2RNhQ/geany.png" rel="nofollow">https://i.postimg.cc/MHh2RNhQ/geany.png</a></p>
<p>As you see, file is not saved yet, so Geany doesn't detect PHP filetype for some reason.</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-465143833">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ1rzd3pHRP4FspOrP1vrKhnVbdXcks5vPAbFgaJpZM4VWTxu">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ9ToMlPDoqw2SCN-fW6AtMVGVm9Gks5vPAbFgaJpZM4VWTxu.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":"@toxpal in #1899: \u003e Note that Geany does in fact detect the prefixes you suggested:\r\n\r\nYes, but it only works for existing files. If file is not saved, Geany doesn't detect any of prefixes, and the only way to get syntax highlighting to work is to:\r\n\r\n1. Manually save file;\r\n2. Manually set file type using your previous suggestion (_menu-\u003eDocument-\u003eSet Filetype-\u003eScripting Languages-\u003ePHP Source File_)\r\n\r\nSee what I mean - https://i.postimg.cc/MHh2RNhQ/geany.png\r\n\r\nAs you see, file is not saved yet, so Geany doesn't detect PHP filetype for some reason. "}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/1899#issuecomment-465143833"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/1899#issuecomment-465143833",
"url": "https://github.com/geany/geany/issues/1899#issuecomment-465143833",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>