<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=6322120" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/malaire">@malaire</a> <a class="user-mention" data-hovercard-type="user" data-hovercard-url="/hovercards?user_id=181177" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/codebrainz">@codebrainz</a> I agree it would be very nice to have Elm syntax highlighting so I started thinking about how to create it based on Sublime's</p>
<p>Luckly Elm is very similar to Haskell so if you change your Elm filetype to Haskell (Document > Set Filetype > Programming Languages > Haskell) the result will be slightly satisfactory</p>
<p>In order to make this behavior automatic I had to edit the <code>/usr/share/geany/filetype_extensions.conf</code> and append <code>*.elm;</code> to the line <code>Haskell=*.hs;*.lhs;*.hs-boot;*.lhs-boot;</code>. Its important to end the line with the semicolon. After that I closed and reopened Geany. When I opened a new Elm file the Haskell highlight syntax was applied</p>
<p>Apparently one could fine tune the syntax highlighter for Elm by editing the file "/usr/share/geany/filetypes.haskell"</p>
<p>From here the more demanding individual could create an Elm synax highlighter by inferring the config files structure</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/1981?email_source=notifications&email_token=AAIOWJYMBRS7LKXL7GE7IPTQSYEJZA5CNFSM4F6ILQOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDTZRDQ#issuecomment-552048782">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ4L7DG64E4GDSZUZK3QSYEJZANCNFSM4F6ILQOA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJYLZB7KHM7CUAJ2SHDQSYEJZA5CNFSM4F6ILQOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDTZRDQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/1981?email_source=notifications\u0026email_token=AAIOWJYMBRS7LKXL7GE7IPTQSYEJZA5CNFSM4F6ILQOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDTZRDQ#issuecomment-552048782",
"url": "https://github.com/geany/geany/issues/1981?email_source=notifications\u0026email_token=AAIOWJYMBRS7LKXL7GE7IPTQSYEJZA5CNFSM4F6ILQOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEDTZRDQ#issuecomment-552048782",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>