dbuenzli / down

An OCaml toplevel (REPL) upgrade
http://erratique.ch/software/down
ISC License
84 stars 3 forks source link

Syntax highlighting of OCaml code in down #29

Open sidkshatriya opened 1 year ago

sidkshatriya commented 1 year ago

I like down -- especially for its completion and documentation within the repl (via ocp-index). It feels lightweight and reponsive too !

One feature that I miss from utop is syntax highlighting of OCaml snippets that we type into the repl.

Is that something you'd like to have? Is this something that is planned for the future?

dbuenzli commented 1 year ago

I didn't know/remember it did that. Not planned but why not. What does it do ? Simply bolidify keywords ?

sidkshatriya commented 1 year ago

Here is an example from my utop that shows OCaml syntax highlighting in action:

utop_colors

In an ocaml switch where utop is installed, please do: $ man utop and $ man utoprc for more information on how to configure this (easily).

You can configure colors for module names, keywords, identifiers, strings etc. etc.