Why Eliom has it's own file name extensions - *.eliom?

Why Eliom has it’s own file name extensions - *.eliom? How can I highlight OCaml code from Eliom app in MS Code?

1 Like

That’s for historical reason, but perhaps it does not make a lot of sense anymore indeed.
We should consider switching to .ml when we switch to PPX for pgocaml …

It is easy to configure emacs for handling eliom files, for example:
(setq auto-mode-alist (cons '("\\.eliom\\w?" . tuareg-mode) auto-mode-alist))

I guess it is easy to do the same with MS Code (but I have no idea).

1 Like

IIRC in VSCode, you can add this to your settings:

"files.associations": {
    "*.eliom": "ocaml"
}
2 Likes

I disagree. :smiley:

Eliom files have fundamentally different build rules than normal ocaml files and the typing is also a bit different. I don’t believe it’s a good idea to hide that distinction from the user.

3 Likes

I’m newbie in Eliom. Could you please provide some examples of different typing and different build rules?

2 Likes