[Github-comments] [geany/geany] Elm syntax highlighting (#1981)

dptole notifications at xxxxx
Sat Nov 9 01:06:36 UTC 2019


@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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20191108/241a4b4e/attachment-0001.html>


More information about the Github-comments mailing list