<p>Hi elextr.<br>
So, my case I had an index.html file and "Save as" main.js.<br>
Then there was no syntax highlight, and I realized the filetype for Geany was the old one.<br>
Then I had to reopen the file (Document->Set Filetype->select type is also an option)</p>
<p>So it is much better if this could happen automatically, and it is probably a simple change.</p>
<p>Thank you.</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/2124#issuecomment-483069465">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ5OQ2rkZ4t36ghVscC6KUy-ijG54ks5vg78_gaJpZM4cu6CM">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABDrJ1TTkOkYTSwAR3AMqIyAahSTLEKEks5vg78_gaJpZM4cu6CM.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":"@tivrfoa in #2124: Hi elextr.\r\nSo, my case I had an index.html file and \"Save as\" main.js.\r\nThen there was no syntax highlight, and I realized the filetype for Geany was the old one.\r\nThen I had to reopen the file (Document-\u003eSet Filetype-\u003eselect type is also an option)\r\n\r\nSo it is much better if this could happen automatically, and it is probably a simple change.\r\n\r\nThank you."}],"action":{"name":"View Issue","url":"https://github.com/geany/geany/issues/2124#issuecomment-483069465"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2124#issuecomment-483069465",
"url": "https://github.com/geany/geany/issues/2124#issuecomment-483069465",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>