@malaire @codebrainz 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

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

In order to make this behavior automatic I had to edit the 
`/usr/share/geany/filetype_extensions.conf` and append `*.elm;` to the line 
`Haskell=*.hs;*.lhs;*.hs-boot;*.lhs-boot;`. 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

Apparently one could fine tune the syntax highlighter for Elm by editing the 
file "/usr/share/geany/filetypes.haskell"

>From here the more demanding individual could create an Elm synax highlighter 
>by inferring the config files structure

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1981#issuecomment-552048782

Reply via email to