module Ed_mode_ocaml: sig
.. end
Sourceview mode for Objective-Caml files.
val remove_first_blanks : string -> string
Remove the ehading blanks of a given string.
val indent_line : Ed_sourceview.sourceview -> string array -> unit
Indent the current line of the given sourceview. This is the code
of the "ocaml_indent_line" command.
val indent_buffer : Ed_sourceview.sourceview -> string array -> unit
Indent the whole buffer of the given sourceview.
This is the code of the "ocaml_indent_buffer" command.
val switch_file : Ed_sourceview.sourceview -> string array -> unit
Open the interface (respectively the implementation) of the
ocaml implementation (resp. interface) file in the given sourceview.
Does nothing if the file does not have ".ml" or ".mli" extension.
This is the code of the "ocaml_switch_file" command.
val display_type_annot : Ed_sourceview.sourceview -> string array -> unit
If the file in the given sourceview is a ".ml", then lookup
for the corresponding ".annot" file and search in it for
type annotation corresponding to the current position in the buffer.
If an annotation is found, highlight the part of the source code
corresponding to the type annotation and display the type annotation
in the minibuffer of the sourceview's window.
If an errors occurs (no type annotation found or ".ml" file modified
since the creation of the ".annot" file, for example), a message
is displayed in the minibuffer.
This is the code of the "ocaml_display_type_annot" command.
val mode : Ed_sourceview.mode
The mode.