Best Ocaml Text Editor For Mac

One of the biggest advantages of Bracket is that it can be used on Windows, Linux and Mac OS. It is probably the best free text editor available on the market. Notepad is probably the most popular free text editor for programmers.

Rocky sand studio. ‎Download apps by Rocky Sand Studio Ltd., including Wake Up Time - Alarm Clock, Mail for Gmail, Open Any File, and many more. Rocky Sand Studio is passionate to create amazing apps for Mac. We've made several award winning utilities, popular news readers, desktop social apps. 20M app downloads, 800K daily users.

OCaml-Top is designed for beginners andstudents, and specially tailored for exercises, practicals and simpleprojects

Features

Syntax coloring
Automatic, state-of-the-art code indentation

Naturally avoids most beginner's syntactic mistakes

Intuitive code execution

Snow leopard quicktime. 'Run' button runs just what you would expect: the expression under cursor, and what is above if needed

Automatic type display

Put your cursor on the name of a standard library function, and the type shows up in the status bar. Non-intrusive, but here just when you need it.

Fully compatible with Microsoft Windows XP, Vista, 7 and 8, OSX and Linux.

Documentation

Installation

On Linux or OSX, we recommend you use the OPAM package manager:

First install opam and some gtk dependancies. For example, with Ubuntu:

Then you need to install OCaml:

Finally install ocaml-top

On Microsoft Windows, download and run our binaryinstaller. You will also need a working installation of OCaml itself,for which werecommend theinstaller by Jonathan Protzenko. You need no extra options besides OCamlitself.

Usage

The left pane is the code editor, while the right pane contains the OCaml process that will execute the code.

The in the left margin of the editor is the evaluation mark, showing that the code has been successfully executed up to that point. When pressing the button (or Ctrl e), the expression under the cursor is sent to the OCaml pane, and the answer from OCaml is displayed there. In case of an error, the relevant part of the code in the editor is highlighted.

Since programs are usually written in order, the evaluation mark always progresses from top to bottom, and everything in-between the current mark position and the expression to run will be sent to OCaml first. If you happen to need execution of an expression directly, select it before pressing .

The button runs the whole program. In case you get confused, the button restarts a fresh OCaml, rewinds the evaluation mark, and clears the right pane. And in case you got yourself in a loop, or your program just takes too long, the button can interrupt the current computation.

Keyboard shortcuts

File management
Ctrl nStart with a new (blank) file
Ctrl oLoad a file
Ctrl sSave the current file
Edition
Ctrl cCopy
Ctrl xCut
Ctrl vPaste
Ctrl zUndo
Ctrl Shift zRedo
Execution
Ctrl eExecute the current expression
EscapeStop ongoing execution
General
Ctrl +Zoom in
Ctrl -Zoom out
F4Select font
F5Switch colors
F11Switch fullscreen
Ctrl qQuit

Resources

OCaml-Top on GithubLatest sources in the official GIT repository
Version 1.1.2 Download for Linux, OSX and Windows