package ezjs_ace

  1. Overview
  2. Docs

Module Ezjs_ace.AceSource

Sourceval iter_option : ('a -> unit) -> 'a option -> unit

Editor

Sourcetype 'a editor = {
  1. editor_div : Js_of_ocaml.Dom_html.divElement Js_of_ocaml.Js.t;
  2. editor : ('a editor * 'a option) Ace_types.editor Js_of_ocaml.Js.t;
  3. mutable marks : int list;
  4. mutable keybinding_menu : bool;
}
Sourceval create_position : int -> int -> Ace_types.position Js_of_ocaml.Js.t
Sourceval greater_position : < column : < get : 'res.. > Js_of_ocaml.Js.gen_prop ; row : < get : 'res0.. > Js_of_ocaml.Js.gen_prop.. > Js_of_ocaml.Js.t -> < column : < get : 'res.. > Js_of_ocaml.Js.gen_prop ; row : < get : 'res0.. > Js_of_ocaml.Js.gen_prop.. > Js_of_ocaml.Js.t -> bool
Sourceval read_position : < column : < get : 'res.. > Js_of_ocaml.Js.gen_prop ; row : < get : 'res0.. > Js_of_ocaml.Js.gen_prop.. > Js_of_ocaml.Js.t -> 'res0 * 'res
Sourceval read_range : < end_ : < get : < column : < get : 'res.. > Js_of_ocaml.Js.gen_prop ; row : < get : 'res0.. > Js_of_ocaml.Js.gen_prop.. > Js_of_ocaml.Js.t.. > Js_of_ocaml.Js.gen_prop ; start : < get : < column : < get : 'res1.. > Js_of_ocaml.Js.gen_prop ; row : < get : 'res2.. > Js_of_ocaml.Js.gen_prop.. > Js_of_ocaml.Js.t.. > Js_of_ocaml.Js.gen_prop.. > Js_of_ocaml.Js.t -> ('res2 * 'res1) * ('res0 * 'res)
Sourceval get_contents : ?range:Ace_types.range Js_of_ocaml.Js.t -> 'a editor -> string
Sourceval set_contents : 'a editor -> string -> unit
Sourceval get_selection_range : 'a editor -> Ace_types.range Js_of_ocaml.Js.t
Sourceval get_selection : 'a editor -> string
Sourceval get_line : 'a editor -> int -> string
Sourceval get_custom_data : 'a editor -> 'a
Sourceval set_custom_data : 'a editor -> 'a -> unit
Sourceval set_mode : 'a editor -> string -> unit
Sourceval set_theme : 'a editor -> string -> unit
Sourcemodule Mark_type : sig ... end
include module type of struct include Mark_type end
Sourcetype mark_type = Mark_type.mark_type =
  1. | Error
  2. | Warning
  3. | Message
Sourceval string_of_make_type : mark_type -> string
Sourceval require : string -> 'res
Sourceval range : 'a -> 'b -> 'c -> 'd -> range
Sourcetype loc = {
  1. loc_start : int * int;
  2. loc_end : int * int;
}
Sourceval set_mark : 'a editor -> ?loc:loc -> ?type_:mark_type -> string -> unit
Sourceval set_background_color : 'a editor -> string -> unit
Sourceval add_class : 'a editor -> string -> unit
Sourceval remove_class : 'a editor -> string -> unit
Sourceval clear_marks : 'a editor -> unit
Sourceval record_event_handler : 'a editor -> string -> (unit -> unit) -> unit
Sourceval focus : 'a editor -> unit
Sourceval resize : 'a editor -> bool -> unit
Sourceval get_keybinding_menu : 'a editor -> Ace_types.keybinding_menu Js_of_ocaml.Js.t option
Sourceval show_keybindings : 'a editor -> unit
Sourceval add_keybinding : 'a editor -> ?ro:bool -> ?scrollIntoView:string -> ?multiSelectAction:string -> string -> string -> ('a editor -> unit) -> unit

Mode

Sourceval token : type_:string -> string -> Ace_types.token Js_of_ocaml.Js.t
Sourcetype 'state helpers = {
  1. initial_state : unit -> 'state;
  2. get_next_line_indent : 'state -> line:string -> tab:string -> string;
  3. get_line_tokens : string -> 'state -> int -> doc -> 'state * token list;
  4. check_outdent : ('state -> string -> string -> bool) option;
  5. auto_outdent : ('state -> Ace_types.document Js_of_ocaml.Js.t -> int -> unit) option;
}
Sourceval create_js_line_tokens : ('t122 * Ace_types.token Js_of_ocaml.Js.t list) -> 't122 Ace_types.line_tokens Js_of_ocaml.Js.t
Sourceval define_mode : string -> 'a helpers -> 'b
Sourceval set_font_size : 'a editor -> int -> unit
Sourceval set_tab_size : 'a editor -> int -> unit
Sourceval get_state : 'a editor -> int -> < .. > Js_of_ocaml.Js.t
Sourceval replace : < replace : 't152 -> Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t -> 'res Js_of_ocaml.Js.meth.. > Js_of_ocaml.Js.t -> 't152 -> string -> 'res
Sourceval delete : < replace : 't155 -> Js_of_ocaml.Js.js_string Js_of_ocaml.Js.t -> 'res Js_of_ocaml.Js.meth.. > Js_of_ocaml.Js.t -> 't155 -> 'res
Sourceval remove : 'a editor -> unit
OCaml

Innovation. Community. Security.