An efficient, intuitive and cross-platform web Ocaml IDE
The IDE is hosted here but you can host a your own version by simply copy files from src
directory on your host
The editor is made of 4 parts :
- 1 Controls : with these button you can add, execute, save and load code in the editor and access to settings
- 2 Tabs : This is where you can switch between multiple files
- 3 Editor : You can type code here and execute with ctrl+enter
- 4 Output & Console : This the output of ocaml, you can also type command here
You can choose the theme in the settings in the top right corner If you have any suggestion for theme, open an issue :)
Betterocaml is made with :
- js_of_ocaml : compile ocaml to js
- Materialize : CSS ans js framework
- Codemirror : js code editor
-
If you visit the editor webpage using your favorite browser, and if it works fine, you can add the link to your ⭐ "favorites", and then later on, if you open the direct link, it should work and load back BetterOCaml... even if your browser is offline!
-
This can only work if you don't clean-up or delete the cache of your browser, but it should work even if you turn-off and turn-on again your laptop!
-
If you want a nicer user experience, @Naereen recommends trying WebCatalog, a multi-platform desktop app (for *NIX, Windows and Mac OS), and you can then use it to "install" the BetterOCaml editor, along with its integrated OCaml interpreter (of course), as a "native" desktop app. It then appears in the menu of your system, and it works offline! See this 1:30min tutorial in video
- It should also work, but the support could be improved (or the website could be bundled as a iOS/Android app!).
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.